mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-12-28 11:49:48 +01:00
27 lines
508 B
C++
27 lines
508 B
C++
|
#pragma once
|
||
|
|
||
|
#include <unordered_map>
|
||
|
|
||
|
#include "../defines.hpp"
|
||
|
|
||
|
struct SDrawingContext {
|
||
|
xcb_gcontext_t GContext;
|
||
|
xcb_font_t Font;
|
||
|
};
|
||
|
|
||
|
class CStatusBar {
|
||
|
public:
|
||
|
|
||
|
EXPOSED_MEMBER(WindowID, xcb_window_t, i);
|
||
|
|
||
|
void draw();
|
||
|
void setup(Vector2D, Vector2D);
|
||
|
|
||
|
private:
|
||
|
Vector2D m_vecSize;
|
||
|
Vector2D m_vecPosition;
|
||
|
|
||
|
xcb_pixmap_t m_iPixmap;
|
||
|
|
||
|
std::unordered_map<std::string, SDrawingContext> m_mContexts;
|
||
|
};
|