lecui 1.0.0-alpha.20
lecui C++ user interface library
|
Side pane container. To instantiate and add to a container use the add static method. More...
#include <side_pane.h>
Public Member Functions | |
side_pane (form &fm, const float &thickness) | |
Class constructor. More... | |
![]() | |
status_pane_base (form &fm, const std::string &alias) | |
Base class constructor. More... | |
virtual | ~status_pane_base () |
Base class destructor. | |
![]() | |
page (form &fm, const std::string &alias) | |
Page constructor. More... | |
virtual const size | size () |
Get the size of the page. More... | |
const bool | rendered () |
Check whether the page has been rendered. More... | |
virtual const lecui::size | change_in_size () |
Get the page's change in size. More... | |
void | scroll_vertically (const float &amount) |
Programmatically scroll the page vertically. More... | |
void | scroll_horizontally (const float &amount) |
Programmatically scroll the page horizontally. More... | |
Static Public Member Functions | |
static status_pane & | add (form &fm, const float &thickness) |
Create a side pane. More... | |
static containers::status_pane & | get (form &fm) |
Get a reference to an existing side pane. More... | |
Additional Inherited Members | |
![]() | |
page (const page &)=delete | |
page & | operator= (const page &)=delete |
![]() | |
impl & | _d_page |
Reference to page implementation. | |
Side pane container. To instantiate and add to a container use the add static method.
The side pane is essentially a special left side pane that extends into the title bar. Hence, refer to the status pane documentation remarks for additional information relating to all side panes.
liblec::lecui::containers::side_pane::side_pane | ( | form & | fm, |
const float & | thickness | ||
) |
Class constructor.
fm | A reference to the form. |
thickness | The thickness of the side pane. |
Never to be called directly. This is called interfally by the library when the add static method is called.
|
static |
Create a side pane.
fm | The form to place it in. |
thickness | The thickness of the side pane. |
Side panes are transparent by default, and have no scroll bars. A background can be added by using a rectangle widget. Ensure that there is a maximum of one side pane per form and that there isn't a left status pane. Adding more than one side pane leads to undefined behavior, same with adding a left status pane together with a side pane since a side pane is really a special left side pane.
|
static |
Get a reference to an existing side pane.
fm | The form the container is in. |
Throws on failure. For faster coding and more readable code consider calling this static method through the helper macro provided (get_side_pane).