|
The Gnome Chemistry Utils
0.14.17
|
themes class. More...
#include <gcp/theme.h>
Public Member Functions | |
| Theme (char const *name) | |
| ~Theme () | |
| std::string & | GetName () |
| std::string & | GetFileName () |
| bool | Save (xmlDocPtr xml) |
| bool | Load (xmlNodePtr node) |
| bool | operator== (const Theme &theme) |
| void | AddClient (gcu::Object *client) |
| void | RemoveClient (gcu::Object *client) |
| void | NotifyChanged () |
| double | GetBondLength (void) const |
| double | GetBondAngle (void) const |
| double | GetBondDist (void) const |
| double | GetBondWidth (void) const |
| double | GetArrowLength (void) const |
| double | GetHashWidth (void) const |
| double | GetHashDist (void) const |
| double | GetStereoBondWidth (void) const |
| double | GetZoomFactor (void) const |
| double | GetPadding (void) const |
| double | GetArrowHeadA (void) const |
| double | GetArrowHeadB (void) const |
| double | GetArrowHeadC (void) const |
| double | GetArrowDist (void) const |
| double | GetArrowWidth (void) const |
| double | GetArrowPadding (void) const |
| double | GetArrowObjectPadding (void) const |
| double | GetStoichiometryPadding (void) const |
| double | GetObjectPadding (void) const |
| double | GetSignPadding (void) const |
| double | GetChargeSignSize (void) const |
| gchar * | GetFontFamily (void) const |
| PangoStyle | GetFontStyle (void) const |
| PangoWeight | GetFontWeight (void) const |
| PangoVariant | GetFontVariant (void) const |
| PangoStretch | GetFontStretch (void) const |
| gint | GetFontSize (void) const |
| gchar * | GetTextFontFamily (void) const |
| PangoStyle | GetTextFontStyle (void) const |
| PangoWeight | GetTextFontWeight (void) const |
| PangoVariant | GetTextFontVariant (void) const |
| PangoStretch | GetTextFontStretch (void) const |
| gint | GetTextFontSize (void) const |
| ThemeType | GetThemeType (void) const |
| gcp::Theme::Theme | ( | char const * | name | ) |
| name | the name of the new theme. |
Constructs a new theme according to the local settings.
| gcp::Theme::~Theme | ( | ) |
The destructor.
|
inline |
| client | the client to add. |
Adds a new client to the list of this theme clients.
Definition at line 118 of file theme.h.
References NotifyChanged(), and RemoveClient().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 92 of file theme.h.
References Load(), operator==(), and Save().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool gcp::Theme::Load | ( | xmlNodePtr | node | ) |
| node | the xml node containing the serialized theme. |
Loads a theme in memory, either from the theme database or from a document file.
Referenced by GetFileName().
| void gcp::Theme::NotifyChanged | ( | ) |
Notify all the theme clients that at least one setting changed.
Referenced by AddClient().
| bool gcp::Theme::operator== | ( | const Theme & | theme | ) |
| theme | a theme to compare. |
Referenced by GetFileName().
| void gcp::Theme::RemoveClient | ( | gcu::Object * | client | ) |
| client | the client to remove. |
Removes client to the list of this theme clients.
Referenced by AddClient().
| bool gcp::Theme::Save | ( | xmlDocPtr | xml | ) |
| xml | the xml document used for serialization. |
Builds an xml node containing the serialized theme.
Referenced by GetFileName().
1.8.13