summaryrefslogtreecommitdiff
path: root/plugingui/checkbox.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-12 11:07:22 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-12 11:07:22 +0100
commitcec1d9ea562e3d52c98f1219db5e186943f2f0d6 (patch)
tree3a66ff06ef16cce96e215644032e6c9fac2cbe8a /plugingui/checkbox.cc
parentdc33f15a6b968139779c2b7d2003d3ef6e7d5748 (diff)
Refactor/introduce widget and windiow redraw/dirty mechanism to eradicate unnecessary rendering passes during event handling.
Diffstat (limited to 'plugingui/checkbox.cc')
-rw-r--r--plugingui/checkbox.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugingui/checkbox.cc b/plugingui/checkbox.cc
index bada623..2a17635 100644
--- a/plugingui/checkbox.cc
+++ b/plugingui/checkbox.cc
@@ -62,13 +62,13 @@ void CheckBox::buttonEvent(ButtonEvent* buttonEvent)
middle = true;
}
- repaintEvent(nullptr);
+ redraw();
}
void CheckBox::setText(std::string text)
{
_text = text;
- repaintEvent(nullptr);
+ redraw();
}
void CheckBox::keyEvent(KeyEvent* keyEvent)
@@ -85,7 +85,7 @@ void CheckBox::keyEvent(KeyEvent* keyEvent)
middle = true;
}
- repaintEvent(nullptr);
+ redraw();
}
}
@@ -129,7 +129,7 @@ void CheckBox::mouseLeaveEvent()
if(buttonDown)
{
middle = false;
- repaintEvent(nullptr);
+ redraw();
}
}
@@ -139,7 +139,7 @@ void CheckBox::mouseEnterEvent()
if(buttonDown)
{
middle = true;
- repaintEvent(nullptr);
+ redraw();
}
}
@@ -152,7 +152,7 @@ void CheckBox::internalSetChecked(bool checked)
state = checked;
stateChangedNotifier(state);
- repaintEvent(nullptr);
+ redraw();
}
} // GUI::