|
wex
v20.04.0
|
This class defines our statusbar panes, used by wex::frame::setup_statusbar. More...
#include <wex/statusbar.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, const std::string &helptext=std::string(), int style=wxSB_NORMAL, bool is_shown=true) | |
| Constructor. More... | |
| const auto & | get_hidden_text () const |
| Returns hidden text. | |
| const auto & | get_name () const |
| Returns statusbar pane name. | |
| 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. | |
| void | show (bool show) |
| Sets whether this pane is shown. 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, |
||
| const std::string & | helptext = std::string(), |
||
| int | style = wxSB_NORMAL, |
||
| bool | is_shown = true |
||
| ) |
Constructor.
| name | name of the pane this lib uses:
|
| width | width of the pane (default, might be overridden in the config) |
| 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'). |
| style | style (default, might be overridden in the config)
|
| is_shown | initially show or hide the pane |
| void wex::statusbar_pane::show | ( | bool | show | ) |
Sets whether this pane is shown.
Resets the hidden text if show is true.
1.8.17