YggdrasilWM
0.1.1
A tiny window manager coded in C++
Grow.hpp
Go to the documentation of this file.
1
27
#ifndef YGGDRASILWM_GROW_HPP
28
#define YGGDRASILWM_GROW_HPP
29
#include "
Commands/CommandBase.hpp
"
30
extern
"C"
{
31
#include <X11/Xlib.h>
32
}
37
struct
DeserializedXKeyEvent
{
38
int
inc
;
39
Window
subwindow
;
40
Window
window
;
41
unsigned
int
state
;
42
unsigned
int
keycode
;
43
};
44
45
class
Grow
:
public
CommandBase
{
46
public
:
47
Grow
();
48
~Grow
()
override
=
default
;
54
void
execute
(
const
std::string &args)
override
;
55
static
DeserializedXKeyEvent
deserializeXKeyEvent
(
const
std::string &serializedEvent);
56
};
57
#endif
//YGGDRASILWM_GROW_HPP
CommandBase.hpp
CommandBase class header.
CommandBase
Definition:
CommandBase.hpp:35
Grow
Grow a window.
Definition:
Grow.hpp:45
Grow::execute
void execute(const std::string &args) override
Each child class must implement this interface.
Definition:
Grow.cpp:37
Grow::deserializeXKeyEvent
static DeserializedXKeyEvent deserializeXKeyEvent(const std::string &serializedEvent)
Definition:
Grow.cpp:50
Grow::Grow
Grow()
Definition:
Grow.cpp:33
Grow::~Grow
~Grow() override=default
DeserializedXKeyEvent
Definition:
Grow.hpp:37
DeserializedXKeyEvent::window
Window window
Definition:
Grow.hpp:40
DeserializedXKeyEvent::state
unsigned int state
Definition:
Grow.hpp:41
DeserializedXKeyEvent::inc
int inc
Definition:
Grow.hpp:38
DeserializedXKeyEvent::subwindow
Window subwindow
Definition:
Grow.hpp:39
DeserializedXKeyEvent::keycode
unsigned int keycode
Definition:
Grow.hpp:42
inc
Commands
Grow.hpp
Generated by
1.9.1