acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
window.h
1//
2// From acme/user/nano/window by camilo on 2022-03-11 14:42 <3ThomasBorregaardSorensen!!
3//
4#pragma once
5
6
7#include "acme/user/micro/window_implementation.h"
8#include <winrt/Windows.UI.Popups.h>
9
10
11namespace universal_windows
12{
13
14
15 namespace nano
16 {
17
18
19 namespace user
20 {
21
22
23 class CLASS_DECL_ACME window :
24 virtual public ::micro::window_implementation
25 {
26 public:
27
28
29
30
31 ::winrt::Windows::UI::Popups::MessageDialog m_messagedialog = nullptr;
32
33
34 window();
35 ~window() override;
36
37
38 //void on_initialize_particle() override;
39
40 void create() override;
41
42 void display() override;
43
44 //void aaa_message_loop() override;
45
46 //void draw(::nano::graphics::context * pnanodevice) override;
47
48 //void on_draw(::nano::graphics::context * pnanodevice) override;
49
50 //void on_char(::i32 iChar) override;
51
52 //bool is_active() override;
53 //void set_active() override;
54
55 //void draw_children(::nano::graphics::context * pnanodevice) override;
56
57 //void delete_drawing_objects() override;
58 //bool get_dark_mode() override;
59
60 //void create_drawing_objects() override;
61 //void update_drawing_objects() override;
62
63 //::micro::child * hit_test(::i32 x, ::i32 y) override;
64 //void add_child(::micro::child * pchild) override;
65 //::micro::child * get_child_by_id(const ::atom & atom);
66
67 //::atom get_result() override;
68
69 //void on_mouse_move(::i32 x, ::i32 y) override;
70 //void on_left_button_down(::i32 x, ::i32 y) override;
71 //void on_left_button_up(::i32 x, ::i32 y) override;
72 //void on_click(const ::atom & atom, ::i32 x, ::i32 y) override;
73 //void on_right_button_down(::i32 x, ::i32 y) override;
74 //void on_right_button_up(::i32 x, ::i32 y) override;
75 //void on_right_click(const ::atom & atom, ::i32 x, ::i32 y) override;
76
77 //void move_to(::i32 x, ::i32 y) override;
78
79 //virtual void on_create();
80
81 //void destroy() override;
82
83 //void redraw() override;
84
85 //void get_client_rectangle(::i32_rectangle & rectangle) override;
86
87 //void get_window_rectangle(::i32_rectangle & rectangle) override;
88
89 //void set_mouse_capture() override;
90
91 //bool has_mouse_capture() const override;
92
93 //void release_mouse_capture() override;
94
95 //void set_cursor(enum_cursor ecursor) override;
96
97
98 //void add_button(const ::scoped_string & scopedstrText, enum_dialog_result edialogresult);
99
100
101 //void display_temporary_file_with_text(const ::scoped_string & scopedstr);
102
103
104 //::pointer<::nano::graphics::context>create_device();
105
106
107 };
108
109
110 } // namespace user
111
112
113 } // namespace nano
114
115
116} // namespace universal_windows
117
118
119