From 48a0408271a4c10fe366a3f67099e61ba2598ce3 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Mon, 25 Sep 2017 10:37:59 +0300 Subject: [PATCH] showCaretBlinking - property for editors --- src/dlangui/widgets/editors.d | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/dlangui/widgets/editors.d b/src/dlangui/widgets/editors.d index eaf49ab2..5624e7e8 100644 --- a/src/dlangui/widgets/editors.d +++ b/src/dlangui/widgets/editors.d @@ -960,8 +960,13 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction protected long _lastBlinkStartTs; protected bool _caretBlinks = true; - void showCaretBlinking(bool blinks) { - _caretBlinks = blinks; + /// when true, enables caret blinking, otherwise it's always visible + @property void showCaretBlinking(bool blinks) { + _caretBlinks = blinks; + } + /// when true, enables caret blinking, otherwise it's always visible + @property bool showCaretBlinking() { + return _caretBlinks; } protected void startCaretBlinking() {