aboutsummaryrefslogtreecommitdiff
path: root/CruUI/application.h
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/application.h
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/application.h')
-rw-r--r--CruUI/application.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/CruUI/application.h b/CruUI/application.h
index 1ce6f035..106e7171 100644
--- a/CruUI/application.h
+++ b/CruUI/application.h
@@ -28,6 +28,11 @@ namespace cru
class TimerManager;
+ struct CaretInfo
+ {
+ std::chrono::milliseconds caret_blink_duration;
+ float half_caret_width;
+ };
class GodWindow : public Object
{
@@ -101,6 +106,11 @@ namespace cru
return god_window_.get();
}
+ CaretInfo GetCaretInfo() const
+ {
+ return caret_info_;
+ }
+
#ifdef CRU_DEBUG_DRAW_CONTROL_BORDER
Microsoft::WRL::ComPtr<ID2D1Brush> GetDebugBorderBrush() const
{
@@ -121,6 +131,8 @@ namespace cru
#ifdef CRU_DEBUG_DRAW_CONTROL_BORDER
Microsoft::WRL::ComPtr<ID2D1Brush> debug_border_brush_;
#endif
+
+ CaretInfo caret_info_;
};