|  |  |  | Goffice Reference Manual |  | 
|---|---|---|---|---|
                    GogStyledObject;
#define             GOG_STYLED_OBJECT_TYPE
#define             GOG_STYLED_OBJECT                   (o)
#define             IS_GOG_STYLED_OBJECT                (o)
#define             GOG_STYLED_OBJECT_GET_CLASS         (o)
GType               gog_styled_object_get_type          (void);
gboolean            gog_styled_object_set_style         (GogStyledObject *gso,
                                                         GogStyle *style);
GogStyle*           gog_styled_object_get_style         (GogStyledObject *gso);
GogStyle*           gog_styled_object_get_auto_style    (GogStyledObject *gso);
void                gog_styled_object_style_changed     (GogStyledObject *gso);
void                gog_styled_object_apply_theme       (GogStyledObject *gso,
                                                         GogStyle *style);
GObject +----GogObject +----GogStyledObject +----GogGrid +----GogOutlinedObject +----GogSeriesLines +----GogAxisBase +----GogSeriesElement +----GogSeries +----GogTrendLine +----GogGridLine
GogStyledObject provides a base class derived from GogObject, which adds style functionnalities used for drawing object on graph canvas.
#define GOG_STYLED_OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOG_STYLED_OBJECT_TYPE, GogStyledObject))
| 
 | 
#define IS_GOG_STYLED_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOG_STYLED_OBJECT_TYPE))
| 
 | 
#define GOG_STYLED_OBJECT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOG_STYLED_OBJECT_TYPE, GogStyledObjectClass))
| 
 | 
gboolean gog_styled_object_set_style (GogStyledObject *gso, GogStyle *style);
Sets a new style for gso, and emits "style-changed" signal. This function
does not take ownership of style.
| 
 | a GogStyledObject | 
| 
 | a GogStyle | 
| Returns : | TRUEif new style may lead to change of object size, which
happens when changing font size for example. | 
GogStyle* gog_styled_object_get_style (GogStyledObject *gso);
Simply an accessor function that returns gso->style, without referencing it.
| 
 | a GogStyledObject | 
| Returns : | the styled object's GogStyle | 
GogStyle* gog_styled_object_get_auto_style (GogStyledObject *gso);
This function returns a new style that is initialized with the auto values for gso.
Caller is responsible for the result.
| 
 | a GogStyledObject | 
| Returns : | a new GogStyle | 
void gog_styled_object_style_changed (GogStyledObject *gso);
Emits the "style-changed" signal.
| 
 | a GogStyledObject | 
void gog_styled_object_apply_theme (GogStyledObject *gso, GogStyle *style);
Apply theme of gso's parent graph to style, i.e. properties with 
auto flag set to TRUE are changed to default theme value.
| 
 | a GogStyledObject | 
| 
 | a GogStyle that will be themed | 
"style-changed" signalvoid user_function (GogStyledObject *gogstyledobject, GObject *arg1, gpointer user_data) : Run Last
| 
 | the object which received the signal. | 
| 
 | |
| 
 | user data set when the signal handler was connected. |