![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
gtk_lineObjectWidgetgtk_lineObjectWidget — Defines a specialised GtkBox to choose all characteristic of lines. |
VisuUiLine; VisuUiLineClass; GtkWidget * visu_ui_line_getOptionBox (VisuUiLine *line
); GtkWidget * visu_ui_line_new (const gchar *label
); void visu_ui_line_setColor (VisuUiLine *line
,float rgb[3]
); void visu_ui_line_setStipple (VisuUiLine *line
,guint16 stipple
); void visu_ui_line_setUsed (VisuUiLine *line
,gboolean status
); void visu_ui_line_setWidth (VisuUiLine *line
,gint width
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----VisuUiLine
"color-changed" :Action
"stipple-changed" :Action
"use-changed" :Action
"width-changed" :Action
typedef struct _VisuUiLine VisuUiLine;
Private structure to store informations of a VisuUiLine object.
Since 3.4
typedef struct _VisuUiLineClass VisuUiLineClass;
Private structure to store informations of a VisuUiLineClass object.
Since 3.4
GtkWidget * visu_ui_line_getOptionBox (VisuUiLine *line
);
Give access to the GtkVBox of the expander.
|
the object to get the GtkVBox. |
Returns : |
a GtkWidget. [transfer none] |
Since 3.6
GtkWidget * visu_ui_line_new (const gchar *label
);
A VisuUiLine widget is a widget allowing to choose the properties of a line. These properties are the line stipple pattern, its colour and its width. The colour is available through GtkRange and with a VisuUiColorCombobox widget. There is also a checkbox allowing to turn the line on or off.
|
the name of the group, output in bold. |
Returns : |
a newly created VisuUiLine widget. [transfer full] |
Since 3.4
void visu_ui_line_setColor (VisuUiLine *line
,float rgb[3]
);
The line can is drawn in a given colour. Change the interface values using this routine. The colour ranges are updated and if it correspond to a registered colour, it is selected in the combobox.
|
the object to modify ; |
|
a RGB array. |
Since 3.4
void visu_ui_line_setStipple (VisuUiLine *line
,guint16 stipple
);
The line can be drawn with a given stipple pattern, call this routine to change the interface value.
|
the object to modify ; |
|
a value. |
Since 3.4
void visu_ui_line_setUsed (VisuUiLine *line
,gboolean status
);
The line can be turn on or off, call this routine to change the interface status.
|
the object to modify ; |
|
a boolean. |
Since 3.4
void visu_ui_line_setWidth (VisuUiLine *line
,gint width
);
The line can be drawn with a given width, call this routine to change the interface value.
|
the object to modify ; |
|
a value. |
Since 3.4
"color-changed"
signalvoid user_function (VisuUiLine *line,
gpointer color,
gpointer user_data) : Action
This signal is emitted when the colour of the line is changed.
|
the VisuUiLine that emits the signal ; |
|
the new color values (three RGB values). |
|
user data set when the signal handler was connected. |
Since 3.4
"stipple-changed"
signalvoid user_function (VisuUiLine *line,
guint stipple,
gpointer user_data) : Action
This signal is emitted when the stipple pattern of the line is changed.
|
the VisuUiLine that emits the signal ; |
|
the new stipple pattern. |
|
user data set when the signal handler was connected. |
Since 3.4
"use-changed"
signalvoid user_function (VisuUiLine *line,
gboolean used,
gpointer user_data) : Action
This signal is emitted when the usage check box is changed.
|
the VisuUiLine that emits the signal ; |
|
TRUE if the line is used. |
|
user data set when the signal handler was connected. |
Since 3.4
"width-changed"
signalvoid user_function (VisuUiLine *line,
gint width,
gpointer user_data) : Action
This signal is emitted when the width of the line is changed.
|
the VisuUiLine that emits the signal ; |
|
the new width. |
|
user data set when the signal handler was connected. |
Since 3.4