aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/control.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@outlook.com>2018-09-23 16:48:18 +0000
committerYuqian Yang <crupest@outlook.com>2018-09-23 16:48:18 +0000
commit001e1d955132a02a2f7effc841ab9e5ee425eda1 (patch)
tree1bfbdcc2a25316d6e85cc9b4527a1ec15841b502 /CruUI/ui/control.cpp
parent796ba6e1e816ec87a106f2f7b501e38c99f059e1 (diff)
parent9049f7674e0808cc3676543e0a95330a1657d10e (diff)
downloadcru-001e1d955132a02a2f7effc841ab9e5ee425eda1.tar.gz
cru-001e1d955132a02a2f7effc841ab9e5ee425eda1.tar.bz2
cru-001e1d955132a02a2f7effc841ab9e5ee425eda1.zip
Merge branch 'textboxdev' into 'master'
TextBox develop. See merge request crupest/CruUI!2
Diffstat (limited to 'CruUI/ui/control.cpp')
-rw-r--r--CruUI/ui/control.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/CruUI/ui/control.cpp b/CruUI/ui/control.cpp
index 25f7c028..8aec8640 100644
--- a/CruUI/ui/control.cpp
+++ b/CruUI/ui/control.cpp
@@ -472,6 +472,51 @@ namespace cru {
}
+ void Control::OnKeyDown(KeyEventArgs& args)
+ {
+ }
+
+ void Control::OnKeyUp(KeyEventArgs& args)
+ {
+ }
+
+ void Control::OnChar(CharEventArgs& args)
+ {
+ }
+
+ void Control::OnKeyDownCore(KeyEventArgs& args)
+ {
+ }
+
+ void Control::OnKeyUpCore(KeyEventArgs& args)
+ {
+ }
+
+ void Control::OnCharCore(CharEventArgs& args)
+ {
+ }
+
+ void Control::RaiseKeyDownEvent(KeyEventArgs& args)
+ {
+ OnKeyDownCore(args);
+ OnKeyDown(args);
+ key_down_event.Raise(args);
+ }
+
+ void Control::RaiseKeyUpEvent(KeyEventArgs& args)
+ {
+ OnKeyUpCore(args);
+ OnKeyUp(args);
+ key_up_event.Raise(args);
+ }
+
+ void Control::RaiseCharEvent(CharEventArgs& args)
+ {
+ OnCharCore(args);
+ OnChar(args);
+ char_event.Raise(args);
+ }
+
void Control::OnGetFocus(FocusChangeEventArgs& args)
{