|
Smolgui
Immediate gui library based on SFML
|
allow to store and load Gui layou More...
#include <Layout.h>
Public Member Functions | |
| bool | loadFromFile (const std::string &set) |
| load layouts from file | |
| void | saveInFile (const bool compact=false) |
| save all layouts in their respecting file | |
| std::vector< std::string > | entries (const std::string &set) const |
| get entries names in a layout | |
| void | add (const std::string &set, const std::string &entry, LayoutEntry &&data) |
| add or remove an entry to the layout | |
| template<typename LayoutType> | |
| bool | has (const std::string &entry) const |
| test if entry exist | |
| template<typename LayoutType> | |
| LayoutType & | get (const std::string &entry, bool addLayoutType=true) |
| get entry data without any sanity check | |
| template<typename LayoutType> | |
| const LayoutType & | get (const std::string &entry, bool addLayoutType=true) const |
| get mutable entry data without any sanity check | |
allow to store and load Gui layou
| void sgui::Layout::add | ( | const std::string & | set, |
| const std::string & | entry, | ||
| LayoutEntry && | data ) |
add or remove an entry to the layout
| std::vector< std::string > sgui::Layout::entries | ( | const std::string & | set | ) | const |
get entries names in a layout
| LayoutType & sgui::Layout::get | ( | const std::string & | entry, |
| bool | addLayoutType = true ) |
get entry data without any sanity check
| const LayoutType & sgui::Layout::get | ( | const std::string & | entry, |
| bool | addLayoutType = true ) const |
get mutable entry data without any sanity check
| bool sgui::Layout::has | ( | const std::string & | entry | ) | const |
test if entry exist
| bool sgui::Layout::loadFromFile | ( | const std::string & | set | ) |
load layouts from file
| void sgui::Layout::saveInFile | ( | const bool | compact = false | ) |
save all layouts in their respecting file