9 this->callback = callback;
13 this->height = height;
14 this->font_size = font_size;
23 sprintf(lab,
"%s##%d", label ? label :
"",
index);
28 if (current_fs != font_size)
31 ImVec2 size(this->
width > 0 ? (
float) this->
width : 0.0f,
32 this->height > 0 ? (
float) this->height : 0.0f);
34 if (ImGui::Button(lab, size)) {
35 if (this->callback !=
nullptr)
40 if (current_fs != font_size)
static std::unique_ptr< app_workspace > & get_instance()
Get the instance app_workspace which is a singleton.
virtual void render_element()
font_size
This enum defines sizes of corresponding fonts. E.g.: SMALL_FONT is 12px.