| Top |
VisuGlExtLinedVisuGlExtLined — Defines a common interface for VisuGlExt objects with line characteristics. |
VisuGlExtLined is implemented by VisuGlExtAxes, VisuGlExtBox and VisuGlExtScale.
gfloat
visu_gl_ext_lined_getWidth (const VisuGlExtLined *self);
Read the line width used to draw lines.
Since: 3.8
guint16
visu_gl_ext_lined_getStipple (const VisuGlExtLined *self);
Read the line pattern used to draw lines.
Since: 3.8
gfloat *
visu_gl_ext_lined_getRGBA (const VisuGlExtLined *self);
Read all the colour components of the line (in [0;1]).
Since: 3.8
gboolean visu_gl_ext_lined_setWidth (VisuGlExtLined *self,gfloat value);
Method used to change the value of the line width.
Since: 3.8
gboolean visu_gl_ext_lined_setStipple (VisuGlExtLined *self,guint16 value);
Method used to change the value of the line stipple.
Since: 3.8
gboolean visu_gl_ext_lined_setRGBA (VisuGlExtLined *self,gfloat values[4],gint mask);
Method used to change the value of the color used to draw the line.
self |
the VisuGlExtLined object to modify. |
|
values |
a four floats array with values (0 <= values <= 1) for the red, the green and the blue color. Only values specified by the mask are really relevant. |
[array fixed-size=4] |
mask |
use TOOL_COLOR_MASK_R, TOOL_COLOR_MASK_G, TOOL_COLOR_MASK_B, TOOL_COLOR_MASK_A or a combinaison to indicate what values in the rgb array must be taken into account. |
Since: 3.8
struct VisuGlExtLinedInterface {
GTypeInterface parent;
gfloat (*get_width) (const VisuGlExtLined *self);
guint16 (*get_stipple) (const VisuGlExtLined *self);
gfloat* (*get_rgba) (const VisuGlExtLined *self);
gboolean (*set_width) (VisuGlExtLined *self, gfloat value);
gboolean (*set_stipple) (VisuGlExtLined *self, guint16 value);
gboolean (*set_rgba) (VisuGlExtLined *self, gfloat values[4], gint mask);
};
The different routines common to objects implementing a VisuGlExtLined interface.
GTypeInterface |
yet, its parent. |
|
a routine to get line width. |
||
a routine to get line stipple. |
||
a routine to get line color. |
||
a routine to set line width. |
||
a routine to set line stipple. |
||
a routine to set line color. |
Since: 3.8