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

Method OnWindowMouseDoubleclick

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

Source from the content-addressed store, hash-verified

592}
593
594void Widget::OnWindowMouseDoubleclick(const Point& pos, EInputKey key)
595{
596 if (CaptureWidget)
597 {
598 CaptureWidget->OnMouseDoubleclick(CaptureWidget->MapFrom(this, pos), key);
599 }
600 else
601 {
602 Widget* widget = ChildAt(pos);
603 if (!widget)
604 widget = this;
605 while (widget)
606 {
607 bool stopPropagation = widget->OnMouseDoubleclick(widget->MapFrom(this, pos), key);
608 if (stopPropagation || widget == this)
609 break;
610 widget = widget->Parent();
611 }
612 }
613}
614
615void Widget::OnWindowMouseUp(const Point& pos, EInputKey key)
616{

Callers 1

OnWindowMessageMethod · 0.80

Calls 3

MapFromMethod · 0.80
ParentMethod · 0.80
OnMouseDoubleclickMethod · 0.45

Tested by

no test coverage detected