New DockspaceWidget Stable
This commit is contained in:
parent
7158be5890
commit
9e7704a446
8 changed files with 339 additions and 7 deletions
|
|
@ -16,7 +16,13 @@ ButtonWidget::ButtonWidget(const std::string& label, const tp::RectF& aArea) {
|
|||
|
||||
bool ButtonWidget::isFired() { return this->isReleased(); }
|
||||
|
||||
void ButtonWidget::eventProcess(const Events&) { mLabel.setArea(this->mArea); }
|
||||
void ButtonWidget::eventProcess(const Events&) {
|
||||
mLabel.setArea(this->mArea);
|
||||
|
||||
if (isFired()) {
|
||||
mCallback();
|
||||
}
|
||||
}
|
||||
|
||||
void ButtonWidget::eventDraw(Canvas& canvas) {
|
||||
if (this->isHolding()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue