AdgRuledFill — A style composed of evenly spaced lines.
AdgRuledFill; AdgRuledFill * adg_ruled_fill_new (void); void adg_ruled_fill_set_line_dress (AdgRuledFill *ruled_fill, AdgDress dress); AdgDress adg_ruled_fill_get_line_dress (AdgRuledFill *ruled_fill); void adg_ruled_fill_set_spacing (AdgRuledFill *ruled_fill, gdouble spacing); gdouble adg_ruled_fill_get_spacing (AdgRuledFill *ruled_fill); void adg_ruled_fill_set_angle (AdgRuledFill *ruled_fill, gdouble angle); gdouble adg_ruled_fill_get_angle (AdgRuledFill *ruled_fill);
"angle" gdouble : Read / Write "line-dress" AdgDress : Read / Write "spacing" gdouble : Read / Write
The spacing between the lines could be changed using the
adg_ruled_fill_set_spacing() method. The angle of the lines should
be changed with adg_ruled_fill_set_angle().
typedef struct _AdgRuledFill AdgRuledFill;
All fields are private and should not be used directly. Use its public methods instead.
AdgRuledFill * adg_ruled_fill_new (void);
Constructs a new empty ruled fill style initialized with default params.
|
Returns : |
a newly created ruled fill style |
void adg_ruled_fill_set_line_dress (AdgRuledFill *ruled_fill, AdgDress dress);
Sets a new line dress on ruled_fill.
|
|
an AdgRuledFill object |
|
|
the new line dress |
AdgDress adg_ruled_fill_get_line_dress (AdgRuledFill *ruled_fill);
Gets the ruled_fill dress to be used for rendering the lines.
|
|
an AdgRuledFill object |
|
Returns : |
the line dress |
void adg_ruled_fill_set_spacing (AdgRuledFill *ruled_fill, gdouble spacing);
Sets a new spacing on ruled_fill.
|
|
an AdgRuledFill |
|
|
the new spacing |
gdouble adg_ruled_fill_get_spacing (AdgRuledFill *ruled_fill);
Gets the current spacing of ruled_fill.
|
|
an AdgRuledFill |
|
Returns : |
the spacing (in global space) |
void adg_ruled_fill_set_angle (AdgRuledFill *ruled_fill, gdouble angle);
Sets a new angle on ruled_fill.
|
|
an AdgRuledFill |
|
|
the new angle |
gdouble adg_ruled_fill_get_angle (AdgRuledFill *ruled_fill);
Gets the current angle of ruled_fill.
|
|
an AdgRuledFill |
|
Returns : |
the angle (in radians) |
"angle" property"angle" gdouble : Read / Write
The angle (in radians) of the lines.
Allowed values: [0,3.14159]
Default value: 0.785398
"line-dress" property"line-dress" AdgDress : Read / Write
Dress to be used for rendering the lines.
Allowed values: [G_MAXINT,G_MININT]
Default value: 0
AdgRuledFillwas last modified by gtk-doc on Sat 24 Jul 2010 09:35:28 AM CEST