Specialized field class for boolean.
More...
#include <field.hpp>
|
| | field_bool (const std::string &id, const bool mandatory, const std::function< bool()> &callback_load_value, const std::function< void(const bool)> &callback_save_value, const std::function< void(widget &)> &callback_change, const bool initial_fire) |
| |
| | field_bool (const std::string &id, const bool mandatory, bool &linked_variable, const std::function< void(widget &)> &callback_change, const bool initial_fire) |
| |
| | field (const std::string &id, const bool mandatory, const std::function< bool()> &callback_load_value, const std::function< void(CT)> &callback_save_value) |
| | Constructor.
|
| |
| | field (const std::string &id, const bool mandatory, bool &linked_variable) |
| | Constructor.
|
| |
| | field (const std::string &id, const bool mandatory, const bool &value) |
| | Constructor.
|
| |
| void | widget_restore () |
| | Inherited from field_base.
|
| |
| void | set_widget_value (CT value) |
| | Sets the value of the field.
|
| |
| void | set_cache_value (CT value) |
| | Sets the value of the field.
|
| |
| void | widget_save () |
| | Inherited from field_base.
|
| |
| bool | get_widget_value () |
| | Gets the value of the field.
|
| |
| | field_base (const std::string &id, const bool mandatory) |
| | Constructor.
|
| |
| virtual | ~field_base () |
| |
| void | attach_to_window (window &window) |
| | Attaches the field to a window.
|
| |
| void | widget_init () |
| | Initializes the widget.
|
| |
| void | widget_finalize () |
| | Finalizes the widget.
|
| |
| void | detach_from_window () |
| | Detaches the field from a window.
|
| |
| void | widget_set_enabled (const bool enable, const bool sync) |
| | Enables a widget.
|
| |
| const std::string & | id () const |
| |
| bool | is_mandatory () const |
| |
| styled_widget * | get_widget () |
| |
| const styled_widget * | get_widget () const |
| |
Specialized field class for boolean.
Definition at line 487 of file field.hpp.
◆ field_bool() [1/2]
| gui2::field_bool::field_bool |
( |
const std::string & |
id, |
|
|
const bool |
mandatory, |
|
|
const std::function< bool()> & |
callback_load_value, |
|
|
const std::function< void(const bool)> & |
callback_save_value, |
|
|
const std::function< void(widget &)> & |
callback_change, |
|
|
const bool |
initial_fire |
|
) |
| |
|
inline |
◆ field_bool() [2/2]
| gui2::field_bool::field_bool |
( |
const std::string & |
id, |
|
|
const bool |
mandatory, |
|
|
bool & |
linked_variable, |
|
|
const std::function< void(widget &)> & |
callback_change, |
|
|
const bool |
initial_fire |
|
) |
| |
|
inline |
◆ init_specialized()
| void gui2::field_bool::init_specialized |
( |
| ) |
|
|
inlineprivatevirtual |
◆ callback_change_
| std::function<void(widget&)> gui2::field_bool::callback_change_ |
|
private |
◆ initial_fire_
| const bool gui2::field_bool::initial_fire_ |
|
private |
The documentation for this class was generated from the following file: