GimpStrokeOptions

GimpStrokeOptions

Synopsis




                    GimpStrokeOptions;
void                gimp_stroke_options_set_dash_pattern
                                                        (GimpStrokeOptions *options,
                                                         GimpDashPreset preset,
                                                         GArray *pattern);

Object Hierarchy


  GObject
   +----GimpObject
         +----GimpContext
               +----GimpStrokeOptions

Implemented Interfaces

GimpStrokeOptions implements GimpConfigInterface.

Properties


  "antialias"                gboolean              : Read / Write / Construct
  "cap-style"                GimpCapStyle          : Read / Write / Construct
  "dash-info"                GValueArray           : Read / Write / Construct
  "dash-offset"              gdouble               : Read / Write / Construct
  "join-style"               GimpJoinStyle         : Read / Write / Construct
  "miter-limit"              gdouble               : Read / Write / Construct
  "style"                    GimpStrokeStyle       : Read / Write / Construct
  "unit"                     GimpUnit              : Read / Write / Construct
  "width"                    gdouble               : Read / Write / Construct

Signals


  "dash-info-changed"                              : Run First

Description

Details

GimpStrokeOptions

typedef struct _GimpStrokeOptions GimpStrokeOptions;


gimp_stroke_options_set_dash_pattern ()

void                gimp_stroke_options_set_dash_pattern
                                                        (GimpStrokeOptions *options,
                                                         GimpDashPreset preset,
                                                         GArray *pattern);

Sets the dash pattern. Either a preset is passed and pattern is NULL or preset is GIMP_DASH_CUSTOM and pattern is the GArray to use as the dash pattern. Note that this function takes ownership of the passed pattern.

options :

a GimpStrokeOptions object

preset :

a value out of the GimpDashPreset enum

pattern :

a GArray or NULL if preset is not GIMP_DASH_CUSTOM

Property Details

The "antialias" property

  "antialias"                gboolean              : Read / Write / Construct

Default value: TRUE


The "cap-style" property

  "cap-style"                GimpCapStyle          : Read / Write / Construct

Default value: GIMP_CAP_BUTT


The "dash-info" property

  "dash-info"                GValueArray           : Read / Write / Construct


The "dash-offset" property

  "dash-offset"              gdouble               : Read / Write / Construct

Allowed values: [0,2000]

Default value: 0


The "join-style" property

  "join-style"               GimpJoinStyle         : Read / Write / Construct

Default value: GIMP_JOIN_MITER


The "miter-limit" property

  "miter-limit"              gdouble               : Read / Write / Construct

Convert a mitered join to a bevelled join if the miter would extend to a distance of more than miter-limit * line-width from the actual join point.

Allowed values: [0,100]

Default value: 10


The "style" property

  "style"                    GimpStrokeStyle       : Read / Write / Construct

Default value: GIMP_STROKE_STYLE_SOLID


The "unit" property

  "unit"                     GimpUnit              : Read / Write / Construct

Allowed values: [0,65535]

Default value: 0


The "width" property

  "width"                    gdouble               : Read / Write / Construct

Allowed values: [0,2000]

Default value: 6

Signal Details

The "dash-info-changed" signal

void                user_function                      (GimpStrokeOptions *gimpstrokeoptions,
                                                        GimpDashPreset     arg1,
                                                        gpointer           user_data)              : Run First

gimpstrokeoptions :

the object which received the signal.

arg1 :

user_data :

user data set when the signal handler was connected.