Skip to main content

point_in_rect

Function point_in_rect 

Source
pub fn point_in_rect(rect: Rect, p: Pos2) -> bool
Expand description

Whether the widget pixel point p lies inside the viewport pixel rect.

Used for the drag hit-test: silx makes only the visible rect movable (_DraggableRectItem, RadarView.py:49), so a drag is captured only when it starts on that rect.