|  |  |  | Goffice Reference Manual |  | 
|---|---|---|---|---|
#include <goffice/graph/gog-styled-object.h>
            GogStyledObject;
GogStyle*   gog_styled_object_get_style     (GogStyledObject *gso);
GogStyle*   gog_styled_object_get_auto_style
                                            (GogStyledObject *gso);
gboolean    gog_styled_object_set_style     (GogStyledObject *gso,
                                             GogStyle *style);
void        gog_styled_object_apply_theme   (GogStyledObject *gso,
                                             GogStyle *style);
void        gog_styled_object_style_changed (GogStyledObject *gso);
GObject +----GogObject +----GogStyledObject +----GogOutlinedObject +----GogAxisBase +----GogGrid +----GogGridLine +----GogSeries +----GogSeriesElement +----GogSeriesLines +----GogTrendLine
"style-changed" void user_function (GogStyledObject *gogstyledobject, GObject *arg1, gpointer user_data) : Run last
GogStyledObject provides a base class derived from GogObject, which adds style functionnalities used for drawing object on graph canvas.
GogStyle* gog_styled_object_get_style (GogStyledObject *gso);
Simply an accessor function that returns gso->style, without referencing it.
| gso: | 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.
| gso: | a GogStyledObject | 
| Returns : | a new GogStyle | 
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.
| gso: | a GogStyledObject | 
| style: | a GogStyle | 
| Returns : | TRUEif new style may lead to change of object size, which
happens when changing font size for example. | 
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.
| gso: | a GogStyledObject | 
| style: | a GogStyle that will be themed | 
void gog_styled_object_style_changed (GogStyledObject *gso);
Emits the "style-changed" signal.
| gso: | a GogStyledObject | 
void user_function (GogStyledObject *gogstyledobject, GObject *arg1, gpointer user_data) : Run last
| gogstyledobject: | the object which received the signal. | 
| arg1: | |
| user_data: | user data set when the signal handler was connected. |