Synopsis

#include <adg-1/adg.h>

struct              AdgHatch;
struct              AdgHatchClass;
AdgHatch *          adg_hatch_new                       (AdgTrail *trail);
void                adg_hatch_set_fill_dress            (AdgHatch *hatch,
                                                         AdgDress dress);
AdgDress            adg_hatch_get_fill_dress            (AdgHatch *hatch);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----AdgEntity
               +----AdgStroke
                     +----AdgHatch

Properties

  "fill-dress"               AdgDress              : Read / Write

Description

The AdgHatch object is used to fill a closed AdgTrail model with some sort of pattern.

Details

struct AdgHatch

struct AdgHatch;

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

Since 1.0


struct AdgHatchClass

struct AdgHatchClass {
};

adg_hatch_new ()

AdgHatch *          adg_hatch_new                       (AdgTrail *trail);

Creates a new hatch entity. trail can be NULL, in which case an empty hatch is created.

trail :

the AdgTrail to hatch

Returns :

the newly created hatch entity

Since 1.0


adg_hatch_set_fill_dress ()

void                adg_hatch_set_fill_dress            (AdgHatch *hatch,
                                                         AdgDress dress);

Sets a new line dress for rendering hatch. The new dress must be related to the original dress for this property: you cannot set a dress used for line styles to a dress managing fonts.

The check is done by calling adg_dress_are_related() with dress and the previous dress as arguments. Check out its documentation for details on what is a related dress.

hatch :

an AdgHatch

dress :

the new AdgDress to use

Since 1.0


adg_hatch_get_fill_dress ()

AdgDress            adg_hatch_get_fill_dress            (AdgHatch *hatch);

Gets the line dress to be used in rendering hatch.

hatch :

an AdgHatch

Returns :

the current line dress. [transfer none]

Since 1.0

Property Details

The "fill-dress" property

  "fill-dress"               AdgDress              : Read / Write

The dress to use for filling this entity.