Text

Text —

Synopsis




            CcText;
            CcTextClass;
CcItem*     cc_text_new                     (gchar const *text);
void        cc_text_set_anchor              (CcText *self,
                                             gdouble x,
                                             gdouble y);
void        cc_text_set_anchor_type         (CcText *self,
                                             GtkAnchorType anchor);

Object Hierarchy


  GObject
   +----GInitiallyUnowned
         +----CcItem
               +----CcShape
                     +----CcText

Implemented Interfaces

CcText implements

Properties


  "anchor"               GtkAnchorType         : Read / Write / Construct
  "cursor"               gint                  : 
  "editable"             gboolean              : Read / Write
  "size-pixels"          gboolean              : Read / Write
  "text"                 gchararray            : Read / Write

Description

Details

CcText

typedef struct _CcText CcText;


CcTextClass

typedef struct {
	CcShapeClass base_class;

	/* vtable */
	void (*delete) (CcText     * self,
			guint        offset,
			gsize        length);
	void (*insert) (CcText     * self,
			gchar const* text,
			gsize        offset);
} CcTextClass;


cc_text_new ()

CcItem*     cc_text_new                     (gchar const *text);

text :
Returns :

cc_text_set_anchor ()

void        cc_text_set_anchor              (CcText *self,
                                             gdouble x,
                                             gdouble y);

self :
x :
y :

cc_text_set_anchor_type ()

void        cc_text_set_anchor_type         (CcText *self,
                                             GtkAnchorType anchor);

self :
anchor :

Property Details

The "anchor" property

  "anchor"               GtkAnchorType         : Read / Write / Construct

The location of the anchor point of the text element.

Default value: GTK_ANCHOR_NORTH_WEST


The "cursor" property

  "cursor"               gint                  : 

cursor.

Allowed values: [0,0]

Default value: 0


The "editable" property

  "editable"             gboolean              : Read / Write

editable.

Default value: FALSE


The "size-pixels" property

  "size-pixels"          gboolean              : Read / Write

Specifies whether the given size is in pixels or in canvas units.

Default value: FALSE


The "text" property

  "text"                 gchararray            : Read / Write

The displayed text.

Default value: NULL