32 lines
467 B
C++
32 lines
467 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
enum class WindowAction {
|
|
EXIT = 1,
|
|
FILE = 2,
|
|
HELP = 3,
|
|
MINIMIZE = 4,
|
|
CLOSE = 5,
|
|
};
|
|
|
|
struct WindowDecoration {
|
|
int x_offset;
|
|
int y_offset;
|
|
int width;
|
|
int height;
|
|
WindowAction action;
|
|
};
|
|
|
|
struct Window {
|
|
int id;
|
|
int x;
|
|
int y;
|
|
int width;
|
|
int height;
|
|
int background_color;
|
|
int foreground_color;
|
|
bool focused;
|
|
std::string title;
|
|
std::vector<WindowDecoration> window_decorations;
|
|
}; |