YggdrasilWM
0.1.1
A tiny window manager coded in C++
|
#include <Bar.hpp>
Public Member Functions | |
Bar () | |
~Bar () | |
void | init (std::shared_ptr< ConfigDataBar > configData, std::shared_ptr< TSBarsData > tsData) |
void | draw () |
Window | getWindow () const |
unsigned int | getSizeX () const |
unsigned int | getSizeY () const |
void | addWidget (void *handle, std::shared_ptr< ConfigDataWidget >) |
const std::unordered_map< Window, Widget * > & | getWidgets () const |
Private Attributes | |
std::shared_ptr< ConfigDataBar > | configData |
std::unordered_map< Window, Widget * > | widgets |
std::shared_ptr< TSBarsData > | tsData |
Display * | display |
Window | window |
Window | root |
unsigned int | sizeX |
unsigned int | sizeY |
int | pos |
unsigned long | BGColor |
unsigned long | FGColor |
unsigned long | borderColor |
unsigned int | borderSize |
std::string | font |
Bar::Bar | ( | ) |
Yb dP 8 w 8 Yb dP 8b d8 YbdP .d88 .d88 .d88 8d8b .d88 d88b w 8 Yb db dP 8YbmdP8 YP 8 8 8 8 8 8 8P 8 8 Yb. 8 8 YbdPYbdP 8 " 8 88
Y88 Y88
Y88 8 `Y88 Y88P 8 8 YP YP 8 8 wwdP wwdP Yggdrasil Window Manager https://github.com/corecaps/YggdrasilWM Copyright (C) 2024 jgarcia jgarc ia@s tuden t.42 .frcorec aps@ gmail .com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Bar::~Bar | ( | ) |
void Bar::addWidget | ( | void * | handle, |
std::shared_ptr< ConfigDataWidget > | widgetConfig | ||
) |
References display, Logger::GetInstance(), Widget::initialize(), L_ERROR, L_INFO, Logger::Log(), sizeY, widgets, and window.
void Bar::draw | ( | ) |
const std::unordered_map< Window, Widget * > & Bar::getWidgets | ( | ) | const |
void Bar::init | ( | std::shared_ptr< ConfigDataBar > | configData, |
std::shared_ptr< TSBarsData > | tsData | ||
) |
References borderSize, configData, display, draw(), WindowManager::getDisplay(), WindowManager::getInstance(), root, sizeX, sizeY, tsData, and window.
|
private |
|
private |
|
private |
Referenced by init().
|
private |
Referenced by init().
|
private |
Referenced by addWidget(), draw(), and init().
|
private |
|
private |
|
private |
|
private |
Referenced by init().
|
private |
Referenced by getSizeX(), and init().
|
private |
Referenced by addWidget(), getSizeY(), and init().
|
private |
Referenced by init().
|
private |
Referenced by addWidget(), draw(), and getWidgets().
|
private |
Referenced by addWidget(), getWindow(), and init().