gtk_elementComboBoxgtk_elementComboBox — Defines a specialised |
Synopsis
#define VISU_UI_TYPE_ELEMENT_COMBOBOX VisuUiElementCombobox; VisuUiElementComboboxClass;GList * visu_ui_element_combobox_getSelection (VisuUiElementCombobox *wd);GtkWidget * visu_ui_element_combobox_new (,gboolean hasAllSelector,gboolean hasNoneSelectorconst);gchar *formatgboolean visu_ui_element_combobox_setSelection (VisuUiElementCombobox *wd,const);gchar *namevoid visu_ui_element_combobox_setUnphysicalStatus (VisuUiElementCombobox *wd,);gboolean status
Object Hierarchy
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkBin +----GtkComboBox +----VisuUiElementCombobox
Implemented Interfaces
VisuUiElementCombobox implements
Description
This widget looks like a
Details
VISU_UI_TYPE_ELEMENT_COMBOBOX
#define VISU_UI_TYPE_ELEMENT_COMBOBOX (visu_ui_element_combobox_get_type ())
Return the associated
Since 3.6
VisuUiElementCombobox
typedef struct _VisuUiElementCombobox VisuUiElementCombobox;
An opaque structure defining a VisuUiElementCombobox widget.
Since 3.6
VisuUiElementComboboxClass
typedef struct _VisuUiElementComboboxClass VisuUiElementComboboxClass;
An opaque structure defining the class of a VisuUiElementCombobox widget.
Since 3.6
visu_ui_element_combobox_getSelection ()
GList * visu_ui_element_combobox_getSelection (VisuUiElementCombobox *wd);
Provide a list of selected elements.
|
a VisuUiElementCombobox widget. |
Returns : |
a newly
created list of VisuElement. It should be freed later with
g_list_free() |
Since 3.6
visu_ui_element_combobox_new ()
GtkWidget * visu_ui_element_combobox_new (,gboolean hasAllSelector,gboolean hasNoneSelectorconst);gchar *format
Creates a hasAllSelector is
TRUE, or a "None" value if hasNoneSelector is TRUE. The format
parameter is used to specify the text for each row of the
formt is NULL, just the name of the element is printed.
|
a boolean. |
|
a boolean. |
|
a string (can be NULL). [allow-none] |
Returns : |
a newly created widget. [transfer full] |
Since 3.6
visu_ui_element_combobox_setSelection ()
gboolean visu_ui_element_combobox_setSelection (VisuUiElementCombobox *wd,const);gchar *name
Select a VisuElement by providing its name.
|
a VisuUiElementCombobox widget. |
|
a string. |
Returns : |
TRUE if the given element exists. |
Since 3.6
visu_ui_element_combobox_setUnphysicalStatus ()
void visu_ui_element_combobox_setUnphysicalStatus (VisuUiElementCombobox *wd,);gboolean status
If status is TRUE, the combobox will also show elements that are
tagged unphysical, see visu_element_getPhysical().
|
a VisuUiElementCombobox object ; |
|
a boolean |
Since 3.7
Signal Details
The "element-selected" signal
void user_function (VisuUiElementCombobox *combo,gpointer element,gpointer user_data) :Action
This signal is emitted when a new element is selected.
|
the VisuUiElementCombobox that emits the signal ; |
|
the newly selected VisuElement. |
|
user data set when the signal handler was connected. |
Since 3.6
