Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations
gui::widget Namespace Reference

Data Structures

class  CenterText
 
class  DynText
 
class  Empty
 
class  Flexbox
 
class  StaticImg
 
class  TextInput
 
class  Widget
 

Typedefs

using Handle = std::size_t
 Type for a Widget Handle. More...
 
using CallbackHandle = std::size_t
 Type for the handle for a specific callback function. More...
 
using Callback = std::function< void(Handle)>
 Type for a onClick or onHover callback function. The Handle parameter is the handle to the widget that the callback is attached to. More...
 

Enumerations

enum class  Dir { VERTICAL , HORIZONTAL }
 
enum class  Align { CENTER , LEFT , RIGHT }
 
enum class  Type {
  DynText , Flexbox , StaticImg , TextInput ,
  Empty
}
 

Typedef Documentation

◆ Callback

using gui::widget::Callback = typedef std::function<void(Handle)>

Type for a onClick or onHover callback function. The Handle parameter is the handle to the widget that the callback is attached to.

◆ CallbackHandle

using gui::widget::CallbackHandle = typedef std::size_t

Type for the handle for a specific callback function.

◆ Handle

using gui::widget::Handle = typedef std::size_t

Type for a Widget Handle.

Enumeration Type Documentation

◆ Align

enum class gui::widget::Align
strong
Enumerator
CENTER 
LEFT 
RIGHT 

◆ Dir

enum class gui::widget::Dir
strong
Enumerator
VERTICAL 
HORIZONTAL 

◆ Type

enum class gui::widget::Type
strong
Enumerator
DynText 
Flexbox 
StaticImg 
TextInput 
Empty