GogText

GogText — A text label.

Synopsis

                    GogText;
                    GogTextClass;
char *              gog_text_get_str                    (GogText *text);
#define             GOG_TYPE_LABEL
#define             GOG_LABEL                           (o)
#define             GOG_IS_LABEL                        (o)
GType               gog_label_get_type                  (void);
#define             GOG_TYPE_REG_EQN
#define             GOG_REG_EQN                         (o)
#define             GOG_IS_REG_EQN                      (o)
GType               gog_reg_eqn_get_type                (void);

Object Hierarchy

  GObject
   +----GogObject
         +----GogStyledObject
               +----GogOutlinedObject
                     +----GogText
                           +----GogLabel
                           +----GogRegEqn

Implemented Interfaces

GogText implements GOStyledObject.

Properties

  "allow-markup"             gboolean              : Read / Write
  "allow-wrap"               gboolean              : Read / Write
  "rotate-bg"                gboolean              : Read / Write
  "rotate-frame"             gboolean              : Read / Write

Description

A text label for use in a graph. Can for instance be used as a title of a GogChart or GogGraph.

Details

GogText

typedef struct _GogText GogText;


GogTextClass

typedef struct {
	GogOutlinedObjectClass base;

	char *(*get_str)    (GogText *text);
	PangoAttrList *(*get_markup)    (GogText *text);
} GogTextClass;

GogOutlinedObjectClass base;

get_str ()

returns the text associated with the object.

get_markup ()

returns the pango attributes.

gog_text_get_str ()

char *              gog_text_get_str                    (GogText *text);

text :

Returns :


GOG_TYPE_LABEL

#define GOG_TYPE_LABEL (gog_label_get_type ())


GOG_LABEL()

#define GOG_LABEL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOG_TYPE_LABEL, GogLabel))

o :


GOG_IS_LABEL()

#define GOG_IS_LABEL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOG_TYPE_LABEL))

o :


gog_label_get_type ()

GType               gog_label_get_type                  (void);

Returns :


GOG_TYPE_REG_EQN

#define GOG_TYPE_REG_EQN (gog_reg_eqn_get_type ())


GOG_REG_EQN()

#define GOG_REG_EQN(o)		(G_TYPE_CHECK_INSTANCE_CAST ((o), GOG_TYPE_REG_EQN, GogRegEqn))

o :


GOG_IS_REG_EQN()

#define GOG_IS_REG_EQN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOG_TYPE_REG_EQN))

o :


gog_reg_eqn_get_type ()

GType               gog_reg_eqn_get_type                (void);

Returns :

Property Details

The "allow-markup" property

  "allow-markup"             gboolean              : Read / Write

Support basic HTML-ish markup.

Default value: FALSE


The "allow-wrap" property

  "allow-wrap"               gboolean              : Read / Write

Whether the text might be displayed using several lines.

Default value: FALSE


The "rotate-bg" property

  "rotate-bg"                gboolean              : Read / Write

Whether the background should be rotated with the text.

Default value: FALSE


The "rotate-frame" property

  "rotate-frame"             gboolean              : Read / Write

Whether the frame should be rotated with the text.

Default value: FALSE