wex
v21.04.0
|
This class defines our statusbar panes, used by wex::frame::setup_statusbar. More...
#include <wex/statusbar-pane.h>
Inherits wxStatusBarPane.
Public Member Functions | |
statusbar_pane (int width=-5, int style=wxSB_NORMAL) | |
Default constructor. More... | |
statusbar_pane (const std::string &name, int width=50, bool show=true) | |
Constructor. More... | |
const auto & | get_hidden_text () const |
Returns hidden text. | |
const auto & | get_name () const |
Returns statusbar pane name. | |
statusbar_pane & | help (const std::string &rhs) |
Sets helptext. More... | |
const auto & | help_text () const |
Returns statusbar pane help text. | |
bool | is_shown () const |
Returns whether this pane is shown. | |
void | set_hidden_text (const std::string &text) |
Sets hidden text. | |
statusbar_pane & | show (bool show) |
Sets whether this pane is shown. More... | |
statusbar_pane & | style (int rhs) |
Sets style. More... | |
This class defines our statusbar panes, used by wex::frame::setup_statusbar.
It just adds some members to the base class (that offers GetText(), style() 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)