GooCanvasItemModelSimple: GooCanvas Reference Manual

## GooCanvasItemModelSimple GooCanvasItemModelSimple — the base class for the standard canvas item models. |

## Properties

GooCairoAntialias | antialias | Read / Write
GooCairoFillRule | clip-fill-rule | Read / Write
char * | clip-path | Write
char * | fill-color | Write
GdkRGBA * | fill-color-gdk-rgba | Read / Write
guint | fill-color-rgba | Read / Write
GooCairoPattern * | fill-pattern | Read / Write
GdkPixbuf * | fill-pixbuf | Write
GooCairoFillRule | fill-rule | Read / Write
char * | font | Read / Write
PangoFontDescription * | font-desc | Read / Write
GooCairoHintMetrics | hint-metrics | Read / Write
GooCairoLineCap | line-cap | Read / Write
GooCanvasLineDash * | line-dash | Read / Write
GooCairoLineJoin | line-join | Read / Write
double | line-join-miter-limit | Read / Write
double | line-width | Read / Write
GooCairoOperator | operator | Read / Write
char * | stroke-color | Write
GdkRGBA * | stroke-color-gdk-rgba | Read / Write
guint | stroke-color-rgba | Read / Write
GooCairoPattern * | stroke-pattern | Read / Write
GdkPixbuf * | stroke-pixbuf | Write

## Types and Values

struct | GooCanvasItemModelSimple

## Object Hierarchy

        GObject
        ╰── GooCanvasItemModelSimple
            ├── GooCanvasRectModel
            ├── GooCanvasGroupModel
            ├── GooCanvasPathModel
            ├── GooCanvasEllipseModel
            ├── GooCanvasTextModel
            ├── GooCanvasPolylineModel
            ├── GooCanvasImageModel
            ╰── GooCanvasGridModel

## Implemented Interfaces

GooCanvasItemModelSimple implements GooCanvasItemModel.

## Description

GooCanvasItemModelSimple is used as a base class for the standard canvas item models. It can also be used as the base class for new custom canvas item models.

The Model/View canvas feature may be removed in a future version of GooCanvas.

It provides default implementations for many of the GooCanvasItemModel methods.

Subclasses of GooCanvasItemModelSimple only need to implement the `create_item()` method of the GooCanvasItemModel interface, to create the default canvas item to view the item model.

## Functions

## Types and Values

### struct GooCanvasItemModelSimple

    struct GooCanvasItemModelSimple {
      GooCanvasItemModel *parent;
      GooCanvasItemSimpleData simple_data;
    };

The GooCanvasItemModelSimple struct contains the basic data needed to implement canvas item models.

#### Members

GooCanvasItemModel *`parent`; | the parent model. |
GooCanvasItemSimpleData `simple_data`; | data used by the canvas item for viewing the model. |

## Property Details

### The `“antialias”` property

      “antialias”                GooCairoAntialias

The antialiasing mode to use.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

Default value: CAIRO_ANTIALIAS_GRAY

### The `“clip-fill-rule”` property

      “clip-fill-rule”           GooCairoFillRule

The fill rule used to determine which parts of the item are clipped.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

Default value: CAIRO_FILL_RULE_WINDING

### The `“clip-path”` property

      “clip-path”                char *

The sequence of commands describing the clip path of the item, specified as a string using the same syntax as in the Scalable Vector Graphics (SVG) path element.

Owner: GooCanvasItemModelSimple

Flags: Write

Default value: NULL

### The `“fill-color”` property

      “fill-color”               char *

The color to use to paint the interior of the item. To disable painting set the 'fill-pattern' property to NULL.

Owner: GooCanvasItemModelSimple

Flags: Write

Default value: NULL

### The `“fill-color-gdk-rgba”` property

      “fill-color-gdk-rgba”      GdkRGBA *

The color to use to paint the interior of the item, specified as a GdkRGBA. To disable painting set the 'fill-pattern' property to NULL.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

### The `“fill-color-rgba”` property

      “fill-color-rgba”          guint

The color to use to paint the interior of the item, specified as a 32-bit integer value. To disable painting set the 'fill-pattern' property to NULL.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

Default value: 0

### The `“fill-pattern”` property

      “fill-pattern”             GooCairoPattern *

The pattern to use to paint the interior of the item, or NULL to disable painting.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

### The `“fill-pixbuf”` property

      “fill-pixbuf”              GdkPixbuf *

The pixbuf to use to paint the interior of the item. To disable painting set the 'fill-pattern' property to NULL.

Owner: GooCanvasItemModelSimple

Flags: Write

### The `“fill-rule”` property

      “fill-rule”                GooCairoFillRule

The fill rule used to determine which parts of the item are filled.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

Default value: CAIRO_FILL_RULE_WINDING

### The `“font”` property

      “font”                     char *

The base font to use for the text.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

Default value: NULL

### The `“font-desc”` property

      “font-desc”                PangoFontDescription *

The attributes specifying which font to use.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

### The `“hint-metrics”` property

      “hint-metrics”             GooCairoHintMetrics

The hinting to be used for font metrics.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

Default value: CAIRO_HINT_METRICS_OFF

### The `“line-cap”` property

      “line-cap”                 GooCairoLineCap

The line cap style to use.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

Default value: CAIRO_LINE_CAP_BUTT

### The `“line-dash”` property

      “line-dash”                GooCanvasLineDash *

The dash pattern to use.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

### The `“line-join”` property

      “line-join”                GooCairoLineJoin

The line join style to use.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

Default value: CAIRO_LINE_JOIN_MITER

### The `“line-join-miter-limit”` property

      “line-join-miter-limit”    double

The smallest angle to use with miter joins, in degrees. Bevel joins will be used below this limit.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

Allowed values: >= 0

Default value: 10

### The `“line-width”` property

      “line-width”               double

The line width to use for the item's perimeter.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

Allowed values: >= 0

Default value: 2

### The `“operator”` property

      “operator”                 GooCairoOperator

The compositing operator to use.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

Default value: CAIRO_OPERATOR_OVER

### The `“stroke-color”` property

      “stroke-color”             char *

The color to use for the item's perimeter. To disable painting set the 'stroke-pattern' property to NULL.

Owner: GooCanvasItemModelSimple

Flags: Write

Default value: NULL

### The `“stroke-color-gdk-rgba”` property

      “stroke-color-gdk-rgba”    GdkRGBA *

The color to use for the item's perimeter, specified as a GdkRGBA. To disable painting set the 'stroke-pattern' property to NULL.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

### The `“stroke-color-rgba”` property

      “stroke-color-rgba”        guint

The color to use for the item's perimeter, specified as a 32-bit integer value. To disable painting set the 'stroke-pattern' property to NULL.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

Default value: 0

### The `“stroke-pattern”` property

      “stroke-pattern”           GooCairoPattern *

The pattern to use to paint the perimeter of the item, or NULL disable painting.

Owner: GooCanvasItemModelSimple

Flags: Read / Write

### The `“stroke-pixbuf”` property

      “stroke-pixbuf”            GdkPixbuf *

The pixbuf to use to draw the item's perimeter. To disable painting set the 'stroke-pattern' property to NULL.

Owner: GooCanvasItemModelSimple

Flags: Write