-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindow.cpp
More file actions
52 lines (38 loc) · 918 Bytes
/
window.cpp
File metadata and controls
52 lines (38 loc) · 918 Bytes
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
45
46
47
48
49
50
51
52
//
// window.cpp
// coreui
//
// Created by George on 29/06/2019.
//
#include "window.h"
namespace coreui {
std::string Window::title() {
return _title;
}
std::string Window::title(std::string title) {
return _title = title;
}
int Window::width() {
return _width;
}
int Window::height() {
return _height;
}
View* Window::view() {
return _view;
}
View* Window::view(View* view) {
return _view = view;
}
Window& Window::add(View* view) {
return *this;
}
Window::Window(std::string title) : _title(title) {}
Window::Window(int width, int height) : _width(width), _height(height) {}
Window::Window(std::string title, int width, int height) : _title(title), _width(width), _height(height) {}
Window::Window(View* view) : _view(view) {}
Window::Window(View view) {}
Window::Window() {
showNativeWindow();
}
}