ScummVM
Glk::Conf Class Reference

Engine configuration. More...

#include <conf.h>

Collaboration diagram for Glk::Conf:

Public Member Functions

 Conf (InterpreterType interpType)
 Constructor. More...
 

Public Attributes

MonoFontInfo _monoInfo
 
PropFontInfo _propInfo
 
int _cols
 
int _rows
 
int _lockCols
 
int _lockRows
 
int _wMarginX
 
int _wMarginY
 
int _wMarginSaveX
 
int _wMarginSaveY
 
int _wPaddingX
 
int _wPaddingY
 
int _wBorderX
 
int _wBorderY
 
int _tMarginX
 
int _tMarginY
 
double _gamma
 
uint _borderColor
 
uint _borderSave
 
uint _windowColor
 
uint _windowSave
 
int _lcd
 
int _scrollWidth
 
uint _scrollBg
 
uint _scrollFg
 
bool _graphics
 
bool _sound
 
bool _speak
 
bool _speakInput
 
Common::String _speakLanguage
 
int _styleHint
 
bool _safeClicks
 
WindowStyle _tStyles [style_NUMSTYLES]
 
WindowStyle _gStyles [style_NUMSTYLES]
 
WindowStyle _tStylesDefault [style_NUMSTYLES]
 
WindowStyle _gStylesDefault [style_NUMSTYLES]
 
int _imageW
 
int _imageH
 

Private Member Functions

void get (const Common::String &key, Common::String &field, const char *defaultVal=nullptr)
 Get a string. More...
 
void get (const Common::String &key, uint &color, const byte *defaultColor)
 Get a color. More...
 
void get (const Common::String &key, FACES &field, FACES defaultFont)
 Get a font name into a font Id. More...
 
void get (const Common::String &key, int &field, int defaultVal=0)
 Get a numeric value. More...
 
void get (const Common::String &key, bool &field, bool defaultVal=false)
 Get a numeric value. More...
 
void get (const Common::String &key, double &field, double defaultVal=0.0)
 Get a double. More...
 
uint parseColor (const Common::String &str)
 Parse a color. More...
 

Detailed Description

Engine configuration.

Definition at line 35 of file conf.h.

Constructor & Destructor Documentation

◆ Conf()

Glk::Conf::Conf ( InterpreterType  interpType)

Constructor.

Definition at line 66 of file conf.cpp.

Member Function Documentation

◆ get() [1/6]

void Glk::Conf::get ( const Common::String key,
Common::String field,
const char *  defaultVal = nullptr 
)
private

Get a string.

Definition at line 199 of file conf.cpp.

◆ get() [2/6]

void Glk::Conf::get ( const Common::String key,
uint color,
const byte defaultColor 
)
private

Get a color.

Definition at line 204 of file conf.cpp.

◆ get() [3/6]

void Glk::Conf::get ( const Common::String key,
FACES field,
FACES  defaultFont 
)
private

Get a font name into a font Id.

Definition at line 222 of file conf.cpp.

◆ get() [4/6]

void Glk::Conf::get ( const Common::String key,
int field,
int  defaultVal = 0 
)
private

Get a numeric value.

Definition at line 214 of file conf.cpp.

◆ get() [5/6]

void Glk::Conf::get ( const Common::String key,
bool &  field,
bool  defaultVal = false 
)
private

Get a numeric value.

Definition at line 218 of file conf.cpp.

◆ get() [6/6]

void Glk::Conf::get ( const Common::String key,
double field,
double  defaultVal = 0.0 
)
private

Get a double.

Definition at line 226 of file conf.cpp.

◆ parseColor()

uint Glk::Conf::parseColor ( const Common::String str)
private

Parse a color.

Definition at line 230 of file conf.cpp.

Member Data Documentation

◆ _borderColor

uint Glk::Conf::_borderColor

Definition at line 82 of file conf.h.

◆ _borderSave

uint Glk::Conf::_borderSave

Definition at line 82 of file conf.h.

◆ _cols

