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

#include <MRRibbonButtonDrawer.h>

Public Types

enum class  SizeType { SizeType::Big , SizeType::SmallText , SizeType::Small }
 
enum  RootType { Ribbon , Toolbar , Header }
 icon size ( = 0 - use preset according to button type), this is scale factor of cBigIcon size (should not respect system scaling) More...
 

Public Attributes

enum MR::DrawButtonParams::SizeType Big
 
ImVec2 itemSize
 type of button to draw
 
float iconSize { 0.f }
 size of whole item group, needed for all, this should respect system scaling
 
enum MR::DrawButtonParams::RootType Ribbon
 
bool forceHovered = false
 if true treat this item as hovered
 
bool forcePressed = false
 if true treat this item as pressed
 
bool * isPressed = nullptr
 set true if item pressed
 

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