Synopsis

#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);

Object Hierarchy

  GObject
   +----AdgStyle
         +----AdgFillStyle
               +----AdgRuledFill

Properties

  "angle"                    gdouble               : Read / Write
  "line-dress"               AdgDress              : Read / Write
  "spacing"                  gdouble               : Read / Write

Description

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().

Details

struct AdgRuledFill

struct AdgRuledFill;

All fields are private and should not be used directly. Use its public methods instead.

Since 1.0


struct AdgRuledFillClass

struct AdgRuledFillClass {
};

adg_ruled_fill_new ()

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


adg_ruled_fill_set_line_dress ()

void                adg_ruled_fill_set_line_dress       (AdgRuledFill *ruled_fill,
                                                         AdgDress dress);

Sets a new line dress on ruled_fill.

ruled_fill :

an AdgRuledFill object

dress :

the new line dress

Since 1.0


adg_ruled_fill_get_line_dress ()

AdgDress            adg_ruled_fill_get_line_dress       (AdgRuledFill *ruled_fill);

Gets the ruled_fill dress to be used for rendering the lines.

ruled_fill :

an AdgRuledFill object

Returns :

the line dress. [transfer none]

Since 1.0


adg_ruled_fill_set_spacing ()

void                adg_ruled_fill_set_spacing          (AdgRuledFill *ruled_fill,
                                                         gdouble spacing);

Sets a new spacing on ruled_fill.

ruled_fill :

an AdgRuledFill

spacing :

the new spacing

Since 1.0


adg_ruled_fill_get_spacing ()

gdouble             adg_ruled_fill_get_spacing          (AdgRuledFill *ruled_fill);

Gets the current spacing of ruled_fill.

ruled_fill :

an AdgRuledFill

Returns :

the spacing (in global space)

Since 1.0


adg_ruled_fill_set_angle ()

void                adg_ruled_fill_set_angle            (AdgRuledFill *ruled_fill,
                                                         gdouble angle);

Sets a new angle on ruled_fill.

ruled_fill :

an AdgRuledFill

angle :

the new angle

Since 1.0


adg_ruled_fill_get_angle ()

gdouble             adg_ruled_fill_get_angle            (AdgRuledFill *ruled_fill);

Gets the current angle of ruled_fill.

ruled_fill :

an AdgRuledFill

Returns :

the angle (in radians)

Since 1.0

Property Details

The "angle" property

  "angle"                    gdouble               : Read / Write

The angle (in radians) of the lines.

Allowed values: [0,3.14159]

Default value: 0.785398


The "line-dress" property

  "line-dress"               AdgDress              : Read / Write

Dress to be used for rendering the lines.


The "spacing" property

  "spacing"                  gdouble               : Read / Write

The spacing in global spaces between the lines.

Allowed values: >= 0

Default value: 16