Tramway SDK
Namespaces | Typedefs | Enumerations | Functions
gui.h File Reference
#include <framework/ui.h>

Go to the source code of this file.

Namespaces

namespace  tram
 
namespace  tram::Render
 
namespace  tram::GUI
 

Typedefs

typedef uint32_t tram::GUI::font_t
 
typedef uint32_t tram::GUI::glyph_t
 

Enumerations

enum  tram::GUI::orientation : uint32_t {
  tram::GUI::TEXT_LEFT , tram::GUI::TEXT_CENTER , tram::GUI::TEXT_RIGHT , tram::GUI::TEXT_JUSTIFIED ,
  tram::GUI::LINE_LOW , tram::GUI::LINE_NORMAL , tram::GUI::LINE_HIGH , tram::GUI::FRAME_LEFT ,
  tram::GUI::FRAME_RIGHT , tram::GUI::FRAME_TOP , tram::GUI::FRAME_BOTTOM , tram::GUI::FRAME_LEFT_INV ,
  tram::GUI::FRAME_RIGHT_INV , tram::GUI::FRAME_TOP_INV , tram::GUI::FRAME_BOTTOM_INV , tram::GUI::FRAME_INSET
}
 
enum  tram::GUI::widget : glyph_t {
  tram::GUI::WIDGET_TOP_LEFT = 0 , tram::GUI::WIDGET_TOP_MIDDLE = 1 , tram::GUI::WIDGET_TOP_RIGHT = 2 , tram::GUI::WIDGET_MIDDLE_LEFT = 3 ,
  tram::GUI::WIDGET_MIDDLE_MIDDLE = 4 , tram::GUI::WIDGET_MIDDLE_RIGHT = 5 , tram::GUI::WIDGET_BOTTOM_LEFT = 6 , tram::GUI::WIDGET_BOTTOM_MIDDLE = 7 ,
  tram::GUI::WIDGET_BOTTOM_RIGHT = 8 , tram::GUI::WIDGET_LEFT = 0 , tram::GUI::WIDGET_MIDDLE = 1 , tram::GUI::WIDGET_RIGHT = 2 ,
  tram::GUI::WIDGET_BUTTON = 0 , tram::GUI::WIDGET_BUTTON_PRESSED = 9 , tram::GUI::WIDGET_BUTTON_SELECTED_ENABLED = 18 , tram::GUI::WIDGET_BUTTON_SELECTED_DISABLED = 27 ,
  tram::GUI::WIDGET_BUTTON_DISABLED = 36 , tram::GUI::WIDGET_BUTTON_PRESSED_DISABLED = 45 , tram::GUI::WIDGET_WINDOW = 54 , tram::GUI::WIDGET_REVERSE_WINDOW = 63 ,
  tram::GUI::WIDGET_SELECT_BOX = 72 , tram::GUI::WIDGET_SELECT_BOX_PRESSED = 81 , tram::GUI::WIDGET_SELECT_BOX_SELECTED = 90 , tram::GUI::WIDGET_TEXT_BOX = 99 ,
  tram::GUI::WIDGET_TEXT_BOX_DISABLED = 108 , tram::GUI::WIDGET_BORDER = 117 , tram::GUI::WIDGET_SCROLL_BAR_TRACK_VERTICAL = 126 , tram::GUI::WIDGET_SCROLL_BAR_TRACK_HORIZONTAL = 129 ,
  tram::GUI::WIDGET_DIVIDER_HORIZONTAL = 132 , tram::GUI::WIDGET_DIVIDER_VERTICAL = 135 , tram::GUI::WIDGET_SLIDER_TRACK_VERTICAL = 138 , tram::GUI::WIDGET_SLIDER_TRACK_HORIZONTAL = 138 ,
  tram::GUI::WIDGET_SCROLL_BAR_VERTICAL = 144 , tram::GUI::WIDGET_SCROLL_BAR_HORIZONTAL = 147 , tram::GUI::WIDGET_TAB = 150 , tram::GUI::WIDGET_PROGESS_BAR = 153 ,
  tram::GUI::WIDGET_RADIO_BUTTON = 156 , tram::GUI::WIDGET_CHECK_BUTTON = 162 , tram::GUI::WIDGET_SLIDER_VERTICAL = 168 , tram::GUI::WIDGET_SLIDER_HORIZONTAL = 174 ,
  tram::GUI::WIDGET_BUTTON_UP = 180 , tram::GUI::WIDGET_BUTTON_DOWN = 186 , tram::GUI::WIDGET_BUTTON_LEFT = 192 , tram::GUI::WIDGET_BUTTON_RIGHT = 198 ,
  tram::GUI::WIDGET_BUTTON_EXIT = 204 , tram::GUI::WIDGET_BUTTON_HELP = 210 , tram::GUI::WIDGET_BUTTON_2_WINDOW = 216 , tram::GUI::WIDGET_BUTTON_1_WINDOW = 222 ,
  tram::GUI::WIDGET_DEFAULT = 255
}
 

Functions

void tram::GUI::Init ()
 Performs initialization of the GUI system. More...
 
void tram::GUI::Update ()
 Submits all of the glyphs for rendering. More...
 
font_t tram::GUI::RegisterFont (Render::Sprite *sprite)
 Registers a font. More...
 
void tram::GUI::SetScaling (uint32_t scale)
 
uint32_t tram::GUI::GetScaling ()
 
bool tram::GUI::ClickHandled ()
 
void tram::GUI::Begin ()
 
void tram::GUI::End ()
 
void tram::GUI::SetColor (vec3 color)
 
void tram::GUI::FillFrame (font_t font, glyph_t glyph)
 
void tram::GUI::HorizontalDivider ()
 
void tram::GUI::NewLine (uint32_t line)
 
bool tram::GUI::CheckBox (bool &selected, const char *text, bool enabled)
 
bool tram::GUI::RadioButton (uint32_t index, uint32_t &selected, const char *text, bool enabled)
 
bool tram::GUI::Button (const char *text, bool enabled, uint32_t width)
 
bool tram::GUI::Slider (float &value, bool enabled, uint32_t width)
 
void tram::GUI::PopFrame ()
 
void tram::GUI::PushFrameRelative (uint32_t orientation, uint32_t offset)
 
void tram::GUI::PushFrame (uint32_t x, uint32_t y, uint32_t w, uint32_t h)
 
void tram::GUI::Glyph (font_t font, glyph_t glyph)
 
void tram::GUI::Text (font_t font, const char *text, uint32_t orientation)
 
bool tram::GUI::TextBox (char *text, uint32_t length, bool enabled, uint32_t w, uint32_t h)
 
void tram::GUI::TextBox (const char *text, uint32_t w, uint32_t h)