mirror of https://github.com/buggins/dlangui.git
showCaretBlinking - property for editors
This commit is contained in:
parent
47411b724c
commit
48a0408271
|
@ -960,9 +960,14 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction
|
||||||
protected long _lastBlinkStartTs;
|
protected long _lastBlinkStartTs;
|
||||||
protected bool _caretBlinks = true;
|
protected bool _caretBlinks = true;
|
||||||
|
|
||||||
void showCaretBlinking(bool blinks) {
|
/// when true, enables caret blinking, otherwise it's always visible
|
||||||
|
@property void showCaretBlinking(bool blinks) {
|
||||||
_caretBlinks = blinks;
|
_caretBlinks = blinks;
|
||||||
}
|
}
|
||||||
|
/// when true, enables caret blinking, otherwise it's always visible
|
||||||
|
@property bool showCaretBlinking() {
|
||||||
|
return _caretBlinks;
|
||||||
|
}
|
||||||
|
|
||||||
protected void startCaretBlinking() {
|
protected void startCaretBlinking() {
|
||||||
if (window) {
|
if (window) {
|
||||||
|
|
Loading…
Reference in New Issue