Top | ![]() |
![]() |
![]() |
![]() |
VisuPairWireVisuPairWire — An interface defining all the properties required to draw a VisuPair as a wire. |
VisuPairWire interface introduces the "width" property of a wire rendering, wether or not it should use a solid color or a ToolShade depending on its length...
guint visu_pair_wire_getDefaultWidth ();
Retrieves the default width.
Since: 3.8
guint16 visu_pair_wire_getDefaultStipple ();
Retrieves the default stipple pattern.
Since: 3.8
gboolean visu_pair_wire_setWidth (VisuPairWire *data
,guint val
);
This method allows to change the width of line for a specific pair. When a pair is rendered via with a line, it first checks if that pairs has a specific width value set by this method. If not, it uses the default value.
guint
visu_pair_wire_getWidth (VisuPairWire *data
);
Get the width of the given pair data
. If the given pair has no
specific width, the defaul value is returned.
gboolean visu_pair_wire_setShade (VisuPairWire *data
,ToolShade *shade
);
If shade
is not NULL, make the colour of each pair varies with its
length according to shade
colour scheme.
Since: 3.6
ToolShade *
visu_pair_wire_getShade (VisuPairWire *data
);
Colour of wires can depend on length, following a ToolShade scheme.
Since: 3.6
gboolean visu_pair_wire_setStipple (VisuPairWire *data
,guint16 stipple
);
Change the line pattern of data
.
guint16
visu_pair_wire_getStipple (VisuPairWire *data
);
Get the line pattern of data
.
struct VisuPairWireInterface { GTypeInterface parent; guint (*get_width) (VisuPairWire *self); gboolean (*set_width) (VisuPairWire *self, guint val); ToolShade* (*get_shade) (VisuPairWire *self); gboolean (*set_shade) (VisuPairWire *self, ToolShade *val); guint16 (*get_stipple) (VisuPairWire *self); gboolean (*set_stipple) (VisuPairWire *self, guint16 val); };
Interface for class that can represent VisuPairLink as flat wires.
GTypeInterface |
its parent. |
|
a method to get the width. |
||
a method to change the width of drawn wire VisuPairLink. |
||
a method to get the shading colourisation of a wire. |
||
a method to set if the wire should be coloured according to its length. |
||
a method to get the stipple scheme. |
||
a method to change the stipple scheme of drawn wire VisuPairLink. |
Since: 3.8