![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
gtk_elementComboBoxgtk_elementComboBox — Defines a specialised GtkComboBox to choose VisuElement. |
#define ELEMENT_COMBOX_TYPE #define ELEMENT_COMBOX (obj) #define ELEMENT_COMBOX_CLASS (klass) #define IS_ELEMENT_COMBOX (obj) #define IS_ELEMENT_COMBOX_CLASS (klass) #define ELEMENT_COMBOX_GET_CLASS (obj) ElementComboBox; ElementComboBoxClass; GType elementComboBox_get_type (void
); GtkWidget* elementComboBox_new (gboolean hasAllSelector
,gboolean hasNoneSelector
,const gchar *format
); GList* elementComboBoxGet_selectedElement (ElementComboBox *wd
); gboolean elementComboBoxSet_selection (ElementComboBox *wd
,const gchar *name
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkComboBox +----ElementComboBox
ElementComboBox 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.
#define ELEMENT_COMBOX_TYPE (elementComboBox_get_type ())
Return the associated GType to the ElementComboBox objects.
Since 3.6
#define ELEMENT_COMBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ELEMENT_COMBOX_TYPE, ElementComboBox))
Cast the given object to a ElementComboBox object.
|
the widget to cast. |
Since 3.6
#define ELEMENT_COMBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ELEMENT_COMBOX_TYPE, ElementComboBoxClass))
Cast the given class to a ElementComboBox object.
|
the class to cast. |
Since 3.6
#define IS_ELEMENT_COMBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ELEMENT_COMBOX_TYPE))
Return if the given object is a valid ElementComboBox object.
|
the object to test. |
Since 3.6
#define IS_ELEMENT_COMBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ELEMENT_COMBOX_TYPE))
Return if the given class is a valid ElementComboBoxClass class.
|
the class to test. |
Since 3.6
#define ELEMENT_COMBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS(obj, ELEMENT_COMBOX_TYPE, ElementComboBoxClass))
Get the class of the given object.
|
the widget to get the class of. |
Since 3.6
typedef struct _ElementComboBox ElementComboBox;
An opaque structure defining a ElementComboBox widget.
Since 3.6
typedef struct _ElementComboBoxClass ElementComboBoxClass;
An opaque structure defining the class of a ElementComboBox widget.
Since 3.6
GType elementComboBox_get_type (void
);
Internal routine, retrieves the type of ElementComboBox objects. Use ELEMENT_COMBOX_TYPE macro instead.
Since 3.6
GtkWidget* elementComboBox_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). |
Returns : |
a newly created widget. |
Since 3.6
GList* elementComboBoxGet_selectedElement (ElementComboBox *wd
);
Provide a list of selected elements.
|
a ElementComboBox widget. |
Returns : |
a newly created list of
VisuElement. It should be freed later with g_list_free() .. transfer container. |
Since 3.6
gboolean elementComboBoxSet_selection (ElementComboBox *wd
,const gchar *name
);
Select a VisuElement by providing its name.
|
a ElementComboBox widget. |
|
a string. |
Returns : |
TRUE if the given element exists. |
Since 3.6
"element-selected"
signalvoid user_function (ElementComboBox *combo, gpointer element, gpointer user_data) : Run First / Action
This signal is emitted when a new element is selected.
|
the ElementComboBox that emits the signal ; |
|
the newly selected VisuElement. |
|
user data set when the signal handler was connected. |
Since 3.6