R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
UI Namespace Reference

Namespaces

namespace  TextUtils
 

Classes

class  IButton
 Abstract interface for UI buttons. More...
 
class  IMenu
 Abstract interface for UI menus. More...
 
class  ISlider
 Abstract interface for UI sliders. More...
 
class  ITextInput
 Abstract interface for UI text input fields. More...
 
class  IUIFactory
 Abstract factory interface for creating UI elements. More...
 
class  RaylibButton
 Raylib implementation of the IButton interface. More...
 
class  RaylibMenu
 Raylib implementation of the IMenu interface. More...
 
class  RaylibSlider
 Raylib implementation of the ISlider interface. More...
 
class  RaylibTextInput
 Raylib implementation of the ITextInput interface. More...
 
class  RaylibUIFactory
 Raylib implementation of the IUIFactory interface. More...
 

Enumerations

enum class  ButtonState { NORMAL , HOVERED , PRESSED }
 Button state enumeration. More...
 
enum class  Align { NONE , CENTER_HORIZONTAL , CENTER_VERTICAL , CENTER_BOTH }
 Alignment modes relative to the current window. More...
 

Enumeration Type Documentation

◆ Align

enum class UI::Align
strong

Alignment modes relative to the current window.

Alignment is applied by calling ApplyAlignment() (or implicitly by some setters).

Notes:

  • CENTER_HORIZONTAL: modifies X only
  • CENTER_VERTICAL: modifies Y only
  • CENTER_BOTH: modifies both X and Y
Enumerator
NONE 

No alignment.

CENTER_HORIZONTAL 

Center on the X axis.

CENTER_VERTICAL 

Center on the Y axis.

CENTER_BOTH 

Center on both axes.

Definition at line 33 of file IButton.hpp.

◆ ButtonState

enum class UI::ButtonState
strong

Button state enumeration.

Enumerator
NORMAL 

Default state.

HOVERED 

Mouse is over the button.

PRESSED 

Mouse button is held down on the button.

Definition at line 17 of file IButton.hpp.