Stg::Option Class Reference
#include <option.hh>
Public Member Functions | |
void | createMenuItem (Fl_Menu_Bar *menu, std::string path) |
void | invert () |
bool | isEnabled () const |
void | Load (Worldfile *wf, int section) |
void | menuCallback (Fl_Callback *cb, Fl_Widget *w) |
const std::string | name () const |
operator bool () | |
bool | operator< (const Option &rhs) const |
Option (std::string n, std::string tok, std::string key, bool v, World *world) | |
void | Save (Worldfile *wf, int section) |
void | set (bool val) |
bool | val () const |
Static Public Member Functions | |
static void | toggleCb (Fl_Widget *w, void *p) |
Public Attributes | |
const char * | htname |
Friends | |
bool | compare (const Option *lhs, const Option *rhs) |
Detailed Description
option.hh Class that encapsulates a boolean and pairs it with a string description Used to pass settings between the GUI and the drawing classesAuthor: Jeremy Asher, Richard Vaughan SVN:
- Id
- option.hh 8061 2009-07-21 01:49:26Z rtv
Constructor & Destructor Documentation
Option::Option | ( | std::string | n, | |
std::string | tok, | |||
std::string | key, | |||
bool | v, | |||
World * | world | |||
) |
Member Function Documentation
void Option::createMenuItem | ( | Fl_Menu_Bar * | menu, | |
std::string | path | |||
) |
void Stg::Option::invert | ( | ) | [inline] |
bool Stg::Option::isEnabled | ( | ) | const [inline] |
void Option::Load | ( | Worldfile * | wf, | |
int | section | |||
) |
void Option::menuCallback | ( | Fl_Callback * | cb, | |
Fl_Widget * | w | |||
) |
const std::string Stg::Option::name | ( | ) | const [inline] |
Stg::Option::operator bool | ( | ) | [inline] |
bool Stg::Option::operator< | ( | const Option & | rhs | ) | const [inline] |
void Option::Save | ( | Worldfile * | wf, | |
int | section | |||
) |
void Option::set | ( | bool | val | ) |
void Option::toggleCb | ( | Fl_Widget * | w, | |
void * | p | |||
) | [static] |
bool Stg::Option::val | ( | ) | const [inline] |
Friends And Related Function Documentation
Member Data Documentation
const char* Stg::Option::htname |
The documentation for this class was generated from the following files:
Generated on Wed Jul 22 11:51:05 2009 for Stage by
