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

Parameters for drawing custom separator. More...

#include <MRUIStyle.h>

Public Attributes

const ImGuiImageicon { nullptr }
 optional icon in the left part of separator
 
Vector2f iconSize
 size of icon
 
std::string label
 label at the left part of separator (drawn after icon if present)
 
std::string suffix
 framed text after label (might be used for some indications)
 
std::optional< ColorsuffixFrameColor
 color of background frame behind suffix (if not present default ImGuiCol_FrameBg is used)
 
bool forceImGuiSpacing = false
 

Detailed Description

Parameters for drawing custom separator.

Member Data Documentation

◆ forceImGuiSpacing

bool MR::UI::SeparatorParams::forceImGuiSpacing = false

if set - use default spacing from ImGui::GetStyle() otherwise overrides it with ribbon constants

◆ icon

const ImGuiImage* MR::UI::SeparatorParams::icon { nullptr }

optional icon in the left part of separator

◆ iconSize

Vector2f MR::UI::SeparatorParams::iconSize

size of icon

scaling is applied inside separator function

◆ label

std::string MR::UI::SeparatorParams::label

label at the left part of separator (drawn after icon if present)

◆ suffix

std::string MR::UI::SeparatorParams::suffix

framed text after label (might be used for some indications)

◆ suffixFrameColor

std::optional<Color> MR::UI::SeparatorParams::suffixFrameColor

color of background frame behind suffix (if not present default ImGuiCol_FrameBg is used)


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