wex v24.10.0
|
This class defines our statusbar panes, used by wex::frame::setup_statusbar. More...
#include <wex/ui/statusbar-pane.h>
Inherits wxStatusBarPane.
Public Member Functions | |
statusbar_pane (int width=-5, int style=wxSB_NORMAL) | |
Default constructor. | |
statusbar_pane (const std::string &name, int width=50, bool show=true) | |
Constructor. | |
statusbar_pane & | help (const std::string &rhs) |
Sets helptext. | |
const auto & | help_text () const |
Returns statusbar pane help text. | |
const auto & | hidden_text () const |
Returns hidden text. | |
statusbar_pane & | hidden_text (const std::string &text) |
Sets hidden text. | |
bool | is_shown () const |
Returns whether this pane is shown. | |
const auto & | name () const |
Returns statusbar pane name. | |
statusbar_pane & | show (bool show) |
Sets whether this pane is shown. | |
statusbar_pane & | style (int rhs) |
Sets style. | |
This class defines our statusbar panes, used by wex::frame::setup_statusbar.
It just adds some members to the base class (that offers GetText(), GetStyle() and GetWidth()).
|
inline |
Default constructor.
This constructs the PaneText pane.
width | width of the pane (default, might be overridden in the config) |
style | style (default, might be overridden in the config) |
wex::statusbar_pane::statusbar_pane | ( | const std::string & | name, |
int | width = 50, | ||
bool | show = true ) |
Constructor.
name | name of the pane this lib uses:
|
width | width of the pane (default, might be overridden in the config) |
show | show pane |
statusbar_pane & wex::statusbar_pane::help | ( | const std::string & | rhs | ) |
Sets helptext.
helptext shown as a tooltip If you do no provide helptext, it is derived from the name, by using text after the first 'e' character (so after 'Pane').
statusbar_pane & wex::statusbar_pane::show | ( | bool | show | ) |
Sets whether this pane is shown.
Resets the hidden text if show is true.
statusbar_pane & wex::statusbar_pane::style | ( | int | rhs | ) |
Sets style.
style (default, might be overridden in the config)