wex v24.10.0
|
Offers user data to be used by item. More...
#include <wex/data/item.h>
Public Types | |
enum | label_t { LABEL_NONE , LABEL_LEFT , LABEL_ABOVE } |
Label types supported. More... | |
typedef std::function< void(wxWindow *user, const std::any &value, bool save) | user_apply_t) |
A function that you can provide to e.g. | |
typedef std::function< bool(const std::string &value) | user_validate_t) |
A function that you can provide to validate the item. | |
typedef std::function< void(wxWindow *user, wxWindow *parent) | user_window_create_t) |
A function that you can provide to specify what needs to be done for creating a user item. | |
typedef std::function< bool(wxWindow *user, bool save) | user_window_to_config_t) |
A function that you can provide to specify what needs to be done for loading or saving a user item to the config. | |
Public Member Functions | |
item (const data::control &data=data::control()) | |
Default constructor from control data. | |
const auto & | apply () const |
Returns apply. | |
item & | apply (const user_apply_t &rhs) |
Sets apply. | |
auto | columns () const |
Returns the number of columns for the current page. | |
item & | columns (int rhs) |
Sets columns. | |
const auto & | control () const |
Returns control data. | |
item & | control (const data::control &rhs) |
Sets control data. | |
const auto | image_list () const |
Returns image list. | |
item & | image_list (wxImageList *il) |
Sets image list. | |
const auto & | inc () const |
Returns increment value;. | |
item & | inc (const std::any &rhs) |
Sets inc. | |
const auto & | initial () const |
Returns the initial value. | |
item & | initial (const std::any &rhs) |
Sets initial. | |
const bool | is_readonly () const |
Returns is_readonly. | |
const bool | is_regex () const |
Returns is_regex. | |
item & | is_readonly (bool rhs) |
Sets is_readonly. | |
item & | is_regex (bool rhs) |
Sets is_regex. | |
const auto | label_type () const |
Returns label type. | |
item & | label_type (label_t rhs) |
Sets label type. | |
const auto & | max () const |
Returns max value. | |
item & | max (const std::any &rhs) |
Sets max. | |
const auto & | min () const |
Returns min value. | |
item & | min (const std::any &rhs) |
Sets min. | |
auto & | user_window_create () const |
Return the process callback for window creation. | |
item & | user_window_create (const user_window_create_t &rhs) |
Sets user window create. | |
const auto | validate () const |
Returns validate. | |
item & | validate (const user_validate_t &rhs) |
Sets validator. | |
const auto & | validate_re () const |
Returns validate regex. | |
item & | validate_re (const std::string &rhs) |
Sets validator regex. | |
auto & | user_window_to_config () const |
Returns the process callback for window config. | |
item & | user_window_to_config (const user_window_to_config_t &rhs) |
Sets user window config. | |
const data::window & | window () const |
Returns window data. | |
item & | window (const data::window &rhs) |
Sets window data. | |
Offers user data to be used by item.
typedef std::function<void(wxWindow* user, const std::any& value, bool save) wex::data::item::user_apply_t) |
A function that you can provide to e.g.
specify what to do when clicking on a button item.
typedef std::function<bool(const std::string& value) wex::data::item::user_validate_t) |
A function that you can provide to validate the item.
to do when clicking on a button item.