i6engine  1.0
GUIConfig.h
Go to the documentation of this file.
1 /*
2  * i6engine
3  * Copyright (2016) Daniel Bonrath, Michael Baer, All rights reserved.
4  *
5  * This file is part of i6engine; i6engine is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
25 #ifndef __I6ENGINE_API_GUI_GUICONFIG_H__
26 #define __I6ENGINE_API_GUI_GUICONFIG_H__
27 
29 #include "i6engine/api/KeyCodes.h"
31 
32 #include "boost/function.hpp"
33 
34 namespace i6e {
35 namespace api {
36  class GUIWidget;
37 namespace gui {
39  GuiReset = 0,
96  };
97 
98  enum class Alignment {
99  Left,
100  Center,
101  Right
102  };
103 
109  std::string _name;
110 
112  GUIUpdateMessageStruct(const std::string & name) : GameMessageStruct(), _name(name) {}
113 
115 
117  return new GUIUpdateMessageStruct(*this);
118  }
120 
125  std::string widgetType;
126  std::string style;
127 
129  GUI_Widget_Create(const std::string & name, const std::string & widget_type, const std::string & sty) : GUIUpdateMessageStruct(name), widgetType(widget_type), style(sty) {
130  }
132  return new GUI_Widget_Create(*this);
133  }
135 
139  typedef struct GUI_Text : GUIUpdateMessageStruct {
140  std::string text;
141  GUI_Text() {}
142  GUI_Text(const std::string & name, const std::string & txt) : GUIUpdateMessageStruct(name), text(txt) {
143  }
145  return new GUI_Text(*this);
146  }
147  } GUI_Text;
148 
153  std::string imageSetName;
154  std::string imageName;
156  GUI_Image(const std::string & name, const std::string & imageSetName2, const std::string & imageName2) : GUIUpdateMessageStruct(name), imageSetName(imageSetName2), imageName(imageName2) {
157  }
159  return new GUI_Image(*this);
160  }
161  } GUI_Image;
162 
167  double alpha, red, green, blue;
169  GUI_Colour(const std::string & name, const double a, const double r, const double g, const double b) : GUIUpdateMessageStruct(name), alpha(a), red(r), green(g), blue(b) {
170  }
172  return new GUI_Colour(*this);
173  }
174  } GUI_Colour;
175 
180  double x, y;
182  GUI_Position(const std::string & name, const double xPos, const double yPos) : GUIUpdateMessageStruct(name), x(xPos), y(yPos) {
183  }
185  return new GUI_Position(*this);
186  }
187  } GUI_Position;
188 
193  int64_t lifetime;
195  GUI_Lifetime(const std::string & name, const int64_t time) : GUIUpdateMessageStruct(name), lifetime(time) {
196  }
198  return new GUI_Lifetime(*this);
199  }
200  } GUI_Lifetime;
201 
206  bool visible;
208  GUI_Visibility(const std::string & name, const bool vis) : GUIUpdateMessageStruct(name), visible(vis) {
209  }
211  return new GUI_Visibility(*this);
212  }
213  } GUI_Visibility;
214 
219  double progress;
221  GUI_Progress(const std::string & name, const double prog) : GUIUpdateMessageStruct(name), progress(prog) {
222  }
224  return new GUI_Progress(*this);
225  }
226  } GUI_Progress;
227 
232  uint32_t amount;
234  GUI_Amount(const std::string & name, const uint32_t a) : GUIUpdateMessageStruct(name), amount(a) {
235  }
237  return new GUI_Amount(*this);
238  }
239  } GUI_Amount;
240 
245  uint32_t row;
246  uint32_t column;
247  std::string entry;
249  GUI_Add_Row_Entry(const std::string & name, const uint32_t r, const uint32_t c, const std::string & e) : GUIUpdateMessageStruct(name), row(r), column(c), entry(e) {
250  }
252  return new GUI_Add_Row_Entry(*this);
253  }
255 
259  typedef struct GUI_Size : GUIUpdateMessageStruct {
260  double width, height;
261  GUI_Size() {}
262  GUI_Size(const std::string & name, const double w, const double h) : GUIUpdateMessageStruct(name), width(w), height(h) {
263  }
265  return new GUI_Size(*this);
266  }
267  } GUI_Size;
268 
275  }
276  GUI_Add_Create(const std::string & s, const std::string & f, const std::string & df, const std::string & dmis, const std::string & dmin);
278  return new GUI_Add_Create(*this);
279  }
280  } GUI_Add_Create;
281 
286  std::string child;
288  }
289  GUI_AddToRoot_Update(const std::string & c);
291  return new GUI_AddToRoot_Update(*this);
292  }
294 
299  bool visible;
301  }
302  GUI_MouseVisible_Update(const bool b);
304  return new GUI_MouseVisible_Update(*this);
305  }
307 
312  std::string name;
313  std::string child;
315  }
316  GUI_Child_Update(const std::string & n, const std::string & c);
318  return new GUI_Child_Update(*this);
319  }
321 
327  return new GUI_CleanUp_Delete(*this);
328  }
330 
335  std::string name;
336  std::string event;
337  boost::function<void(void)> func;
339  }
340  GUI_SubscribeEvent_Update(const std::string & n, const std::string & e, const boost::function<void(void)> & f);
342  return new GUI_SubscribeEvent_Update(*this);
343  }
345 
350  std::string name;
351  bool enabled;
353  GUI_Event_Update(const std::string & n, bool b);
354  GUI_Event_Update * copy() { return new GUI_Event_Update(*this); }
356 
361  std::string name;
362  boost::function<api::GUIWidget * (const std::string & name, const std::string & style)> func;
364  GUI_WidgetTemplate_Create(const std::string & n, const boost::function<api::GUIWidget * (const std::string & name, const std::string & style)> & f);
367 
372  void * window;
373  GUI_Window_Create(void * w);
374  GUI_Window_Create * copy() { return new GUI_Window_Create(*this); }
376 
381  std::string image;
382  GUI_MouseCursorImage_Update(const std::string & i);
385 
393  return new GUI_Resolution_Update(*this);
394  }
396 
401  std::string imageset;
402  GUI_AddImageset_Create(const std::string & i);
404  return new GUI_AddImageset_Create(*this);
405  }
407 
412  std::string name;
413  std::string file;
414  GUI_LoadCanvas_Create(const std::string & n, const std::string & f);
416  return new GUI_LoadCanvas_Create(*this);
417  }
419 
425  GUI_Alignment(const std::string & name, Alignment a) : GUIUpdateMessageStruct(name), alignment(a) {
426  }
428  return new GUI_Alignment(*this);
429  }
430  } GUI_Alignment;
431 
436  bool dropable;
437  std::function<bool(std::string)> func;
438  GUI_SetDropTarget(const std::string & name, bool d, const std::function<bool(std::string)> & f) : GUIUpdateMessageStruct(name), dropable(d), func(f) {
439  }
441  return new GUI_SetDropTarget(*this);
442  }
444 
449  bool dragable;
450  GUI_SetDragable(const std::string & name, bool d) : GUIUpdateMessageStruct(name), dragable(d) {
451  }
453  return new GUI_SetDragable(*this);
454  }
455  } GUI_SetDragable;
456 
461  std::function<void(const std::string &, const std::string &)> callback;
462  GUI_SetDropCallback(const std::string & name, const std::function<void(const std::string &, const std::string &)> & c) : GUIUpdateMessageStruct(name), callback(c) {
463  }
465  return new GUI_SetDropCallback(*this);
466  }
468 
473  std::function<void(std::string)> callback;
474  GUI_SetEnterTextCallback(const std::string & name, const std::function<void(std::string)> & c) : GUIUpdateMessageStruct(name), callback(c) {
475  }
477  return new GUI_SetEnterTextCallback(*this);
478  }
480 
485  std::string prop;
486  std::string value;
487  GUI_SetProperty(const std::string & name, const std::string & p, const std::string & v) : GUIUpdateMessageStruct(name), prop(p), value(v) {
488  }
490  return new GUI_SetProperty(*this);
491  }
492  } GUI_SetProperty;
493 
498  bool selected;
499  GUI_SetSelected(const std::string & name, bool s) : GUIUpdateMessageStruct(name), selected(s) {
500  }
502  return new GUI_SetSelected(*this);
503  }
504  } GUI_SetSelected;
505 
510  std::function<void(bool)> callback;
511  GUI_SetSelectedCallback(const std::string & name, const std::function<void(bool)> & c) : GUIUpdateMessageStruct(name), callback(c) {
512  }
514  return new GUI_SetSelectedCallback(*this);
515  }
517 
522  std::string tooltip;
523  GUI_SetTooltip(const std::string & name, const std::string & t) : GUIUpdateMessageStruct(name), tooltip(t) {
524  }
526  return new GUI_SetTooltip(*this);
527  }
528  } GUI_SetTooltip;
529 
534  std::string columnHeader;
535  uint32_t column;
536  double width;
537  GUI_AddColumn(const std::string & name, const std::string & ch, uint32_t c, double w) : GUIUpdateMessageStruct(name), columnHeader(ch), column(c), width(w) {
538  }
540  return new GUI_AddColumn(*this);
541  }
542  } GUI_AddColumn;
543 
548  std::function<void(std::string)> callback;
549  GUI_SetSelectedStringCallback(const std::string & name, const std::function<void(std::string)> & c) : GUIUpdateMessageStruct(name), callback(c) {
550  }
552  return new GUI_SetSelectedStringCallback(*this);
553  }
555 
560  std::function<std::string(std::string)> callback;
561  GUI_SetAcceptTextCallback(const std::string & name, const std::function<std::string(std::string)> & c) : GUIUpdateMessageStruct(name), callback(c) {
562  }
564  return new GUI_SetAcceptTextCallback(*this);
565  }
567 
572  std::string animation;
573  GUI_PlayAnimation(const std::string & name, const std::string & a) : GUIUpdateMessageStruct(name), animation(a) {
574  }
576  return new GUI_PlayAnimation(*this);
577  }
579 
584  std::string animation;
585  GUI_StopAnimation(const std::string & name, const std::string & a) : GUIUpdateMessageStruct(name), animation(a) {
586  }
588  return new GUI_StopAnimation(*this);
589  }
591 
596  std::string animation;
597  GUI_PauseAnimation(const std::string & name, const std::string & a) : GUIUpdateMessageStruct(name), animation(a) {
598  }
600  return new GUI_PauseAnimation(*this);
601  }
603 
608  std::string animation;
609  GUI_UnpauseAnimation(const std::string & name, const std::string & a) : GUIUpdateMessageStruct(name), animation(a) {
610  }
612  return new GUI_UnpauseAnimation(*this);
613  }
615 
620  bool enabled;
621  GUI_SetAutoLineBreak(const std::string & name, bool e) : GUIUpdateMessageStruct(name), enabled(e) {
622  }
624  return new GUI_SetAutoLineBreak(*this);
625  }
627 
632  std::string font;
633  GUI_SetDefaultFont(const std::string & f) : GUIUpdateMessageStruct("GUIManager"), font(f) {
634  }
636  return new GUI_SetDefaultFont(*this);
637  }
639 
644  std::string child;
645  std::string parent;
646  GUI_SetParent(const std::string & c, const std::string & p) : GUIUpdateMessageStruct("GUIManager"), child(c), parent(p) {
647  }
649  return new GUI_SetParent(*this);
650  }
651  } GUI_SetParent;
652 
653 } /* namespace gui */
654 } /* namespace api */
655 } /* namespace i6e */
656 
657 #endif /* __I6ENGINE_API_GUI_GUICONFIG_H__ */
658 
enables or disables a GUIWidget as drop target
Definition: GUIConfig.h:435
GUI_LoadCanvas_Create(const std::string &n, const std::string &f)
GUI_Amount * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:236
i6e::api::gui::GUI_Window_Create GUI_Window_Create
registers a RenderWindow in GUI subsystem
i6e::api::gui::GUI_Position GUI_Position
sets position for Widget
std::function< bool(std::string)> func
Definition: GUIConfig.h:437
GUI_Add_Row_Entry * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:251
GUI_PlayAnimation(const std::string &name, const std::string &a)
Definition: GUIConfig.h:573
GUI_Resolution_Update * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:392
enables or disables dragging of Widget
Definition: GUIConfig.h:448
GUI_SetSelectedStringCallback * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:551
i6e::api::gui::GUI_Alignment GUI_Alignment
sets alignment of Widget
GUIUpdateMessageStruct(const std::string &name)
Definition: GUIConfig.h:112
GUI_Progress * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:223
uint32_t row
Definition: GUIConfig.h:245
callback being called when Widget is dropped
Definition: GUIConfig.h:460
i6e::api::gui::GUI_SetParent GUI_SetParent
sets widget as child of another one
GUI_SetSelected * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:501
i6e::api::gui::GUI_SetTooltip GUI_SetTooltip
sets tooltip to a widget
i6e::api::gui::GUI_Event_Update GUI_Event_Update
changes state of the event
sets tooltip to a widget
Definition: GUIConfig.h:521
i6e::api::gui::GUI_SetDropCallback GUI_SetDropCallback
callback being called when Widget is dropped
GUI_SetDropCallback * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:464
GUI_Add_Create * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:277
std::function< void(std::string)> callback
Definition: GUIConfig.h:473
uint32_t column
Definition: GUIConfig.h:246
GUI_SetEnterTextCallback(const std::string &name, const std::function< void(std::string)> &c)
Definition: GUIConfig.h:474
GUI_SetAutoLineBreak * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:623
std::string entry
Definition: GUIConfig.h:247
#define ISIXE_MODULES_API
GUI_MouseCursorImage_Update * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:383
GUI_Size(const std::string &name, const double w, const double h)
Definition: GUIConfig.h:262
i6e::api::gui::GUI_SetSelected GUI_SetSelected
sets the widget to selected or not
GUI_SetDropCallback(const std::string &name, const std::function< void(const std::string &, const std::string &)> &c)
Definition: GUIConfig.h:462
GUI_Colour * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:171
callback being called when text is changed in Editbox
Definition: GUIConfig.h:472
sets the widget to selected or not
Definition: GUIConfig.h:497
i6e::api::gui::GUI_PauseAnimation GUI_PauseAnimation
pauses an animation on Widget
GUI_SetDropTarget * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:440
i6e::api::gui::GUI_CleanUp_Delete GUI_CleanUp_Delete
cleans up GUI
creates given Widget
Definition: GUIConfig.h:124
i6e::api::gui::GUI_LoadCanvas_Create GUI_LoadCanvas_Create
loads a canvas file
GUI_Event_Update * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:354
GUI_AddColumn * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:539
std::function< void(std::string)> callback
Definition: GUIConfig.h:548
i6e::api::gui::GUI_Image GUI_Image
sets image to Widget
GUI_Image(const std::string &name, const std::string &imageSetName2, const std::string &imageName2)
Definition: GUIConfig.h:156
i6e::api::gui::GUI_Colour GUI_Colour
sets color for Widget
callback being called when selection in ToggleButton changes
Definition: GUIConfig.h:509
GUI_Image * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:158
GUI_SetEnterTextCallback * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:476
i6e::api::gui::GUI_AddImageset_Create GUI_AddImageset_Create
adds a new imageset
i6e::api::gui::GUI_SetAcceptTextCallback GUI_SetAcceptTextCallback
callback being called when entered text in editbox is submitted
i6e::api::gui::GUI_StopAnimation GUI_StopAnimation
stops an animation on Widget
i6e::api::gui::GUI_UnpauseAnimation GUI_UnpauseAnimation
unpauses an animation on Widget
GUI_SetDragable(const std::string &name, bool d)
Definition: GUIConfig.h:450
GUI_Visibility * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:210
GUI_Lifetime * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:197
callback being called when text is changed in Editbox
Definition: GUIConfig.h:484
pauses an animation on Widget
Definition: GUIConfig.h:595
updates resolution of render window
Definition: GUIConfig.h:389
sets image to Widget
Definition: GUIConfig.h:152
i6e::api::gui::GUI_Progress GUI_Progress
sets progress of the Widget (for ProgressBar)
Used to partially unwrap GUI messages.
Definition: GUIConfig.h:108
i6e::api::gui::GUI_Lifetime GUI_Lifetime
sets lifetime for Widget (Prints)
GUI_SetParent * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:648
std::function< std::string(std::string)> callback
Definition: GUIConfig.h:560
subscribes method to be called using button
Definition: GUIConfig.h:334
adds an entry to a MultiColumnList
Definition: GUIConfig.h:244
creates basic GUI
Definition: GUIConfig.h:272
adds a column to a GUIMultiColumnHeader
Definition: GUIConfig.h:533
GUI_SetDropTarget(const std::string &name, bool d, const std::function< bool(std::string)> &f)
Definition: GUIConfig.h:438
graphics::Resolution resolution
Definition: GUIConfig.h:390
GUI_Amount(const std::string &name, const uint32_t a)
Definition: GUIConfig.h:234
i6e::api::gui::GUI_Size GUI_Size
sets size of Widget
i6e::api::gui::GUI_Add_Create GUI_Add_Create
creates basic GUI
GUI_SetSelectedCallback * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:513
changes state of the event
Definition: GUIConfig.h:349
i6e::api::gui::GUI_PlayAnimation GUI_PlayAnimation
plays an animation on Widget
GUI_CleanUp_Delete * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:326
GUI_SetProperty * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:489
GUI_Progress(const std::string &name, const double prog)
Definition: GUIConfig.h:221
GUI_SetDragable * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:452
GUI_WidgetTemplate_Create * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:365
GUI_Add_Row_Entry()
Definition: GUIConfig.h:248
GUI_Resolution_Update(const graphics::Resolution &r)
GUI_SetParent(const std::string &c, const std::string &p)
Definition: GUIConfig.h:646
GUI_SetSelectedStringCallback(const std::string &name, const std::function< void(std::string)> &c)
Definition: GUIConfig.h:549
i6e::api::gui::GUI_Resolution_Update GUI_Resolution_Update
updates resolution of render window
sets auto line break to Widget
Definition: GUIConfig.h:619
i6e::api::gui::GUIUpdateMessageStruct GUIUpdateMessageStruct
i6e::api::gui::GUI_Child_Update GUI_Child_Update
updates a child
sets progress of the Widget (for ProgressBar)
Definition: GUIConfig.h:218
i6e::api::gui::GUI_SubscribeEvent_Update GUI_SubscribeEvent_Update
subscribes method to be called using button
std::function< void(const std::string &, const std::string &)> callback
Definition: GUIConfig.h:461
i6e::api::gui::GUI_SetProperty GUI_SetProperty
callback being called when text is changed in Editbox
GUI_Alignment(const std::string &name, Alignment a)
Definition: GUIConfig.h:425
GUI_PauseAnimation * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:599
i6e::api::gui::GUI_MouseCursorImage_Update GUI_MouseCursorImage_Update
changes the mouse cursor
GUI_SetAcceptTextCallback(const std::string &name, const std::function< std::string(std::string)> &c)
Definition: GUIConfig.h:561
plays an animation on Widget
Definition: GUIConfig.h:571
sets position for Widget
Definition: GUIConfig.h:179
GUI_Alignment * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:427
adds a window to root
Definition: GUIConfig.h:285
GUI_Child_Update * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:317
GUI_SetAutoLineBreak(const std::string &name, bool e)
Definition: GUIConfig.h:621
GUI_Size * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:264
sets amount of rows for MultiColumnList
Definition: GUIConfig.h:231
GUI_Widget_Create(const std::string &name, const std::string &widget_type, const std::string &sty)
Definition: GUIConfig.h:129
i6e::api::gui::GUI_SetSelectedStringCallback GUI_SetSelectedStringCallback
callback being called when selection in ComboBox changes
callback being called when selection in ComboBox changes
Definition: GUIConfig.h:547
GUI_SetDefaultFont * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:635
boost::function< void(void)> func
Definition: GUIConfig.h:337
i6e::api::gui::GUI_Visibility GUI_Visibility
sets visibility of the Widget
i6e::api::gui::GUI_Widget_Create GUI_Widget_Create
creates given Widget
GUIUpdateMessageStruct * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:116
GUI_SetSelected(const std::string &name, bool s)
Definition: GUIConfig.h:499
i6e::api::gui::GUI_SetDropTarget GUI_SetDropTarget
enables or disables a GUIWidget as drop target
GUI_Visibility(const std::string &name, const bool vis)
Definition: GUIConfig.h:208
GUI_PauseAnimation(const std::string &name, const std::string &a)
Definition: GUIConfig.h:597
GUI_LoadCanvas_Create * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:415
GUI_Window_Create * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:374
GUI_StopAnimation * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:587
i6e::api::gui::GUI_AddToRoot_Update GUI_AddToRoot_Update
adds a window to root
unpauses an animation on Widget
Definition: GUIConfig.h:607
GUI_Widget_Create * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:131
GUI_MouseCursorImage_Update(const std::string &i)
GUI_Text(const std::string &name, const std::string &txt)
Definition: GUIConfig.h:142
GUI_SubscribeEvent_Update * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:341
GUI_Add_Row_Entry(const std::string &name, const uint32_t r, const uint32_t c, const std::string &e)
Definition: GUIConfig.h:249
GUI_AddImageset_Create(const std::string &i)
GUI_AddColumn(const std::string &name, const std::string &ch, uint32_t c, double w)
Definition: GUIConfig.h:537
GUI_AddImageset_Create * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:403
i6e::api::gui::GUI_MouseVisible_Update GUI_MouseVisible_Update
updates mouse visibility
GUI_Colour(const std::string &name, const double a, const double r, const double g, const double b)
Definition: GUIConfig.h:169
GUI_SetDefaultFont(const std::string &f)
Definition: GUIConfig.h:633
GUI_UnpauseAnimation(const std::string &name, const std::string &a)
Definition: GUIConfig.h:609
GUI_Position(const std::string &name, const double xPos, const double yPos)
Definition: GUIConfig.h:182
GUI_SetProperty(const std::string &name, const std::string &p, const std::string &v)
Definition: GUIConfig.h:487
GUI_UnpauseAnimation * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:611
GUI_SetAcceptTextCallback * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:563
Superclass for all GUI widgets.
Definition: GUIWidget.h:65
i6e::api::gui::GUI_SetEnterTextCallback GUI_SetEnterTextCallback
callback being called when text is changed in Editbox
i6e::api::gui::GUI_SetSelectedCallback GUI_SetSelectedCallback
callback being called when selection in ToggleButton changes
updates mouse visibility
Definition: GUIConfig.h:298
GUI_StopAnimation(const std::string &name, const std::string &a)
Definition: GUIConfig.h:585
sets color for Widget
Definition: GUIConfig.h:166
registers a template for a Widget
Definition: GUIConfig.h:360
i6e::api::gui::GUI_Add_Row_Entry GUI_Add_Row_Entry
adds an entry to a MultiColumnList
sets lifetime for Widget (Prints)
Definition: GUIConfig.h:192
sets visibility of the Widget
Definition: GUIConfig.h:205
i6e::api::gui::GUI_SetDefaultFont GUI_SetDefaultFont
sets default font
i6e::api::gui::GUI_WidgetTemplate_Create GUI_WidgetTemplate_Create
registers a template for a Widget
GUI_MouseVisible_Update * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:303
i6e::api::gui::GUI_Amount GUI_Amount
sets amount of rows for MultiColumnList
callback being called when entered text in editbox is submitted
Definition: GUIConfig.h:559
i6e::api::gui::GUI_SetAutoLineBreak GUI_SetAutoLineBreak
sets auto line break to Widget
sets widget as child of another one
Definition: GUIConfig.h:643
std::function< void(bool)> callback
Definition: GUIConfig.h:510
GUI_Lifetime(const std::string &name, const int64_t time)
Definition: GUIConfig.h:195
std::string imageSetName
Definition: GUIConfig.h:153
registers a RenderWindow in GUI subsystem
Definition: GUIConfig.h:371
i6e::api::gui::GUI_SetDragable GUI_SetDragable
enables or disables dragging of Widget
sets text to Widget
Definition: GUIConfig.h:139
GUI_Text * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:144
i6e::api::gui::GUI_AddColumn GUI_AddColumn
adds a column to a GUIMultiColumnHeader
GUI_AddToRoot_Update * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:290
GUI_SetTooltip(const std::string &name, const std::string &t)
Definition: GUIConfig.h:523
GUI_PlayAnimation * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:575
sets size of Widget
Definition: GUIConfig.h:259
GUI_SetTooltip * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:525
sets alignment of Widget
Definition: GUIConfig.h:423
GUI_SetSelectedCallback(const std::string &name, const std::function< void(bool)> &c)
Definition: GUIConfig.h:511
boost::function< api::GUIWidget *(const std::string &name, const std::string &style)> func
Definition: GUIConfig.h:362
GUI_Position * copy()
Copy method returning an exact copy of itself.
Definition: GUIConfig.h:184
stops an animation on Widget
Definition: GUIConfig.h:583
i6e::api::gui::GUI_Text GUI_Text
sets text to Widget