mirror of
https://github.com/RGBCube/serenity
synced 2025-05-26 01:05:07 +00:00
Add a basic Listbox widget.
This commit is contained in:
parent
8016139430
commit
f20977c65f
5 changed files with 93 additions and 2 deletions
|
@ -50,7 +50,7 @@ void Window::event(Event& event)
|
|||
{
|
||||
if (event.isMouseEvent()) {
|
||||
auto& me = static_cast<MouseEvent&>(event);
|
||||
printf("Window{%p}: %s %d,%d\n", this, me.name(), me.x(), me.y());
|
||||
//printf("Window{%p}: %s %d,%d\n", this, me.name(), me.x(), me.y());
|
||||
if (m_mainWidget) {
|
||||
auto result = m_mainWidget->hitTest(me.x(), me.y());
|
||||
//printf("hit test for %d,%d found: %s{%p} %d,%d\n", me.x(), me.y(), result.widget->className(), result.widget, result.localX, result.localY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue