Euphoria
Classes | Functions
eu::mrgui Namespace Reference

Classes

struct  IdStack
 
struct  KeyboardInput
 
struct  UiState
 

Functions

bool button_logic (u32 id, const Rect &rect, UiState &uistate)
 
bool basic_button (u32 id, const Rect &rect, UiState &uistate, render::SpriteBatch *batch)
 
bool button_texture (u32 id, const Rect &rect, UiState &uistate, render::SpriteBatch *batch, const render::Texture2d *texture, const Rect &active, const Rect &hot, const Rect &normal)
 
bool slider (u32 id, float *val, const Rect &rect, UiState &uistate, render::SpriteBatch *batch)
 
void draw_text (render::SpriteBatch *batch, render::DrawableFont *font, const std::string &str, float size, const v2 &pos, const Rgb &color)
 
bool textfield (u32 id, std::string *val, render::DrawableFont *font, float size, const v2 &pos, UiState &uistate, render::SpriteBatch *batch)
 

Function Documentation

◆ basic_button()

bool eu::mrgui::basic_button ( u32  id,
const Rect rect,
UiState uistate,
render::SpriteBatch batch 
)

◆ button_logic()

bool eu::mrgui::button_logic ( u32  id,
const Rect rect,
UiState uistate 
)

◆ button_texture()

bool eu::mrgui::button_texture ( u32  id,
const Rect rect,
UiState uistate,
render::SpriteBatch batch,
const render::Texture2d texture,
const Rect active,
const Rect hot,
const Rect normal 
)

◆ draw_text()

void eu::mrgui::draw_text ( render::SpriteBatch batch,
render::DrawableFont font,
const std::string &  str,
float  size,
const v2 pos,
const Rgb color 
)

◆ slider()

bool eu::mrgui::slider ( u32  id,
float val,
const Rect rect,
UiState uistate,
render::SpriteBatch batch 
)

◆ textfield()

bool eu::mrgui::textfield ( u32  id,
std::string *  val,
render::DrawableFont font,
float  size,
const v2 pos,
UiState uistate,
render::SpriteBatch batch 
)