acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
aaa_simple_ui.h
1#pragma once
2
3
4namespace os
5{
6
7
8 class CLASS_DECL_ACME simple_ui :
9 virtual public ::user::interaction
10 {
11 public:
12
13
14 string m_strTitle;
15 string m_strWindowClass;
16
17 ::i32 m_w;
18 ::i32 m_h;
19 ::i32_size m_size;
20 ::i32_point m_point;
21 bool m_bLButtonDown;
22 ::i32_point m_pointLButtonDown;
23 ::i32_point m_pointLButtonDownPos;
24
25 bool m_bShiftKey;
26
27 oswindow m_window;
28 bool m_bDrag;
29 manual_reset_happening m_happeningReady;
30
31
32 ::i32_rectangle m_rectangleDesktop;
33
34 bool m_bNoDecorations;
35
36 i32_point m_pointCursor;
37
38
39 simple_ui(::particle * pparticle);
40 virtual ~simple_ui();
41
42
43
44 virtual void get_cursor_position(::i32_point * ppt);
45
46 //void draw(ID2D1DeviceContext * pctx);
47
48
49
50 //virtual string interactive_auth(::i32_rectangle * lprect, string & strUsername, string & strSessId, string & strServerId, string & strLoginUrl, string strFontopusServer);
51
52
53 virtual bool create_window(const ::i32_rectangle * lpcrect);
54
55 virtual bool prepare_window(const ::i32_rectangle * lpcrect);
56
57
58 virtual bool show_window(bool bShow = true);
59
60
61 virtual bool destroy_window();
62
63 virtual bool run_loop();
64
65
66 virtual void window_rectangle(::i32_rectangle * prectangle);
67 virtual void this->rectangle(::i32_rectangle * prectangle);
68
69
70 /*
71 virtual bool on_lbutton_up(::i32 x, ::i32 y);
72 virtual bool on_lbutton_down(::i32 x, ::i32 y);
73 virtual bool on_mouse_move(::i32 x, ::i32 y);
74 virtual bool on_char(::i32 iKey, const ::scoped_string & scopedstrChar);
75 */
76
77 //virtual bool on_windows_key_down(wparam wparam, lparam lparam);
78 //virtual bool on_windows_key_up(wparam wparam, lparam lparam);
79
80
81 virtual bool set_window_position(::i32 x, ::i32 y, ::i32 cx, ::i32 cy, bool bShow);
82 virtual bool move_window(::i32 x, ::i32 y);
83
84 void viewport_client_to_screen(::i32_point * ppt);
85 void viewport_screen_to_client(::i32_point * ppt);
86
87 void client_to_screen(::i32_point * ppt);
88 void screen_to_client(::i32_point * ppt);
89
90 void client_to_screen(::i32_rectangle * prectangle);
91 void screen_to_client(::i32_rectangle * prectangle);
92
93 void window_rectangle(::i32_rectangle * prectangle);
94
95 virtual void set_capture();
96 virtual void release_capture();
97
98
99 };
100
101
102
103
104} // namespace account
105
106
107
108
109
110
Definition aaa_manual_reset_event.h:26
Definition particle.h:95