int Glk::Conf::_cols

Definition at line 74 of file conf.h.

◆ _gamma

double Glk::Conf::_gamma

Definition at line 81 of file conf.h.

◆ _graphics

bool Glk::Conf::_graphics

Definition at line 87 of file conf.h.

◆ _gStyles

WindowStyle Glk::Conf::_gStyles[style_NUMSTYLES]

Definition at line 95 of file conf.h.

◆ _gStylesDefault

WindowStyle Glk::Conf::_gStylesDefault[style_NUMSTYLES]

Definition at line 97 of file conf.h.

◆ _imageH

int Glk::Conf::_imageH

Definition at line 99 of file conf.h.

◆ _imageW

int Glk::Conf::_imageW

Definition at line 99 of file conf.h.

◆ _lcd

int Glk::Conf::_lcd

Definition at line 84 of file conf.h.

◆ _lockCols

int Glk::Conf::_lockCols

Definition at line 75 of file conf.h.

◆ _lockRows

int Glk::Conf::_lockRows

Definition at line 75 of file conf.h.

◆ _monoInfo

MonoFontInfo Glk::Conf::_monoInfo

Definition at line 72 of file conf.h.

◆ _propInfo

PropFontInfo Glk::Conf::_propInfo

Definition at line 73 of file conf.h.

◆ _rows

int Glk::Conf::_rows

Definition at line 74 of file conf.h.

◆ _safeClicks

bool Glk::Conf::_safeClicks

Definition at line 93 of file conf.h.

◆ _scrollBg

uint Glk::Conf::_scrollBg

Definition at line 86 of file conf.h.

◆ _scrollFg

uint Glk::Conf::_scrollFg

Definition at line 86 of file conf.h.

◆ _scrollWidth

int Glk::Conf::_scrollWidth

Definition at line 85 of file conf.h.

◆ _sound

bool Glk::Conf::_sound

Definition at line 88 of file conf.h.

◆ _speak

bool Glk::Conf::_speak

Definition at line 89 of file conf.h.

◆ _speakInput

bool Glk::Conf::_speakInput

Definition at line 90 of file conf.h.

◆ _speakLanguage

Common::String Glk::Conf::_speakLanguage

Definition at line 91 of file conf.h.

◆ _styleHint

int Glk::Conf::_styleHint

Definition at line 92 of file conf.h.

◆ _tMarginX

int Glk::Conf::_tMarginX

Definition at line 80 of file conf.h.

◆ _tMarginY

int Glk::Conf::_tMarginY

Definition at line 80 of file conf.h.

◆ _tStyles

WindowStyle Glk::Conf::_tStyles[style_NUMSTYLES]

Definition at line 94 of file conf.h.

◆ _tStylesDefault

WindowStyle Glk::Conf::_tStylesDefault[style_NUMSTYLES]

Definition at line 96 of file conf.h.

◆ _wBorderX

int Glk::Conf::_wBorderX

Definition at line 79 of file conf.h.

◆ _wBorderY

int Glk::Conf::_wBorderY

Definition at line 79 of file conf.h.

◆ _windowColor

uint Glk::Conf::_windowColor

Definition at line 83 of file conf.h.

◆ _windowSave

uint Glk::Conf::_windowSave

Definition at line 83 of file conf.h.

◆ _wMarginSaveX

int Glk::Conf::_wMarginSaveX

Definition at line 77 of file conf.h.

◆ _wMarginSaveY

int Glk::Conf::_wMarginSaveY

Definition at line 77 of file conf.h.

◆ _wMarginX

int Glk::Conf::_wMarginX

Definition at line 76 of file conf.h.

◆ _wMarginY

int Glk::Conf::_wMarginY

Definition at line 76 of file conf.h.

◆ _wPaddingX

int Glk::Conf::_wPaddingX

Definition at line 78 of file conf.h.

◆ _wPaddingY

int Glk::Conf::_wPaddingY

Definition at line 78 of file conf.h.


The documentation for this class was generated from the following files: