![]() |
![]() |
![]() |
GNOME Canvas Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
GObject +----GInitiallyUnowned +----GtkObject +----GnomeCanvasItem +----GnomeCanvasText
"anchor" GtkAnchorType : Read / Write "attributes" PangoAttrList* : Read / Write "clip" gboolean : Read / Write "clip-height" gdouble : Read / Write "clip-width" gdouble : Read / Write "family" gchar* : Read / Write "family-set" gboolean : Read / Write "fill-color" gchar* : Read / Write "fill-color-gdk" GdkColor* : Read / Write "fill-color-rgba" guint : Read / Write "fill-stipple" GdkDrawable* : Read / Write "font" gchar* : Read / Write "font-desc" PangoFontDescription* : Read / Write "justification" GtkJustification : Read / Write "markup" gchar* : Write "rise" gint : Read / Write "rise-set" gboolean : Read / Write "scale" gdouble : Read / Write "scale-set" gboolean : Read / Write "size" gint : Read / Write "size-points" gdouble : Read / Write "size-set" gboolean : Read / Write "stretch" PangoStretch : Read / Write "stretch-set" gboolean : Read / Write "strikethrough" gboolean : Read / Write "strikethrough-set" gboolean : Read / Write "style" PangoStyle : Read / Write "style-set" gboolean : Read / Write "text" gchar* : Read / Write "text-height" gdouble : Read "text-width" gdouble : Read "underline" PangoUnderline : Read / Write "underline-set" gboolean : Read / Write "variant" PangoVariant : Read / Write "variant-set" gboolean : Read / Write "weight" gint : Read / Write "weight-set" gboolean : Read / Write "x" gdouble : Read / Write "x-offset" gdouble : Read / Write "y" gdouble : Read / Write "y-offset" gdouble : Read / Write
A canvas item for displaying text. See GnomeCanvasRichText for a more advanced text display and editing canvas item. NB: The GnomeCanvasText item doesn't scale with the zoom property of the GnomeCanvas. A zoomable implementation could derive from GnomeCanvasText and check the zoom property for manual adjustments to the font size.
"anchor"
property"anchor" GtkAnchorType : Read / Write
Anchor position for the text.
Default value: GTK_ANCHOR_CENTER
"attributes"
property"attributes" PangoAttrList* : Read / Write
Pointer to a Pango attribute list (PangoAttrList).
"clip-height"
property"clip-height" gdouble : Read / Write
Height of clip rectangle.
Default value: 0
"clip-width"
property"clip-width" gdouble : Read / Write
Width of clip rectangle.
Default value: 0
"family"
property"family" gchar* : Read / Write
Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
Default value: NULL
"family-set"
property"family-set" gboolean : Read / Write
Apply specified font family?
Default value: FALSE
"fill-color"
property"fill-color" gchar* : Read / Write
X color specification for text.
Default value: NULL
"fill-color-gdk"
property"fill-color-gdk" GdkColor* : Read / Write
Pointer to an allocated GdkColor.
"fill-color-rgba"
property"fill-color-rgba" guint : Read / Write
RGBA value used for AA color (in the format 0xRRGGBBAA).
Default value: 0
"fill-stipple"
property"fill-stipple" GdkDrawable* : Read / Write
Stipple pattern for filling the text.
"font-desc"
property"font-desc" PangoFontDescription* : Read / Write
Font description as a PangoFontDescription struct.
"justification"
property"justification" GtkJustification : Read / Write
Justification for multiline text.
Default value: GTK_JUSTIFY_LEFT
"rise"
property"rise" gint : Read / Write
Offset of text above the baseline (below the baseline if rise is negative).
Allowed values: >= -2147483647
Default value: 0
"rise-set"
property"rise-set" gboolean : Read / Write
Apply the specified "rise"?
Default value: FALSE
"scale"
property"scale" gdouble : Read / Write
Size of font, relative to default size.
Allowed values: >= 0
Default value: 1
"scale-set"
property"scale-set" gboolean : Read / Write
Apply specified font scaling ratio?
Default value: FALSE
"size"
property"size" gint : Read / Write
Size (in pixels) of font.
Allowed values: >= 0
Default value: 0
"size-points"
property"size-points" gdouble : Read / Write
Size (in points) of font.
Allowed values: >= 0
Default value: 0
"size-set"
property"size-set" gboolean : Read / Write
Apply specified font size?
Default value: FALSE
"stretch"
property"stretch" PangoStretch : Read / Write
Pango stretch of font to use (PangoStretch).
Default value: PANGO_STRETCH_NORMAL
"stretch-set"
property"stretch-set" gboolean : Read / Write
Apply specified pango stretch?
Default value: FALSE
"strikethrough"
property"strikethrough" gboolean : Read / Write
Whether to strike through the text.
Default value: FALSE
"strikethrough-set"
property"strikethrough-set" gboolean : Read / Write
Apply specified strikethrough option?
Default value: FALSE
"style"
property"style" PangoStyle : Read / Write
Pango style of font to use (PangoStyle).
Default value: PANGO_STYLE_NORMAL
"style-set"
property"style-set" gboolean : Read / Write
Apply specified pango style?
Default value: FALSE
"text-height"
property"text-height" gdouble : Read
Used to query the rendered height of the text.
Allowed values: >= 0
Default value: 0
"text-width"
property"text-width" gdouble : Read
Used to query the width of the rendered text.
Allowed values: >= 0
Default value: 0
"underline"
property"underline" PangoUnderline : Read / Write
Pango underline style for text (PangoUnderline).
Default value: PANGO_UNDERLINE_NONE
"underline-set"
property"underline-set" gboolean : Read / Write
Apply specified pango underline style?
Default value: FALSE
"variant"
property"variant" PangoVariant : Read / Write
Pango variant of font to use (PangoVariant).
Default value: PANGO_VARIANT_NORMAL
"variant-set"
property"variant-set" gboolean : Read / Write
Apply specified pango variant?
Default value: FALSE
"weight"
property"weight" gint : Read / Write
Pango weight of font to use.
Allowed values: >= 0
Default value: 400
"weight-set"
property"weight-set" gboolean : Read / Write
Apply specified pango weight?
Default value: FALSE
"x-offset"
property"x-offset" gdouble : Read / Write
Horizontal offset distance from anchor position.
Default value: 0
"y-offset"
property"y-offset" gdouble : Read / Write
Vertical offset distance from anchor position.
Default value: 0