MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ImGuiMeasurementIndicators::Text::Elem Struct Reference

#include <MRImGuiMeasurementIndicators.h>

Public Member Functions

bool hasDefaultParams () const
 

Public Attributes

ElemVar var
 
ImVec2 size = ImVec2( 0, -1 )
 
ImVec2 align
 
int columnId = -1
 
ImVec2 computedSize
 The computed content size. Read-only. Don't set manually, update() sets this.
 
ImVec2 computedSizeWithPadding
 Read-only, don't set manually. This is typically max( size, computedSize ), with additional adjustments.
 

Member Function Documentation

◆ hasDefaultParams()

bool MR::ImGuiMeasurementIndicators::Text::Elem::hasDefaultParams ( ) const
inlinenodiscard

Member Data Documentation

◆ align

ImVec2 MR::ImGuiMeasurementIndicators::Text::Elem::align

Alignment. Only makes sense if size is set. [0,0] = top-left, [1,1] = bottom-right.

◆ columnId

int MR::ImGuiMeasurementIndicators::Text::Elem::columnId = -1

If set, will increase width to the maximum of all elements with the same column id. This affects how computedSizeWithPadding is computed.

◆ computedSize

ImVec2 MR::ImGuiMeasurementIndicators::Text::Elem::computedSize
mutable

The computed content size. Read-only. Don't set manually, update() sets this.

◆ computedSizeWithPadding

ImVec2 MR::ImGuiMeasurementIndicators::Text::Elem::computedSizeWithPadding
mutable

Read-only, don't set manually. This is typically max( size, computedSize ), with additional adjustments.

◆ size

ImVec2 MR::ImGuiMeasurementIndicators::Text::Elem::size = ImVec2( 0, -1 )

The minimum element size. Has no effect if smaller than computedSize. Here if Y is negative, inherits the line height.

◆ var

ElemVar MR::ImGuiMeasurementIndicators::Text::Elem::var

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