![]() |
![]() |
![]() |
adg-1 reference manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <adg-1/adg.h> struct AdgRuledFill; struct AdgRuledFillClass; 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()
.
struct AdgRuledFill;
All fields are private and should not be used directly. Use its public methods instead.
Since 1.0
AdgRuledFill * adg_ruled_fill_new (void
);
Constructs a new empty ruled fill style initialized with default params.
Returns : |
a newly created ruled fill style |
Since 1.0
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 |
Since 1.0
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. [transfer none] |
Since 1.0
void adg_ruled_fill_set_spacing (AdgRuledFill *ruled_fill
,gdouble spacing
);
Sets a new spacing on ruled_fill
.
|
an AdgRuledFill |
|
the new spacing |
Since 1.0
gdouble adg_ruled_fill_get_spacing (AdgRuledFill *ruled_fill
);
Gets the current spacing of ruled_fill
.
|
an AdgRuledFill |
Returns : |
the spacing (in global space) |
Since 1.0
void adg_ruled_fill_set_angle (AdgRuledFill *ruled_fill
,gdouble angle
);
Sets a new angle on ruled_fill
.
|
an AdgRuledFill |
|
the new angle |
Since 1.0
gdouble adg_ruled_fill_get_angle (AdgRuledFill *ruled_fill
);
Gets the current angle of ruled_fill
.
|
an AdgRuledFill |
Returns : |
the angle (in radians) |
Since 1.0
"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.