dockspce widget initial

This commit is contained in:
IlyaShurupov 2024-06-25 18:34:38 +03:00
parent 559c91a144
commit 7158be5890
8 changed files with 72 additions and 12 deletions

View file

@ -17,10 +17,13 @@ void Widget::procWrapper(const Events& events, const RectF& parentArea) {
checkClicked(events);
eventProcess(events);
if (mHandlesEvents) {
for (auto child : mChildWidgets) {
child->procWrapper(events, getArea());
eventProcess(events);
for (auto child : mChildWidgets) {
child->procWrapper(events, getArea());
}
}
}
@ -31,8 +34,8 @@ void Widget::drawWrapper(Canvas& canvas) {
// draw child widgets
canvas.pushClamp(this->mArea);
for (auto child : mChildWidgets) {
child->drawWrapper(canvas);
for (auto child = mChildWidgets.lastNode(); child; child = child->prev) {
child->data->drawWrapper(canvas);
}
canvas.popClamp();
}