Euphoria
eu::imgui Namespace Reference

Classes

struct  ImLog
struct  ImTweak
struct  SCurveGuiState
 Represents the GUI state for an S-curve. More...
struct  ImguiShaderProgram
struct  ImguiShaderCache
struct  PropTable

Enumerations

enum class  LogStyle { basic , filter }
enum class  FlipX { no , yes }
enum class  ImageShader { none , tonemap_and_gamma , depth_ortho }
enum class  ButtonStyle { secondary , primary , danger , toolbar }
enum class  ProgressSize { normal , small }

Functions

float calculate_app_scale ()
std::pair< int, int > rescale_window (int width, int height, float app_scale)
void setup_scale (float app_scale)
void setup_colors ()
bool button (const char *label, ButtonStyle style=ButtonStyle::secondary, const std::optional< ImVec2 > &button_size=std::nullopt)
bool centered_button (const char *label, ButtonStyle style=ButtonStyle::secondary, const std::optional< ImVec2 > &button_size=std::nullopt)
bool header (const char *label, bool *closeable=nullptr)
void begin_disabled (bool enabled)
void end_disabled ()
void progress (const char *title, std::optional< float > percentage, ProgressSize size=ProgressSize::normal)

Enumeration Type Documentation

◆ ButtonStyle

enum class eu::imgui::ButtonStyle
strong
Enumerator
secondary 
primary 
danger 
toolbar 

Definition at line 67 of file ui.h.

◆ FlipX

enum class eu::imgui::FlipX
strong
Enumerator
no 
yes 

Definition at line 31 of file ui.h.

◆ ImageShader

enum class eu::imgui::ImageShader
strong
Enumerator
none 
tonemap_and_gamma 
depth_ortho 

Definition at line 58 of file ui.h.

◆ LogStyle

enum class eu::imgui::LogStyle
strong
Enumerator
basic 
filter 

Definition at line 7 of file debug.h.

◆ ProgressSize

enum class eu::imgui::ProgressSize
strong
Enumerator
normal 
small 

Definition at line 80 of file ui.h.

Function Documentation

◆ begin_disabled()

void eu::imgui::begin_disabled ( bool enabled)

◆ button()

bool eu::imgui::button ( const char * label,
ButtonStyle style = ButtonStyle::secondary,
const std::optional< ImVec2 > & button_size = std::nullopt )

◆ calculate_app_scale()

float eu::imgui::calculate_app_scale ( )

◆ centered_button()

bool eu::imgui::centered_button ( const char * label,
ButtonStyle style = ButtonStyle::secondary,
const std::optional< ImVec2 > & button_size = std::nullopt )

◆ end_disabled()

void eu::imgui::end_disabled ( )

◆ header()

bool eu::imgui::header ( const char * label,
bool * closeable = nullptr )

◆ progress()

void eu::imgui::progress ( const char * title,
std::optional< float > percentage,
ProgressSize size = ProgressSize::normal )

◆ rescale_window()

std::pair< int, int > eu::imgui::rescale_window ( int width,
int height,
float app_scale )

◆ setup_colors()

void eu::imgui::setup_colors ( )

◆ setup_scale()

void eu::imgui::setup_scale ( float app_scale)