Loading...
Searching...
No Matches
ml::SelectOption Struct Reference

#include <Malena/Graphics/Controls/Select.h>

Public Member Functions

 SelectOption (const std::string &label, const std::string &value="", const SelectOptionStyle &style={})
 SelectOption (ml::Core &component, const std::string &value="")

Public Attributes

ml::CorecustomComponent = nullptr
bool enabled = true
std::string label
bool selected = false
SelectOptionStyle style
std::string value

Detailed Description

Definition at line 55 of file Select.h.

Constructor & Destructor Documentation

◆ SelectOption() [1/2]

ml::SelectOption::SelectOption ( const std::string & label,
const std::string & value = "",
const SelectOptionStyle & style = {} )
inlineexplicit

Definition at line 64 of file Select.h.

◆ SelectOption() [2/2]

ml::SelectOption::SelectOption ( ml::Core & component,
const std::string & value = "" )
inlineexplicit

Definition at line 69 of file Select.h.

Member Data Documentation

◆ customComponent

ml::Core* ml::SelectOption::customComponent = nullptr

Definition at line 62 of file Select.h.

◆ enabled

bool ml::SelectOption::enabled = true

Definition at line 60 of file Select.h.

◆ label

std::string ml::SelectOption::label

Definition at line 57 of file Select.h.

◆ selected

bool ml::SelectOption::selected = false

Definition at line 61 of file Select.h.

◆ style

SelectOptionStyle ml::SelectOption::style

Definition at line 59 of file Select.h.

◆ value

std::string ml::SelectOption::value

Definition at line 58 of file Select.h.


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