YggdrasilWM  0.1.1
A tiny window manager coded in C++
MasterLayoutManager.hpp
Go to the documentation of this file.
1 
27 #ifndef YGGDRASILWM_MASTERLAYOUTMANAGER_HPP
28 #define YGGDRASILWM_MASTERLAYOUTMANAGER_HPP
30 class MasterSpace;
32  MasterLayoutManager(Display* display,
33  Window root,
34  int sizeX,
35  int sizeY,
36  int posX,
37  int posY,
38  int borderSize,
39  int gap,
40  int barHeight);
41  ~MasterLayoutManager() override = default;
42  void updateGeometry(unsigned int sizeX, unsigned int sizeY, unsigned int posX, unsigned int posY) override;
43  void reSize(const Point &size,const Point &pos) override;
44  void addClient(std::shared_ptr<Client> client) override;
45  void removeClient(Client *client) override;
46 private:
47  std::unique_ptr<MasterSpace> rootSpace_;
48 };
49 
50 #endif // YGGDRASILWM_MASTERLAYOUTMANAGER_HPP
LayoutManager class header.
The Client class is responsible for managing the client windows. It creates a frame around the client...
Definition: Client.hpp:47
LayoutManager class Interface for the layout managers.
Definition: LayoutManager.hpp:42
Definition: MasterLayoutManager.hpp:31
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
Definition: MasterLayoutManager.cpp:43
void addClient(std::shared_ptr< Client > client) override
add a client to the layout
Definition: MasterLayoutManager.cpp:35
MasterLayoutManager(Display *display, Window root, int sizeX, int sizeY, int posX, int posY, int borderSize, int gap, int barHeight)
Definition: MasterLayoutManager.cpp:47
void reSize(const Point &size, const Point &pos) override
Definition: MasterLayoutManager.cpp:39
void removeClient(Client *client) override
remove a client from the layout
Definition: MasterLayoutManager.cpp:31
~MasterLayoutManager() override=default
std::unique_ptr< MasterSpace > rootSpace_
Definition: MasterLayoutManager.hpp:47
Definition: MasterSpace.hpp:34
Point struct This struct represents a 2D point.
Definition: Point.hpp:8