The Gnome Chemistry Utils
0.14.0
|
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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.
void gcp::Theme::NotifyChanged | ( | ) |
Notify all the theme clients that at least one setting changed.
bool gcp::Theme::operator== | ( | const Theme & | theme | ) |
theme | a theme to compare. |
void gcp::Theme::RemoveClient | ( | gcu::Object * | client | ) |
client | the client to remove. |
Removes client to the list of this theme clients.
bool gcp::Theme::Save | ( | xmlDocPtr | xml | ) |
xml | the xml document used for serialization. |
Builds an xml node containing the serialized theme.