The Gnome Chemistry Utils 0.13.3
|
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.
void gcp::Theme::AddClient | ( | gcu::Object * | client | ) | [inline] |
gcp::Theme::GetArrowDist | ( | void | ) | const [inline] |
gcp::Theme::GetArrowHeadA | ( | void | ) | const [inline] |
gcp::Theme::GetArrowHeadB | ( | void | ) | const [inline] |
gcp::Theme::GetArrowHeadC | ( | void | ) | const [inline] |
gcp::Theme::GetArrowLength | ( | void | ) | const [inline] |
gcp::Theme::GetArrowObjectPadding | ( | void | ) | const [inline] |
gcp::Theme::GetArrowPadding | ( | void | ) | const [inline] |
gcp::Theme::GetArrowWidth | ( | void | ) | const [inline] |
gcp::Theme::GetBondAngle | ( | void | ) | const [inline] |
gcp::Theme::GetBondDist | ( | void | ) | const [inline] |
gcp::Theme::GetBondLength | ( | void | ) | const [inline] |
gcp::Theme::GetBondWidth | ( | void | ) | const [inline] |
gcp::Theme::GetChargeSignSize | ( | void | ) | const [inline] |
std::string& gcp::Theme::GetFileName | ( | ) | [inline] |
gcp::Theme::GetFontFamily | ( | void | ) | const [inline] |
gcp::Theme::GetFontSize | ( | void | ) | const [inline] |
gcp::Theme::GetFontStretch | ( | void | ) | const [inline] |
gcp::Theme::GetFontStyle | ( | void | ) | const [inline] |
gcp::Theme::GetFontVariant | ( | void | ) | const [inline] |
gcp::Theme::GetFontWeight | ( | void | ) | const [inline] |
gcp::Theme::GetHashDist | ( | void | ) | const [inline] |
gcp::Theme::GetHashWidth | ( | void | ) | const [inline] |
std::string& gcp::Theme::GetName | ( | void | ) | [inline] |
gcp::Theme::GetObjectPadding | ( | void | ) | const [inline] |
gcp::Theme::GetPadding | ( | void | ) | const [inline] |
gcp::Theme::GetSignPadding | ( | void | ) | const [inline] |
gcp::Theme::GetStereoBondWidth | ( | void | ) | const [inline] |
gcp::Theme::GetStoichiometryPadding | ( | void | ) | const [inline] |
gcp::Theme::GetTextFontFamily | ( | void | ) | const [inline] |
gcp::Theme::GetTextFontSize | ( | void | ) | const [inline] |
gcp::Theme::GetTextFontStretch | ( | void | ) | const [inline] |
gcp::Theme::GetTextFontStyle | ( | void | ) | const [inline] |
gcp::Theme::GetTextFontVariant | ( | void | ) | const [inline] |
gcp::Theme::GetTextFontWeight | ( | void | ) | const [inline] |
gcp::Theme::GetThemeType | ( | void | ) | const [inline] |
gcp::Theme::GetZoomFactor | ( | void | ) | const [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.