#include <layers_stack.h>
Application layers stack class.
Definition at line 16 of file layers_stack.h.
◆ layers_stack()
scl::layers_stack::layers_stack |
( |
| ) |
|
|
default |
Layers stack kmethods.
Lasyers stack default constructor.
◆ ~layers_stack()
scl::layers_stack::~layers_stack |
( |
| ) |
|
Lasyers stack default destructor.
Definition at line 12 of file layers_stack.cpp.
13{
14 for (layer *layer : Layers)
15 delete layer;
16}
◆ begin()
iterator scl::layers_stack::begin |
( |
| ) |
|
|
inline |
Data getters/setters.
Definition at line 68 of file layers_stack.h.
68{ return Layers.begin(); }
◆ cbegin()
const_iterator scl::layers_stack::cbegin |
( |
| ) |
const |
|
inline |
◆ cend()
const_iterator scl::layers_stack::cend |
( |
| ) |
const |
|
inline |
◆ crbegin()
const_reverse_iterator scl::layers_stack::crbegin |
( |
| ) |
const |
|
inline |
◆ crend()
const_reverse_iterator scl::layers_stack::crend |
( |
| ) |
const |
|
inline |
◆ end()
iterator scl::layers_stack::end |
( |
| ) |
|
|
inline |
◆ Pop()
void scl::layers_stack::Pop |
( |
layer * |
Layer | ) |
|
- Pop common layer from stack function.
- Parameters
-
Layer | - layer to push to stack. |
- Returns
- None.
Definition at line 30 of file layers_stack.cpp.
31{
32 iterator it = std::find(Layers.begin(), Layers.begin() + LayerIndex, Layer);
33 if (it != Layers.end())
34 {
35 Layers.erase(it);
36 LayerIndex--;
37 }
38 Layer->OnClose();
39}
◆ PopOverlay()
void scl::layers_stack::PopOverlay |
( |
layer * |
Layer | ) |
|
- Pop overlay layer (e.g. GUI) from stack function.
- Parameters
-
Layer | - layer to push to stack. |
- Returns
- None.
Definition at line 41 of file layers_stack.cpp.
42{
43 iterator it = std::find(Layers.begin() + LayerIndex, Layers.end(), Layer);
44 if (it != Layers.end()) Layers.erase(it);
45 Layer->OnClose();
46}
◆ Push()
void scl::layers_stack::Push |
( |
layer * |
Layer | ) |
|
- Push common layer to stack function.
- Parameters
-
Layer | - layer to push to stack. |
- Returns
- None.
Definition at line 18 of file layers_stack.cpp.
19{
20 Layer->OnInit();
21 Layers.emplace(Layers.begin() + (LayerIndex++), Layer);
22}
◆ PushOverlay()
void scl::layers_stack::PushOverlay |
( |
layer * |
Layer | ) |
|
- Push overlay layer (e.g. GUI) to stack function.
- Parameters
-
Layer | - layer to push to stack. |
- Returns
- None.
Definition at line 24 of file layers_stack.cpp.
25{
26 Layer->OnInit();
27 Layers.emplace_back(Layer);
28}
◆ rbegin()
reverse_iterator scl::layers_stack::rbegin |
( |
| ) |
|
|
inline |
◆ rend()
reverse_iterator scl::layers_stack::rend |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: