|  |  |  | libccc Reference Manual |  | 
|---|---|---|---|---|
#include <ccc.h>
                    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);
gcharconst*         cc_text_get_text                    (CcText const *self);
gboolean            cc_text_is_editable                 (CcText const *self);
void                cc_text_set_editable                (CcText *self,
                                                         gboolean editable);
void                cc_text_set_font_description        (CcText *self,
                                                         PangoFontDescription *desc);
void                cc_text_set_markup                  (CcText *self,
                                                         gchar const *markup);
void                cc_text_set_size_pixels             (CcText *self,
                                                         gboolean size_pixels);
void                cc_text_set_text                    (CcText *self,
                                                         gchar const *text);
"anchor" GtkAnchorType : Read / Write / Construct "attributes" PangoAttrList : Read / Write "brush-caret" CcBrush : Read / Write "cursor" gint : "editable" gboolean : Read / Write "size-pixels" gboolean : Read / Write "text" gchararray : Read / Write
typedef struct {
	CcShapeClass base_class;
	/* vtable */
	void (*remove) (CcText     * self,
			guint        offset,
			gsize        length);
	void (*insert) (CcText     * self,
			gchar const* text,
			gsize        offset);
} CcTextClass;
void cc_text_set_anchor (CcText *self, gdouble x, gdouble y);
Specify the location of the anchor point of the text item.
| self: | a CcText | 
| x: | the horizontal position of the anchor point | 
| y: | the vertical position of the anchor point | 
void cc_text_set_anchor_type (CcText *self, GtkAnchorType anchor);
Set the anchor type of the text item. It specifies the location of the anchor point relative to the text (so that north-west would become the top-left corner).
| self: | a CcText | 
| anchor: | the anchor type to be specified | 
void cc_text_set_editable (CcText *self, gboolean editable);
| self: | |
| editable: | 
void cc_text_set_font_description (CcText *self, PangoFontDescription *desc);
Sets the font description to be used for rendering.
| self: | a CcText | 
| desc: | a PangoFontDescription | 
void cc_text_set_markup (CcText *self, gchar const *markup);
Set the markup displayed by this item.
| self: | a CcText | 
| markup: | the markup to be set | 
void cc_text_set_size_pixels (CcText *self, gboolean size_pixels);
Specify whether the text size is given in pixels. If it is, the text won't scale with the zoom level.
| self: | a Cctext | 
| size_pixels: | the value to be set | 
anchor" property"anchor" GtkAnchorType : Read / Write / Construct
The location of the anchor point of the text element.
Default value: GTK_ANCHOR_NORTH_WEST
attributes" property"attributes" PangoAttrList : Read / Write
The PangoAttrList that specifies the .
brush-caret" property"brush-caret" CcBrush : Read / Write
The brush used to paint the caret (text cursor).
size-pixels" property"size-pixels" gboolean : Read / Write
Specifies whether the given size is in pixels or in canvas units.
Default value: FALSE