MCPcopy Create free account
hub / github.com/ZDoom/Raze / OnWindowMouseDown

Method OnWindowMouseDown

libraries/ZWidget/src/core/widget.cpp:573–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573void Widget::OnWindowMouseDown(const Point& pos, EInputKey key)
574{
575 if (CaptureWidget)
576 {
577 CaptureWidget->OnMouseDown(CaptureWidget->MapFrom(this, pos), key);
578 }
579 else
580 {
581 Widget* widget = ChildAt(pos);
582 if (!widget)
583 widget = this;
584 while (widget)
585 {
586 bool stopPropagation = widget->OnMouseDown(widget->MapFrom(this, pos), key);
587 if (stopPropagation || widget == this)
588 break;
589 widget = widget->Parent();
590 }
591 }
592}
593
594void Widget::OnWindowMouseDoubleclick(const Point& pos, EInputKey key)
595{

Callers 2

OnMouseButtonDownMethod · 0.80
OnWindowMessageMethod · 0.80

Calls 3

MapFromMethod · 0.80
ParentMethod · 0.80
OnMouseDownMethod · 0.45

Tested by

no test coverage detected