mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 09:34:59 +00:00
Start bringing up LibGUI properly (formerly Widgets.)
This commit is contained in:
parent
b91479d9b9
commit
8eae89a405
17 changed files with 258 additions and 33 deletions
|
@ -37,8 +37,6 @@ void GWidget::event(GEvent& event)
|
|||
case GEvent::Paint:
|
||||
m_hasPendingPaintEvent = false;
|
||||
if (auto* win = window()) {
|
||||
if (win->is_being_dragged())
|
||||
return;
|
||||
if (!win->is_visible())
|
||||
return;
|
||||
}
|
||||
|
@ -112,7 +110,7 @@ void GWidget::update()
|
|||
if (m_hasPendingPaintEvent)
|
||||
return;
|
||||
m_hasPendingPaintEvent = true;
|
||||
GEventLoop::main().postEvent(w, make<GPaintEvent>(relativeRect()));
|
||||
GEventLoop::main().post_event(w, make<GPaintEvent>(relativeRect()));
|
||||
}
|
||||
|
||||
GWidget::HitTestResult GWidget::hitTest(int x, int y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue