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

#include <Widget.hpp>

Collaboration diagram for Widget:
Collaboration graph

Public Member Functions

 Widget ()=default
 
virtual ~Widget ()=0
 
virtual Window initialize (Display *display, Window parentWindow, int x, int y, int width, int height, std::string font_, unsigned long bgColor_, unsigned long fgColor_, int fontSize)=0
 
virtual void draw ()=0
 
virtual void handleEvent (XEvent &event)=0
 
virtual void shutdown ()=0
 
virtual void setPosition (int x, int y)=0
 
virtual void setSize (int width, int height)=0
 
virtual std::vector< std::string > registerDataKey ()=0
 
virtual void unregisterDataKey (const std::string &key)=0
 
virtual void updateData (const std::string &key, const std::string &value)=0
 

Detailed Description

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 88Y88 Y88Y88 8 `Y88 Y88P 8 8 YP YP 8 8 wwdP wwdP Yggdrasil Window Manager https://github.com/corecaps/YggdrasilWM Copyright (C) 2024 jgarcia jgarc.nosp@m.ia@s.nosp@m.tuden.nosp@m.t.42.nosp@m..fr corec.nosp@m.aps@.nosp@m.gmail.nosp@m..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/.

Constructor & Destructor Documentation

◆ Widget()

Widget::Widget ( )
default

◆ ~Widget()

virtual Widget::~Widget ( )
pure virtual

Member Function Documentation

◆ draw()

virtual void Widget::draw ( )
pure virtual

◆ handleEvent()

virtual void Widget::handleEvent ( XEvent &  event)
pure virtual

◆ initialize()

virtual Window Widget::initialize ( Display *  display,
Window  parentWindow,
int  x,
int  y,
int  width,
int  height,
std::string  font_,
unsigned long  bgColor_,
unsigned long  fgColor_,
int  fontSize 
)
pure virtual

Referenced by Bar::addWidget().

Here is the caller graph for this function:

◆ registerDataKey()

virtual std::vector<std::string> Widget::registerDataKey ( )
pure virtual

Referenced by Bars::subscribeWidget().

Here is the caller graph for this function:

◆ setPosition()

virtual void Widget::setPosition ( int  x,
int  y 
)
pure virtual

◆ setSize()

virtual void Widget::setSize ( int  width,
int  height 
)
pure virtual

◆ shutdown()

virtual void Widget::shutdown ( )
pure virtual

◆ unregisterDataKey()

virtual void Widget::unregisterDataKey ( const std::string &  key)
pure virtual

◆ updateData()

virtual void Widget::updateData ( const std::string &  key,
const std::string &  value 
)
pure virtual

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