Skip to content
Snippets Groups Projects
Commit 8d6cf31a authored by rds's avatar rds
Browse files

unification of clamping coords and spans and moving to somewhere visible.

parent a6d11b52
No related branches found
No related tags found
No related merge requests found
......@@ -25,9 +25,9 @@
* Description: Set of general GUI functions.
*
* HISTORY:
* Last edited: Jul 17 15:00 2006 (rds)
* Last edited: Oct 11 09:20 2006 (rds)
* Created: Fri Nov 4 16:59:52 2005 (edgrif)
* CVS info: $Id: zmapUtilsGUI.h,v 1.14 2006-07-22 09:20:22 rds Exp $
* CVS info: $Id: zmapUtilsGUI.h,v 1.15 2006-10-18 15:08:34 rds Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_UTILS_GUI_H
......@@ -40,6 +40,16 @@
typedef enum {ZMAPGUI_PIXELS_PER_CM, ZMAPGUI_PIXELS_PER_INCH,
ZMAPGUI_PIXELS_PER_POINT} ZMapGUIPixelConvType ;
/* A bit field I found I needed to make it easier to calc what had been clamped. */
typedef enum
{
ZMAPGUI_CLAMP_INIT = 0,
ZMAPGUI_CLAMP_NONE = (1 << 0),
ZMAPGUI_CLAMP_START = (1 << 1),
ZMAPGUI_CLAMP_END = (1 << 2)
} ZMapGUIClampType;
/*! Callback function for menu items. The id indicates which menu_item was selected
* resulting in the call to this callback. */
......@@ -141,4 +151,9 @@ void zMapGUICreateRadioGroup(GtkWidget *gtkbox,
int default_button, int *value_out,
ZMapGUIRadioButtonCBFunc clickedCB, gpointer clickedData);
ZMapGUIClampType zMapGUICoordsClampSpanWithLimits(double top_limit, double bot_limit,
double *top_inout, double *bot_inout);
ZMapGUIClampType zMapGUICoordsClampToLimits(double top_limit, double bot_limit,
double *top_inout, double *bot_inout);
#endif /* ZMAP_UTILS_GUI_H */
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment