aboutsummaryrefslogtreecommitdiff
path: root/src/ui/window.hpp
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2018-11-27 21:12:10 +0800
committerGitHub <noreply@github.com>2018-11-27 21:12:10 +0800
commitee22597122612cd75fe62f5d808cb51478373fad (patch)
tree19b39da16f155451d5817e82e045d69d7410acbe /src/ui/window.hpp
parent30333294fcd5917a9f3572f0c4c6dfc2ec429a3c (diff)
parent5b770e3bf0f3f9e22454d9e092630b22f5916ebe (diff)
downloadcru-ee22597122612cd75fe62f5d808cb51478373fad.tar.gz
cru-ee22597122612cd75fe62f5d808cb51478373fad.tar.bz2
cru-ee22597122612cd75fe62f5d808cb51478373fad.zip
Merge pull request #26 from crupest/3-scrollview
Develop scrollview.
Diffstat (limited to 'src/ui/window.hpp')
-rw-r--r--src/ui/window.hpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/ui/window.hpp b/src/ui/window.hpp
index d98e60e2..e82aa585 100644
--- a/src/ui/window.hpp
+++ b/src/ui/window.hpp
@@ -1,8 +1,10 @@
#pragma once
+// ReSharper disable once CppUnusedIncludeDirective
+#include "pre.hpp"
+
#include "system_headers.hpp"
#include <map>
-#include <list>
#include <memory>
#include "control.hpp"
@@ -208,15 +210,6 @@ namespace cru::ui
void SetSizeFitContent(const Size& max_size = Size(1000, 1000));
- //*************** region: functions ***************
-
- //Refresh control list.
- //It should be invoked every time a control is added or removed from the tree.
- void RefreshControlList();
-
- //Get the most top control at "point".
- Control* HitTest(const Point& point);
-
//*************** region: focus ***************
@@ -277,7 +270,8 @@ namespace cru::ui
void OnMouseLeaveInternal();
void OnMouseDownInternal(MouseButton button, POINT point);
void OnMouseUpInternal(MouseButton button, POINT point);
-
+
+ void OnMouseWheelInternal(short delta, POINT point);
void OnKeyDownInternal(int virtual_code);
void OnKeyUpInternal(int virtual_code);
void OnCharInternal(wchar_t c);
@@ -320,8 +314,6 @@ namespace cru::ui
Window* parent_window_ = nullptr;
std::shared_ptr<graph::WindowRenderTarget> render_target_{};
- std::list<Control*> control_list_{};
-
Control* mouse_hover_control_ = nullptr;
bool window_focus_ = false;