#include <MasterLayoutManager.hpp>
|
| MasterLayoutManager (Display *display, Window root, int sizeX, int sizeY, int posX, int posY, int borderSize, int gap, int barHeight) |
|
| ~MasterLayoutManager () override=default |
|
void | updateGeometry (unsigned int sizeX, unsigned int sizeY, unsigned int posX, unsigned int posY) override |
| update the geometry of the layout used to resize the layout More...
|
|
void | reSize (const Point &size, const Point &pos) override |
|
void | addClient (std::shared_ptr< Client > client) override |
| add a client to the layout More...
|
|
void | removeClient (Client *client) override |
| remove a client from the layout More...
|
|
◆ MasterLayoutManager()
MasterLayoutManager::MasterLayoutManager |
( |
Display * |
display, |
|
|
Window |
root, |
|
|
int |
sizeX, |
|
|
int |
sizeY, |
|
|
int |
posX, |
|
|
int |
posY, |
|
|
int |
borderSize, |
|
|
int |
gap, |
|
|
int |
barHeight |
|
) |
| |
|
private |
56 LayoutManager(display,root,sizeX,sizeY,posX,posY,gap,barHeight) {
57 Point pos(posX, posY);
58 Point size(sizeX - borderSize, sizeY - borderSize);
59 this->
rootSpace_ = std::make_unique<MasterSpace>(pos, size,0,
true,
true);
LayoutManager(Display *display, Window root, int size_x, int size_y, int pos_x, int pos_y, int gap, int border_size)
Construct a new LayoutManager object.
Definition: LayoutManager.cpp:29
std::unique_ptr< MasterSpace > rootSpace_
Definition: MasterLayoutManager.hpp:47
Point struct This struct represents a 2D point.
Definition: Point.hpp:8
References rootSpace_.
◆ ~MasterLayoutManager()
MasterLayoutManager::~MasterLayoutManager |
( |
| ) |
|
|
overrideprivatedefault |
◆ addClient()
void MasterLayoutManager::addClient |
( |
std::shared_ptr< Client > |
client | ) |
|
|
overrideprivatevirtual |
◆ removeClient()
void MasterLayoutManager::removeClient |
( |
Client * |
client | ) |
|
|
overrideprivatevirtual |
remove a client from the layout
- Parameters
-
Implements LayoutManager.
◆ reSize()
void MasterLayoutManager::reSize |
( |
const Point & |
size, |
|
|
const Point & |
pos |
|
) |
| |
|
overrideprivatevirtual |
◆ updateGeometry()
void MasterLayoutManager::updateGeometry |
( |
unsigned int |
sizeX, |
|
|
unsigned int |
sizeY, |
|
|
unsigned int |
posX, |
|
|
unsigned int |
posY |
|
) |
| |
|
overrideprivatevirtual |
update the geometry of the layout used to resize the layout
Implements LayoutManager.
◆ border_size_
int LayoutManager::border_size_ |
|
protectedinherited |
◆ display_
Display* LayoutManager::display_ |
|
protectedinherited |
◆ gap_
◆ rootSpace_
std::unique_ptr<MasterSpace> MasterLayoutManager::rootSpace_ |
|
private |
◆ rootWindow_
Window LayoutManager::rootWindow_ |
|
protectedinherited |
◆ screen_height_
int LayoutManager::screen_height_ |
|
protectedinherited |
◆ screen_width_
int LayoutManager::screen_width_ |
|
protectedinherited |
◆ space_count_
int LayoutManager::space_count_ |
|
protectedinherited |
The documentation for this class was generated from the following files: