guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
guillaume::components::SegmentedButton::Segment Struct Reference

What one segment shows and whether it can be pressed. More...

#include <headers/guillaume/components/segmented_button.hpp>

Public Member Functions

bool operator== (const Segment &other) const =default
 Compare two segment configurations.

Public Attributes

std::string label {}
std::string icon {}
bool disabled { false }
std::string accessibilityLabel {}

Detailed Description

What one segment shows and whether it can be pressed.

Definition at line 75 of file segmented_button.hpp.

Member Function Documentation

◆ operator==()

bool guillaume::components::SegmentedButton::Segment::operator== ( const Segment & other) const
default

Compare two segment configurations.

Parameters
otherThe configuration to compare with.
Returns
True when every option is equal.

Member Data Documentation

◆ accessibilityLabel

std::string guillaume::components::SegmentedButton::Segment::accessibilityLabel {}

Name announced by assistive technology; empty to keep the one of the button.

Definition at line 83 of file segmented_button.hpp.

◆ disabled

bool guillaume::components::SegmentedButton::Segment::disabled { false }

Whether the segment is disabled.

Definition at line 80 of file segmented_button.hpp.

◆ icon

std::string guillaume::components::SegmentedButton::Segment::icon {}

Glyph name of the leading icon shown while not selected; empty for none.

Definition at line 79 of file segmented_button.hpp.

◆ label

std::string guillaume::components::SegmentedButton::Segment::label {}

Visible label.

Definition at line 76 of file segmented_button.hpp.


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