Euphoria
Classes | Namespaces | Functions
widgets.h File Reference
#include <SDL_keycode.h>
#include "eustb_textedit_string.h"
#include "eu/base/colors.h"
#include "eu/base/rect.h"
#include "eu/base/vec2.h"

Go to the source code of this file.

Classes

struct  eu::mrgui::IdStack
 
struct  eu::mrgui::KeyboardInput
 
struct  eu::mrgui::UiState
 

Namespaces

namespace  eu
 
namespace  eu::render
 
namespace  eu::mrgui
 

Functions

bool eu::mrgui::button_logic (u32 id, const Rect &rect, UiState &uistate)
 
bool eu::mrgui::basic_button (u32 id, const Rect &rect, UiState &uistate, render::SpriteBatch *batch)
 
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)
 
bool eu::mrgui::slider (u32 id, float *val, const Rect &rect, UiState &uistate, render::SpriteBatch *batch)
 
void eu::mrgui::draw_text (render::SpriteBatch *batch, render::DrawableFont *font, const std::string &str, float size, const v2 &pos, const Rgb &color)
 
bool eu::mrgui::textfield (u32 id, std::string *val, render::DrawableFont *font, float size, const v2 &pos, UiState &uistate, render::SpriteBatch *batch)