74 template<
class A,
class B,
class C>
75 static std::string
form_args_3(
const A &a,
const B &b,
const C &c){
76 std::ostringstream
str;
77 str << a <<
',' << b <<
',' << c;
82 template<
class A,
class B,
class C,
class D>
83 static std::string
form_args_4(
const A &a,
const B &b,
const C &c,
const D &d){
84 std::ostringstream
str;
85 str << a <<
',' << b <<
',' << c <<
',' << d;
90 template<
class A,
class B,
class C,
class D,
class E>
91 static std::string
form_args_5(
const A &a,
const B &b,
const C &c,
const D &d,
const E &e){
92 std::ostringstream
str;
93 str << a <<
',' << b <<
',' << c <<
',' << d <<
"," << e;
98 template<
class A,
class B,
class C,
class D,
class E,
class F>
99 static std::string
form_args_6(
const A &a,
const B &b,
const C &c,
const D &d,
const E &e,
const F &f){
100 std::ostringstream
str;
101 str << a <<
',' << b <<
',' << c <<
',' << d <<
"," << e <<
"," << f;
249 std::ostringstream
str;
GUIComponent(const std::string &type, const std::string ¶ms="")
creates a component with given type and optionally given parameters
Definition: GUIComponent.h:113
GUIComponent & size(utils::Size &size)
sets the component initial size
Definition: GUIComponent.h:204
const GUIComponent & size(const utils::Size &size) const
sets the component initial size
Definition: GUIComponent.h:136
GUIComponent & tooltip(std::string &tooltip)
sets the component tooltip
Definition: GUIComponent.h:198
Special GUI extension, that mimics the GUIComponent interface.
Definition: ContainerGUIComponent.h:44
static std::string form_args_4(const A &a, const B &b, const C &c, const D &d)
utility method to concatenate 4 values
Definition: GUIComponent.h:83
undocument this line if you encounter any issues!
Definition: Any.h:37
static const Size null
null is w=0, h=0
Definition: Size.h:64
utils::Size size
intial size of the component (in units of 20px)
Definition: GUIComponent.h:65
Main Class of ICL's GUI creation framework.
Definition: GUI.h:60
GUIComponent & maxSize(int w, int h)
sets the component maximum size constraint
Definition: GUIComponent.h:234
const GUIComponent & handle(const std::string &handle) const
sets the component handle
Definition: GUIComponent.h:118
const GUIComponent & minSize(const utils::Size &minSize) const
sets the component minimum size constraint
Definition: GUIComponent.h:147
const GUIComponent & maxSize(int w, int h) const
sets the component maximum size constraint
Definition: GUIComponent.h:164
const GUIComponent & hideIf(bool flag) const
hides the component if the given flag is true
Definition: GUIComponent.h:180
std::string label
label (results in a titeld border
Definition: GUIComponent.h:59
GUIComponent & size(int w, int h)
sets the component initial size
Definition: GUIComponent.h:210
const GUIComponent & maxSize(const utils::Size &maxSize) const
sets the component maximum size constraint
Definition: GUIComponent.h:158
std::string tooltip
component tooltip (not for containers)
Definition: GUIComponent.h:60
std::string m_params
component parameters
Definition: GUIComponent.h:109
GUIComponent & label(std::string &label)
sets the component label
Definition: GUIComponent.h:192
GUIComponent & hideIf(bool flag)
hides the component if the given flag is true
Definition: GUIComponent.h:241
int margin
layout margin (only for containers)
Definition: GUIComponent.h:61
GUIComponent & maxSize(utils::Size &maxSize)
sets the component maximum size constraint
Definition: GUIComponent.h:228
Size class of the ICL.
Definition: Size.h:61
utils::Size minSize
minimum size constraint of the component (in units of 20px)
Definition: GUIComponent.h:63
const GUIComponent & size(int w, int h) const
sets the component initial size
Definition: GUIComponent.h:142
The GUIComponent class servers as a generic interface for GUI definitions.
Definition: GUIComponent.h:44
static std::string form_args_3(const A &a, const B &b, const C &c)
utility method to concatenate 3 values
Definition: GUIComponent.h:75
utils::Size maxSize
maximum size constraint of the component (in units of 20px)
Definition: GUIComponent.h:64
bool hide
if true, the component is not created at all
Definition: GUIComponent.h:66
std::string str(const T &t)
convert a data type into a string using an std::ostringstream instance
Definition: StringUtils.h:136
std::string toString() const
creates a string representation of the component
Definition: GUIComponent.h:247
static std::string form_args_6(const A &a, const B &b, const C &c, const D &d, const E &e, const F &f)
utility method to concatenate 5 values
Definition: GUIComponent.h:99
GUIComponent & minSize(int w, int h)
sets the component minimum size constraint
Definition: GUIComponent.h:222
const GUIComponent & tooltip(const std::string &tooltip) const
sets the component tooltip
Definition: GUIComponent.h:130
Options m_options
all component options (mutable for C++-reasons)
Definition: GUIComponent.h:71
GUIComponent & handle(std::string &handle)
sets the component handle
Definition: GUIComponent.h:186
static std::string form_args_5(const A &a, const B &b, const C &c, const D &d, const E &e)
utility method to concatenate 5 values
Definition: GUIComponent.h:91
const GUIComponent & label(const std::string &label) const
sets the component label
Definition: GUIComponent.h:124
std::string handle
the component handle
Definition: GUIComponent.h:56
int spacing
layout spacing (onyl for containers)
Definition: GUIComponent.h:62
Actual options (set using the .xxx methods)
Definition: GUIComponent.h:54
GUIComponent & minSize(utils::Size &minSize)
sets the component minimum size constraint
Definition: GUIComponent.h:216
std::string out
the component output (only GUIComponentWithOutput subclasses)
Definition: GUIComponent.h:57
const GUIComponent & minSize(int w, int h) const
sets the component minimum size constraint
Definition: GUIComponent.h:153
std::string m_type
component type
Definition: GUIComponent.h:106
Options()
Definition: GUIComponent.h:55
std::string in
not used!
Definition: GUIComponent.h:58