class UICheckBox

File location: framework/cauldron/framework/inc/core/uimanager.h

Construction

Return type

Description

UICheckBox ( uint64_t id, const char* text, bool& data, const bool& enable, std::function<void(bool, bool)> callback = nullptr, bool shown = true, bool sameLine = false )
Constructor. Creates the UI checkbox.
UICheckBox ( uint64_t id, const char* text, bool& data, std::function<void(bool, bool)> callback = nullptr, bool shown = true, bool sameLine = false )
Constructor. Creates the UI text without enabler.

Methods

Return type

Description

bool

GetData () const
Get the data in check box.

void

SetData (bool data)
Set the data in check box.

void

Build the UI in each UI backend.

Detailed description

Construction

UICheckBox

Copied!

UICheckBox (
    uint64_t id,
    const char* text,
    bool& data,
    const bool& enable,
    std::function<void(bool, bool)> callback = nullptr,
    bool shown = true,
    bool sameLine = false
)

Constructor. Creates the UI checkbox.


UICheckBox

Copied!

UICheckBox (
    uint64_t id,
    const char* text,
    bool& data,
    std::function<void(bool, bool)> callback = nullptr,
    bool shown = true,
    bool sameLine = false
)

Constructor. Creates the UI text without enabler.


Methods

GetData

Copied!

bool GetData () const

Get the data in check box.


SetData

Copied!

void SetData (bool data)

Set the data in check box.


BuildUI

Copied!

virtual void BuildUI ()

Build the UI in each UI backend.