swamigui Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
SwamiguiPanelSelector; GType * swamigui_get_panel_selector_types (void
); void swamigui_register_panel_selector_type (GType panel_type
,int order
); GtkWidget * swamigui_panel_selector_new (void
); void swamigui_panel_selector_set_selection (SwamiguiPanelSelector *selector
,IpatchList *items
); IpatchList * swamigui_panel_selector_get_selection (SwamiguiPanelSelector *selector
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkNotebook +----SwamiguiPanelSelector
Notebook widget which provides access to valid user interface panels for a given item selection.
GType * swamigui_get_panel_selector_types (void
);
Get array of GType widgets which implement the SwamiguiPanel interface and
have been registered with swamigui_register_panel_selector_type()
.
Returns : |
Array of GTypes (terminated with a 0 GType) which should be freed
when finished, can be NULL if empty list.
|
void swamigui_register_panel_selector_type (GType panel_type
,int order
);
Register a panel interface for use in the panel selector notebook widget.
|
Type of widget with SwamiguiPanel interface to register |
|
Order of the interface in relation to others (determines order of notepad tabs, lower values are placed left of higher values) |
GtkWidget * swamigui_panel_selector_new (void
);
Create panel selector notebook widget.
Returns : |
New panel selector widget. |
void swamigui_panel_selector_set_selection (SwamiguiPanelSelector *selector
,IpatchList *items
);
Set the item selection of a panel selector widget.
|
Panel selector widget |
|
List of selected items or NULL to unset selection
|
IpatchList * swamigui_panel_selector_get_selection
(SwamiguiPanelSelector *selector
);
Get the list of selected items for a panel selector widget.
|
Panel selector widget |
Returns : |
New list containing selected items which has a ref count of one
which the caller owns or NULL if no items selected. Remove the
reference when finished with it.
|