2021-11-18 18:04:09 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "defines.hpp"
|
2021-11-20 10:04:14 +01:00
|
|
|
#include "utilities/Workspace.hpp"
|
2021-11-18 18:04:09 +01:00
|
|
|
|
|
|
|
class CWindow {
|
|
|
|
public:
|
|
|
|
CWindow();
|
|
|
|
~CWindow();
|
|
|
|
|
|
|
|
void move(Vector2D dest);
|
|
|
|
void moveByDelta(Vector2D delta);
|
|
|
|
|
|
|
|
void resize(Vector2D size);
|
|
|
|
void resize(float percx, float percy);
|
|
|
|
|
|
|
|
std::string getName();
|
|
|
|
|
|
|
|
// Tells the window manager to reload the window's params
|
|
|
|
EXPOSED_MEMBER(Dirty, bool, b);
|
|
|
|
|
|
|
|
EXPOSED_MEMBER(Size, Vector2D, vec);
|
2021-11-18 22:08:28 +01:00
|
|
|
EXPOSED_MEMBER(EffectiveSize, Vector2D, vec);
|
|
|
|
EXPOSED_MEMBER(EffectivePosition, Vector2D, vec);
|
2021-11-18 18:04:09 +01:00
|
|
|
EXPOSED_MEMBER(Position, Vector2D, vec);
|
|
|
|
EXPOSED_MEMBER(IsFloating, bool, b);
|
|
|
|
EXPOSED_MEMBER(Drawable, xcb_drawable_t, i);
|
2021-11-20 10:04:14 +01:00
|
|
|
|
|
|
|
// Workspace pointer
|
|
|
|
EXPOSED_MEMBER(WorkspaceID, int, i);
|
2021-11-18 18:04:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
};
|