mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
Add a basic Listbox widget.
This commit is contained in:
parent
8016139430
commit
f20977c65f
Notes:
sideshowbarker
2024-07-19 18:49:33 +09:00
Author: https://github.com/awesomekling
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