diff options
author | Benji Dial <benji@benjidial.net> | 2024-07-29 21:26:17 -0400 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-07-29 21:26:17 -0400 |
commit | c34b9191f258ddc15c5b45c000cd0266aed9dead (patch) | |
tree | 88e66004d1514d6f22b4366fc415b467784fee63 /applications/goldman/source/window.hpp | |
parent | e6c3a80b01ffb52079783cddd9be6d392d0f7039 (diff) | |
download | hilbert-os-c34b9191f258ddc15c5b45c000cd0266aed9dead.tar.gz |
window borders
Diffstat (limited to 'applications/goldman/source/window.hpp')
-rw-r--r-- | applications/goldman/source/window.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/applications/goldman/source/window.hpp b/applications/goldman/source/window.hpp index 4d5b0e1..5c2d7a0 100644 --- a/applications/goldman/source/window.hpp +++ b/applications/goldman/source/window.hpp @@ -4,6 +4,10 @@ struct window { + static constexpr int decorations_extra_width = 4; + static constexpr int decorations_extra_height = 18; + + daguerre::image<daguerre::hilbert_color> contents_with_decorations; daguerre::image<daguerre::hilbert_color> contents; int x; @@ -13,6 +17,12 @@ struct window { std::string title; - window() : x(0), y(0), is_shown(false) {} + void set_size(int width, int height); + void draw_decorations(bool top); + + inline window() : x(0), y(0), is_shown(false) { + set_size(0, 0); + draw_decorations(false); + } }; |