MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::UI::ButtonCustomizationParams Struct Reference

parameters to customize buttonEx More...

#include <MRUIStyle.h>

Public Attributes

bool enabled = true
 determines if this button is enabled or disabled
 
ImGuiButtonFlags flags = ImGuiButtonFlags_None
 imgui flags for this button
 
ImGuiImagecustomTexture = nullptr
 
bool forceImGuiBackground = false
 force use imgui background if !customTexture
 
bool forceImguiTextColor = false
 force use if ImGuiCol_Text for text
 
bool border = false
 show border or not
 
bool underlineFirstLetter = false
 draw line under first letter of label
 
bool enableTestEngine = true
 Allow interacting with this button from UI::TestEngine.
 
std::string testEngineName
 if not empty, force use this string as name in TestEngine
 

Detailed Description

parameters to customize buttonEx

Member Data Documentation

◆ border

bool MR::UI::ButtonCustomizationParams::border = false

show border or not

◆ customTexture

ImGuiImage* MR::UI::ButtonCustomizationParams::customTexture = nullptr

gradient texture other than default {start, hover_start, acitve_start, disabled_start, end, hover_end, acitve_end, disabled_end }

◆ enabled

bool MR::UI::ButtonCustomizationParams::enabled = true

determines if this button is enabled or disabled

◆ enableTestEngine

bool MR::UI::ButtonCustomizationParams::enableTestEngine = true

Allow interacting with this button from UI::TestEngine.

◆ flags

ImGuiButtonFlags MR::UI::ButtonCustomizationParams::flags = ImGuiButtonFlags_None

imgui flags for this button

◆ forceImGuiBackground

bool MR::UI::ButtonCustomizationParams::forceImGuiBackground = false

force use imgui background if !customTexture

◆ forceImguiTextColor

bool MR::UI::ButtonCustomizationParams::forceImguiTextColor = false

force use if ImGuiCol_Text for text

◆ testEngineName

std::string MR::UI::ButtonCustomizationParams::testEngineName

if not empty, force use this string as name in TestEngine

◆ underlineFirstLetter

bool MR::UI::ButtonCustomizationParams::underlineFirstLetter = false

draw line under first letter of label


The documentation for this struct was generated from the following file: