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

## Synopsis

                        GooCanvasItemModelSimple;

## Object Hierarchy

      GObject
       +----GooCanvasItemModelSimple
             +----GooCanvasRectModel
             +----GooCanvasGroupModel
             +----GooCanvasPathModel
             +----GooCanvasEllipseModel
             +----GooCanvasTextModel
             +----GooCanvasPolylineModel
             +----GooCanvasImageModel
             +----GooCanvasGridModel

## Implemented Interfaces

GooCanvasItemModelSimple implements GooCanvasItemModel.

## Properties

      "antialias"                GooCairoAntialias     : Read / Write
      "clip-fill-rule"           GooCairoFillRule      : Read / Write
      "clip-path"                gchararray            : Write
      "fill-color"               gchararray            : Write
      "fill-color-rgba"          guint                 : Read / Write
      "fill-pattern"             GooCairoPattern       : Read / Write
      "fill-pixbuf"              GdkPixbuf             : Write
      "fill-rule"                GooCairoFillRule      : Read / Write
      "font"                     gchararray            : Read / Write
      "font-desc"                PangoFontDescription  : Read / Write
      "hint-metrics"             GooCairoHintMetrics   : Read / Write
      "line-cap"                 GooCairoLineCap       : Read / Write
      "line-dash"                GooCanvasLineDash     : Read / Write
      "line-join"                GooCairoLineJoin      : Read / Write
      "line-join-miter-limit"    gdouble               : Read / Write
      "line-width"               gdouble               : Read / Write
      "operator"                 GooCairoOperator      : Read / Write
      "stroke-color"             gchararray            : Write
      "stroke-color-rgba"        guint                 : Read / Write
      "stroke-pattern"           GooCairoPattern       : Read / Write
      "stroke-pixbuf"            GdkPixbuf             : Write

## 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.

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.

## Details

### GooCanvasItemModelSimple

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

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

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     : Read / Write

The antialiasing mode to use.

Default value: CAIRO_ANTIALIAS_GRAY

### The `"clip-fill-rule"` property

      "clip-fill-rule"           GooCairoFillRule      : Read / Write

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

Default value: CAIRO_FILL_RULE_WINDING

### The `"clip-path"` property

      "clip-path"                gchararray            : Write

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.

Default value: NULL

### The `"fill-color"` property

      "fill-color"               gchararray            : Write

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

Default value: NULL

### The `"fill-color-rgba"` property

      "fill-color-rgba"          guint                 : Read / Write

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.

Default value: 0

### The `"fill-pattern"` property

      "fill-pattern"             GooCairoPattern       : Read / Write

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

### The `"fill-pixbuf"` property

      "fill-pixbuf"              GdkPixbuf             : Write

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

### The `"fill-rule"` property

      "fill-rule"                GooCairoFillRule      : Read / Write

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

Default value: CAIRO_FILL_RULE_WINDING

### The `"font"` property

      "font"                     gchararray            : Read / Write

The base font to use for the text.

Default value: NULL

### The `"font-desc"` property

      "font-desc"                PangoFontDescription  : Read / Write

The attributes specifying which font to use.

### The `"hint-metrics"` property

      "hint-metrics"             GooCairoHintMetrics   : Read / Write

The hinting to be used for font metrics.

Default value: CAIRO_HINT_METRICS_OFF

### The `"line-cap"` property

      "line-cap"                 GooCairoLineCap       : Read / Write

The line cap style to use.

Default value: CAIRO_LINE_CAP_BUTT

### The `"line-dash"` property

      "line-dash"                GooCanvasLineDash     : Read / Write

The dash pattern to use.

### The `"line-join"` property

      "line-join"                GooCairoLineJoin      : Read / Write

The line join style to use.

Default value: CAIRO_LINE_JOIN_MITER

### The `"line-join-miter-limit"` property

      "line-join-miter-limit"    gdouble               : Read / Write

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

Allowed values: >= 0

Default value: 10

### The `"line-width"` property

      "line-width"               gdouble               : Read / Write

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

Allowed values: >= 0

Default value: 2

### The `"operator"` property

      "operator"                 GooCairoOperator      : Read / Write

The compositing operator to use.

Default value: CAIRO_OPERATOR_OVER

### The `"stroke-color"` property

      "stroke-color"             gchararray            : Write

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

Default value: NULL

### The `"stroke-color-rgba"` property

      "stroke-color-rgba"        guint                 : Read / Write

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.

Default value: 0

### The `"stroke-pattern"` property

      "stroke-pattern"           GooCairoPattern       : Read / Write

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

### The `"stroke-pixbuf"` property

      "stroke-pixbuf"            GdkPixbuf             : Write

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