YggdrasilWM  0.1.1
A tiny window manager coded in C++
LayoutManager Class Referenceabstract

LayoutManager class Interface for the layout managers. More...

#include <LayoutManager.hpp>

Inheritance diagram for LayoutManager:
Inheritance graph
Collaboration diagram for LayoutManager:
Collaboration graph

Public Member Functions

 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. More...
 
virtual ~LayoutManager ()=default
 
virtual void updateGeometry (unsigned int sizeX, unsigned int sizeY, unsigned int posX, unsigned int posY)=0
 update the geometry of the layout used to resize the layout More...
 
virtual void reSize (const Point &size, const Point &pos)=0
 
virtual void addClient (std::shared_ptr< Client > client)=0
 add a client to the layout More...
 
virtual void removeClient (Client *client)=0
 remove a client from the layout More...
 

Protected Attributes

int screen_width_
 
int screen_height_
 
int gap_
 
int border_size_
 
int space_count_
 
Display * display_
 
Window rootWindow_
 

Detailed Description

LayoutManager class Interface for the layout managers.

Constructor & Destructor Documentation

◆ LayoutManager()

LayoutManager::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.

Parameters
display
root
size_x
size_y
pos_x
pos_y
gap
border_size
bar_height
36  :
37  display_(display),
38  rootWindow_(root),
39  space_count_(0),
40  border_size_(borderSize),
41  gap_(gap),
42  screen_height_(0),
43  screen_width_(0) {}
int space_count_
Definition: LayoutManager.hpp:89
int gap_
Definition: LayoutManager.hpp:87
int border_size_
Definition: LayoutManager.hpp:88
int screen_height_
Definition: LayoutManager.hpp:86
Display * display_
Definition: LayoutManager.hpp:90
int screen_width_
Definition: LayoutManager.hpp:85
Window rootWindow_
Definition: LayoutManager.hpp:91

◆ ~LayoutManager()

virtual LayoutManager::~LayoutManager ( )
virtualdefault

Member Function Documentation

◆ addClient()

void LayoutManager::addClient ( std::shared_ptr< Client client)
pure virtual

add a client to the layout

Parameters
client

Implemented in TreeLayoutManager, and MasterLayoutManager.

◆ removeClient()

void LayoutManager::removeClient ( Client client)
pure virtual

remove a client from the layout

Parameters
client

Implemented in TreeLayoutManager, and MasterLayoutManager.

◆ reSize()

virtual void LayoutManager::reSize ( const Point size,
const Point pos 
)
pure virtual

Implemented in TreeLayoutManager, and MasterLayoutManager.

◆ updateGeometry()

void LayoutManager::updateGeometry ( unsigned int  sizeX,
unsigned int  sizeY,
unsigned int  posX,
unsigned int  posY 
)
pure virtual

update the geometry of the layout used to resize the layout

Implemented in TreeLayoutManager, and MasterLayoutManager.

Member Data Documentation

◆ border_size_

int LayoutManager::border_size_
protected

◆ display_

Display* LayoutManager::display_
protected

◆ gap_

int LayoutManager::gap_
protected

◆ rootWindow_

Window LayoutManager::rootWindow_
protected

◆ screen_height_

int LayoutManager::screen_height_
protected

◆ screen_width_

int LayoutManager::screen_width_
protected

◆ space_count_

int LayoutManager::space_count_
protected

The documentation for this class was generated from the following files: