GUI
Classes | Typedefs | Enumerations | Functions
gui Namespace Reference

GUI library's name space. More...

Classes

class  Button
 Button widget. That rectangular thing with inscription on it. More...
 
class  EditBox
 EditBox widget. You can type into it. More...
 
class  Event
 Class for objects representing events. Its creation and copying is managed by GUISystem class. More...
 
class  EventEmitter
 Base class for things that emits events. More...
 
class  EventListener
 Wrapper for std::function; used by EventEmitter to append IDs to listening functions. More...
 
class  EventObject
 Intended to contain bowels of different types of events. More...
 
class  EventQueue
 GUISystem's internal event queue; collects fired events and affiliates them with particular event listener. More...
 
class  GUISystem
 Manages creating widgets and events and provides routines governing GUI mechanisms. More...
 
class  Handle
 Template class for widget handles. More...
 
class  KeyboardEvent
 
class  Logger
 
class  MouseEvent
 
class  Renderer
 Class that provides rendering functions for widgets. More...
 
class  Scrollbar
 Scrollbar widget. Has a bar and it scrolls! More...
 
class  TextField
 TextField widget. It's like EditBox but no editing. More...
 
class  Widget
 Base class for widgets. Inherits EventEmitter. More...
 

Typedefs

typedef std::function< void(Event &&, EventListener)> AddToQueue
 
typedef std::function< Widget *(GUISystem *)> CreateWidget
 
typedef std::function< EventObject *(EventObject *)> CreateEventObject
 
typedef ALLEGRO_COLOR Color
 

Enumerations

enum  EventType : char {
  EventType::NONE = 0, EventType::MOUSE_BUTTON_DOWN, EventType::MOUSE_BUTTON_UP, EventType::MOUSE_MOVE,
  EventType::KEY_DOWN, EventType::KEY_UP, EventType::KEY_PRESS, EventType::RESIZE,
  EventType::DISPLAY_CLOSE, EventType::USER_EVENT
}
 

Functions

std::ostream & getLogStr ()
 

Detailed Description

GUI library's name space.

Typedef Documentation

◆ AddToQueue

typedef std::function<void(Event&&, EventListener)> gui::AddToQueue

Definition at line 19 of file EventEmitter.h.

◆ Color

typedef ALLEGRO_COLOR gui::Color

Definition at line 17 of file Renderer.h.

◆ CreateEventObject

typedef std::function<EventObject*(EventObject*)> gui::CreateEventObject

Definition at line 28 of file GUISystem.h.

◆ CreateWidget

typedef std::function<Widget*(GUISystem*)> gui::CreateWidget

Definition at line 27 of file GUISystem.h.

Enumeration Type Documentation

◆ EventType

enum gui::EventType : char
strong
Enumerator
NONE 
MOUSE_BUTTON_DOWN 
MOUSE_BUTTON_UP 
MOUSE_MOVE 
KEY_DOWN 
KEY_UP 
KEY_PRESS 
RESIZE 
DISPLAY_CLOSE 
USER_EVENT 

Definition at line 17 of file events.h.

Function Documentation

◆ getLogStr()

std::ostream & gui::getLogStr ( )

Definition at line 11 of file loggerLocator.cpp.

References gui::Logger::getStream().