#include <Styles.h>
Inheritance diagram for mcTextSettings:
Definition at line 58 of file Styles.h.
Public Member Functions | |
mcTextSettings (const wxColour fg, const wxColour bk, const wxString &fnt) | |
Sets up the text settings using the n-th token in the given strings. | |
mcTextSettings () | |
void | DeepCopy (const mcTextSettings *p) |
void | Set (const wxColour fg, const wxColour bk, const wxString &fnt) |
Sets up this object with the given colours and the given string; for the string format, see Decode. | |
void | SetFont (const wxString &fnt) |
Changes the font attributes for this object. | |
void | SetColours (const wxColour fg, const wxColour bk) |
Changes the colors associated to this object. | |
void | Decode (const wxString &fnt) |
Decodes the given string and initializes this object with it. | |
void | gui_Select (wxDC &hDC) const |
gui_Selects these text settings in the given DC. | |
bool | Ok () const |
Returns TRUE if the class has been correctly set up. | |
void | ScaleSize (float f) |
Scales the font size by given value. | |
Public Attributes | |
wxColour | m_clrFg |
The foreground and background colors. | |
wxColour | m_clrBk |
The foreground and background colors. | |
wxFont | m_hFont |
The font of this style. |
|
Sets up the text settings using the n-th token in the given strings.
Definition at line 76 of file Styles.h. References Set(). |
|
|
|
Decodes the given string and initializes this object with it. The string should be in this format: "font family-face name-font size-font weight-font style". Definition at line 176 of file MathHelpers.cpp. Referenced by SetFont(). |
|
Definition at line 82 of file Styles.h. References m_clrBk, m_clrFg, and m_hFont. Referenced by mcStyle::DeepCopy(). |
|
gui_Selects these text settings in the given DC.
Definition at line 113 of file Styles.h. References m_clrBk, m_clrFg, and m_hFont. Referenced by mcStyle::gui_Select(), and mcMathMngHelpers::gui_SelectSeparatorStyle(). |
|
Returns TRUE if the class has been correctly set up.
Definition at line 120 of file Styles.h. References m_hFont. Referenced by mcStyle::Ok(). |
|
Scales the font size by given value.
Definition at line 125 of file Styles.h. References m_hFont. Referenced by mcStyle::ScaleSize(). |
|
Sets up this object with the given colours and the given string; for the string format, see Decode.
Definition at line 91 of file Styles.h. References SetColours(), and SetFont(). Referenced by mcTextSettings(), mcStyle::Set(), mcStyle::SetSpecialTextSettings(), and mcStyle::SetTextSettingsFor(). |
|
Changes the colors associated to this object.
Definition at line 102 of file Styles.h. References m_clrBk, and m_clrFg. Referenced by Set(), and mcStyle::SetColours(). |
|
Changes the font attributes for this object.
Definition at line 97 of file Styles.h. References Decode(). Referenced by Set(), mcStyle::SetFontFor(), mcStyle::SetFonts(), and mcStyle::SetSpecialFont(). |
|
The foreground and background colors.
Definition at line 64 of file Styles.h. Referenced by DeepCopy(), gui_Select(), and SetColours(). |
|
The foreground and background colors.
Definition at line 64 of file Styles.h. Referenced by DeepCopy(), gui_Select(), and SetColours(). |
|
The font of this style.
Definition at line 67 of file Styles.h. Referenced by DeepCopy(), gui_Select(), Ok(), and ScaleSize(). |
[ Top ] |