swamigui Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
SwamiguiBar; void swamigui_bar_create_pointer (SwamiguiBar *bar
,const char *id
,const char *first_property_name
,...
); void swamigui_bar_add_pointer (SwamiguiBar *bar
,SwamiguiBarPtr *barptr
,const char *id
); GnomeCanvasItem * swamigui_bar_get_pointer (SwamiguiBar *bar
,const char *id
); void swamigui_bar_set_pointer_position (SwamiguiBar *bar
,const char *id
,int position
); void swamigui_bar_set_pointer_range (SwamiguiBar *bar
,const char *id
,int start
,int end
); int swamigui_bar_get_pointer_order (SwamiguiBar *bar
,const char *id
); void swamigui_bar_set_pointer_order (SwamiguiBar *bar
,const char *id
,int pos
); void swamigui_bar_raise_pointer_to_top (SwamiguiBar *bar
,const char *id
); void swamigui_bar_lower_pointer_to_bottom (SwamiguiBar *bar
,const char *id
);
GObject +----GInitiallyUnowned +----GtkObject +----GnomeCanvasItem +----GnomeCanvasGroup +----SwamiguiBar
Horizontal bar canvas item for displaying multiple pointers and/or ranges. A SwamiguiBar is composed of one or more SwamiguiBarPtr items.
void swamigui_bar_create_pointer (SwamiguiBar *bar
,const char *id
,const char *first_property_name
,...
);
Creates a new SwamiguiBarPtr, sets properties and adds it to a bar canvas item.
|
Bar canvas item |
|
String identifier to use for this pointer |
|
Name of first SwamiguiBarPtr property to assign to or
NULL to not set any pointer properties.
|
|
First value to assign to first_property_name followed by additional
name/value pairs, terminated with a NULL name argument.
|
void swamigui_bar_add_pointer (SwamiguiBar *bar
,SwamiguiBarPtr *barptr
,const char *id
);
Add an existing bar pointer to a bar canvas item.
|
Bar canvas item |
|
Existing bar pointer to add to bar canvas item. |
|
String identifier to use for this pointer |
GnomeCanvasItem * swamigui_bar_get_pointer (SwamiguiBar *bar
,const char *id
);
void swamigui_bar_set_pointer_position (SwamiguiBar *bar
,const char *id
,int position
);
Set the position of a SwamiguiBarPtr item in a bar canvas item. Pointer
is centered on the given position
regardless of mode (position or range).
|
Bar canvas item |
|
String identifier of pointer to set position of |
|
Position in pixels to set pointer to |
void swamigui_bar_set_pointer_range (SwamiguiBar *bar
,const char *id
,int start
,int end
);
Set the range of a SwamiguiBarPtr item in a bar canvas item. Pointer is
set to the range defined by start
and end
.
|
Bar canvas item |
|
String identifier of pointer to set position of |
|
Position in pixels of start of range |
|
Position in pixels of end of range |
int swamigui_bar_get_pointer_order (SwamiguiBar *bar
,const char *id
);
Get the stacking order of a pointer.
|
Bar canvas item |
|
String identifier of pointer to get stacking order position of |
Returns : |
Stacking order of pointer (0 = top, -1 if pointer not found). |
void swamigui_bar_set_pointer_order (SwamiguiBar *bar
,const char *id
,int pos
);
Set the stacking order of a pointer to pos
.
|
Bar canvas item |
|
String identifier of pointer to set stacking order position of |
|
Absolute position in stacking order (0 = top, -1 = bottom) |
void swamigui_bar_raise_pointer_to_top (SwamiguiBar *bar
,const char *id
);
Raise a pointer to the top of the stacking order.
|
Bar canvas item |
|
String identifier of pointer to raise to top of stacking order |
void swamigui_bar_lower_pointer_to_bottom (SwamiguiBar *bar
,const char *id
);
Lower a pointer to the bottom of the stacking order.
|
Bar canvas item |
|
String identifier of pointer to lower to bottom of stacking order |