-
Notifications
You must be signed in to change notification settings - Fork 0
/
window.h
44 lines (38 loc) · 815 Bytes
/
window.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// window.h
// CoreUI
//
// Created by George on 29/06/2019.
//
#ifndef window_h
#define window_h
#include <iostream>
#include "view.h"
#include "platform/macOS/native_window_interface.h"
#define MIN_WIDTH 200
#define MIN_HEIGHT 150
namespace coreui {
class Window {
public:
std::string title();
std::string title(std::string title);
int width();
int height();
View* view();
View* view(View* view);
Window& add(View* view);
Window(std::string title);
Window(int width, int height);
Window(std::string title, int width, int height);
Window(View* view);
Window(View view);
Window();
~Window() = default;
private:
std::string _title;
int _width = MIN_WIDTH;
int _height = MIN_HEIGHT;
View* _view;
};
}
#endif /* window_h */