New DockspaceWidget Stable

This commit is contained in:
IlyaShurupov 2024-06-25 23:27:21 +03:00 committed by Ilya Shurupov
parent 9cc4819524
commit 242cd93589
8 changed files with 339 additions and 7 deletions

View file

@ -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()) {