![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
gtk_elementComboBoxgtk_elementComboBox — Defines a specialised GtkComboBox to choose VisuElement. |
VisuUiElementCombobox; VisuUiElementComboboxClass; GList * visu_ui_element_combobox_getSelection (VisuUiElementCombobox *wd
); GtkWidget * visu_ui_element_combobox_new (gboolean hasAllSelector
,gboolean hasNoneSelector
,const gchar *format
); gboolean visu_ui_element_combobox_setSelection (VisuUiElementCombobox *wd
,const gchar *name
); void visu_ui_element_combobox_setUnphysicalStatus (VisuUiElementCombobox *wd
,gboolean status
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkBin +----GtkComboBox +----VisuUiElementCombobox
VisuUiElementCombobox implements AtkImplementorIface, GtkBuildable, GtkCellLayout and GtkCellEditable.
This widget looks like a GtkComboBox and it displays a list of VisuElement currently used by the displayed data.
typedef struct _VisuUiElementCombobox VisuUiElementCombobox;
An opaque structure defining a VisuUiElementCombobox widget.
Since 3.6
typedef struct _VisuUiElementComboboxClass VisuUiElementComboboxClass;
An opaque structure defining the class of a VisuUiElementCombobox widget.
Since 3.6
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() . [transfer container][element-type VisuElement*]
|
Since 3.6
GtkWidget * visu_ui_element_combobox_new (gboolean hasAllSelector
,gboolean hasNoneSelector
,const gchar *format
);
Creates a GtkComboBox with a list of available VisuElement. This
list can contain in addition a "all" value if 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
GtkComboBox. If 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
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
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
"element-selected"
signalvoid 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