Mads
Multi-Agent Distributed System
Loading...
Searching...
No Matches
MadsGui Namespace Reference

Classes

struct  Texture
 

Functions

const char * setup_gl_hints ()
 
void apply_style ()
 
ImFont * load_monospace_font (float size_pixels=15.0F)
 
Texture load_texture_from_png (const std::filesystem::path &path)
 
Texture load_logo (const std::filesystem::path &primary_images_dir)
 
void free_texture (Texture &texture)
 
float status_footer_height ()
 
void draw_status_footer (const Texture &logo, const std::string &line1, const std::string &line2)
 

Variables

constexpr int kWindowWidth = 1440
 
constexpr int kWindowHeight = 900
 
constexpr ImVec4 kClearColor {0.06F, 0.06F, 0.08F, 1.0F}
 
constexpr ImVec4 kOkColor {0.42F, 0.80F, 0.48F, 1.0F}
 
constexpr ImVec4 kErrorColor {0.92F, 0.39F, 0.39F, 1.0F}
 
constexpr ImGuiWindowFlags kMainWindowFlags
 

Function Documentation

◆ apply_style()

void MadsGui::apply_style ( )

◆ draw_status_footer()

void MadsGui::draw_status_footer ( const Texture &  logo,
const std::string &  line1,
const std::string &  line2 
)

◆ free_texture()

void MadsGui::free_texture ( Texture &  texture)

◆ load_logo()

Texture MadsGui::load_logo ( const std::filesystem::path &  primary_images_dir)

◆ load_monospace_font()

ImFont * MadsGui::load_monospace_font ( float  size_pixels = 15.0F)

◆ load_texture_from_png()

Texture MadsGui::load_texture_from_png ( const std::filesystem::path &  path)

◆ setup_gl_hints()

const char * MadsGui::setup_gl_hints ( )

◆ status_footer_height()

float MadsGui::status_footer_height ( )

Variable Documentation

◆ kClearColor

constexpr ImVec4 MadsGui::kClearColor {0.06F, 0.06F, 0.08F, 1.0F}
inlineconstexpr

Definition at line 20 of file gui_style.hpp.

◆ kErrorColor

constexpr ImVec4 MadsGui::kErrorColor {0.92F, 0.39F, 0.39F, 1.0F}
inlineconstexpr

Definition at line 22 of file gui_style.hpp.

◆ kMainWindowFlags

constexpr ImGuiWindowFlags MadsGui::kMainWindowFlags
inlineconstexpr
Initial value:
= ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove |
ImGuiWindowFlags_NoSavedSettings |
ImGuiWindowFlags_NoScrollbar |
ImGuiWindowFlags_NoScrollWithMouse

Definition at line 23 of file gui_style.hpp.

◆ kOkColor

constexpr ImVec4 MadsGui::kOkColor {0.42F, 0.80F, 0.48F, 1.0F}
inlineconstexpr

Definition at line 21 of file gui_style.hpp.

◆ kWindowHeight

constexpr int MadsGui::kWindowHeight = 900
inlineconstexpr

Definition at line 19 of file gui_style.hpp.

◆ kWindowWidth

constexpr int MadsGui::kWindowWidth = 1440
inlineconstexpr

Definition at line 18 of file gui_style.hpp.