Global configuration.
More...
#include <ofxOuiCommon.hpp>
§ Globals() [1/3]
ofxOui::Globals::Globals |
( |
| ) |
|
|
inlineprivate |
§ Globals() [2/3]
ofxOui::Globals::Globals |
( |
const Globals & |
| ) |
|
|
privatedelete |
§ Globals() [3/3]
ofxOui::Globals::Globals |
( |
Globals && |
| ) |
|
|
privatedelete |
§ getDefaultFontPath()
static string ofxOui::Globals::getDefaultFontPath |
( |
| ) |
|
|
inlinestatic |
Get the default font path.
- Returns
- path to the default TTF font
§ getDefaultFontSize()
static float ofxOui::Globals::getDefaultFontSize |
( |
| ) |
|
|
inlinestatic |
Get the default font size.
- Returns
- the default font size for all UI components
§ getDefaultLineHeight()
static float ofxOui::Globals::getDefaultLineHeight |
( |
| ) |
|
|
inlinestatic |
Get the default line height.
- Returns
- the default line height for all UI components
§ getInstance()
static Globals& ofxOui::Globals::getInstance |
( |
| ) |
|
|
inlinestaticprivate |
§ getRetina()
static bool ofxOui::Globals::getRetina |
( |
| ) |
|
|
inlinestatic |
Get the retina setting.
- Returns
- true if the screen is high definition
§ operator=() [1/2]
§ operator=() [2/2]
§ releaseFont()
static void ofxOui::Globals::releaseFont |
( |
void * |
client | ) |
|
|
inlinestatic |
Release a font from a particular client.
- Parameters
-
client | pointer to the client who initially requested the font |
§ reloadFonts()
void ofxOui::Globals::reloadFonts |
( |
| ) |
|
|
inlineprivate |
§ requestFont()
static ofTrueTypeFont* ofxOui::Globals::requestFont |
( |
void * |
client, |
|
|
string |
font_path, |
|
|
float |
font_size, |
|
|
float |
line_height, |
|
|
float |
letter_spacing |
|
) |
| |
|
inlinestatic |
Request a font with a particular setting.
- Parameters
-
client | pointer to the client who requested the font |
font_path | path to the TTF font |
font_size | font size (pts) |
line_height | line height (pts) |
letter_spacing | letter spacing (pts) |
- Returns
- a pointer to the font with required settings
§ setDefaultFontPath()
static void ofxOui::Globals::setDefaultFontPath |
( |
string |
path | ) |
|
|
inlinestatic |
Set the default font path.
- Parameters
-
path | path to the default TTF font |
§ setDefaultFontSize()
static void ofxOui::Globals::setDefaultFontSize |
( |
float |
font_size | ) |
|
|
inlinestatic |
Set the default font size.
- Parameters
-
§ setDefaultLineHeight()
static void ofxOui::Globals::setDefaultLineHeight |
( |
float |
line_height | ) |
|
|
inlinestatic |
Set the default line height.
- Parameters
-
§ setRetina()
static void ofxOui::Globals::setRetina |
( |
bool |
enabled | ) |
|
|
inlinestatic |
Set retina display on/off.
- Parameters
-
enabled | Specifies if high definition should be enabled |
§ catalog_
map<pair<string, vector<float> >, pair<ofTrueTypeFont*, set<void*> > > ofxOui::Globals::catalog_ |
|
private |
§ font_path_
string ofxOui::Globals::font_path_ = "Lato-Regular.ttf" |
|
private |
§ font_size_
float ofxOui::Globals::font_size_ = 10. |
|
private |
§ line_height_
float ofxOui::Globals::line_height_ = 12. |
|
private |
§ retina_enabled_
bool ofxOui::Globals::retina_enabled_ = false |
|
private |
The documentation for this class was generated from the following file: