aboutsummaryrefslogtreecommitdiff
path: root/CruUI/application.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-24 00:16:53 +0800
committercrupest <crupest@outlook.com>2018-09-24 00:16:53 +0800
commit977c766e2337fea238804b8d8b97659361391ed0 (patch)
treeff3438e5b0517c52412cfa497d1d2a0ed314cf79 /CruUI/application.h
parentbe84ddd03d3b59c0c27aa538d5ef5129f94d511c (diff)
downloadcru-977c766e2337fea238804b8d8b97659361391ed0.tar.gz
cru-977c766e2337fea238804b8d8b97659361391ed0.tar.bz2
cru-977c766e2337fea238804b8d8b97659361391ed0.zip
Develop basic function of textbox.
Diffstat (limited to 'CruUI/application.h')
-rw-r--r--CruUI/application.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/CruUI/application.h b/CruUI/application.h
index 521c3436..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,9 +106,9 @@ namespace cru
return god_window_.get();
}
- std::chrono::milliseconds GetCaretBlinkDuration() const
+ CaretInfo GetCaretInfo() const
{
- return caret_blink_duration_;
+ return caret_info_;
}
#ifdef CRU_DEBUG_DRAW_CONTROL_BORDER
@@ -127,7 +132,7 @@ namespace cru
Microsoft::WRL::ComPtr<ID2D1Brush> debug_border_brush_;
#endif
- std::chrono::milliseconds caret_blink_duration_;
+ CaretInfo caret_info_;
};