MeshLib Documentation
Loading...
Searching...
No Matches
MR::ImGuiMeasurementIndicators::StringWithIcon Struct Reference

#include <MRImGuiMeasurementIndicators.h>

Public Member Functions

 StringWithIcon ()
 
 StringWithIcon (const char *string)
 
 StringWithIcon (std::string string)
 
 StringWithIcon (StringIcon icon, std::size_t iconPos, std::string string)
 
bool isEmpty () const
 
MRVIEWER_API float getIconWidth () const
 
MRVIEWER_API ImVec2 calcTextSize () const
 
MRVIEWER_API void draw (ImDrawList &list, float menuScaling, ImVec2 pos, ImU32 color)
 

Public Attributes

StringIcon icon {}
 
std::size_t iconPos = 0
 
std::string string
 

Constructor & Destructor Documentation

◆ StringWithIcon() [1/4]

MR::ImGuiMeasurementIndicators::StringWithIcon::StringWithIcon ( )
inline

◆ StringWithIcon() [2/4]

MR::ImGuiMeasurementIndicators::StringWithIcon::StringWithIcon ( const char * string)
inline

◆ StringWithIcon() [3/4]

MR::ImGuiMeasurementIndicators::StringWithIcon::StringWithIcon ( std::string string)
inline

◆ StringWithIcon() [4/4]

MR::ImGuiMeasurementIndicators::StringWithIcon::StringWithIcon ( StringIcon icon,
std::size_t iconPos,
std::string string )
inline

Member Function Documentation

◆ calcTextSize()

MRVIEWER_API ImVec2 MR::ImGuiMeasurementIndicators::StringWithIcon::calcTextSize ( ) const
nodiscard

◆ draw()

MRVIEWER_API void MR::ImGuiMeasurementIndicators::StringWithIcon::draw ( ImDrawList & list,
float menuScaling,
ImVec2 pos,
ImU32 color )

◆ getIconWidth()

MRVIEWER_API float MR::ImGuiMeasurementIndicators::StringWithIcon::getIconWidth ( ) const
nodiscard

◆ isEmpty()

bool MR::ImGuiMeasurementIndicators::StringWithIcon::isEmpty ( ) const
inlinenodiscard

Member Data Documentation

◆ icon

StringIcon MR::ImGuiMeasurementIndicators::StringWithIcon::icon {}

◆ iconPos

std::size_t MR::ImGuiMeasurementIndicators::StringWithIcon::iconPos = 0

◆ string

std::string MR::ImGuiMeasurementIndicators::StringWithIcon::string

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