Phosphor::Zone
A named, hit-testable rectangular region registered during render.
View#register_zone records one of these per interactive region a
widget wants to receive TouchEvents for; View#zone_at finds which
zone (if any) a touch coordinate falls inside. See View's own doc
comment for how zones are cleared and rebuilt each frame.
widget_id is the mount id of the widget that registered this zone —
View#dispatch_touch falls back to delivering the touch to this widget
when id itself doesn't match any mounted widget, which is how a widget
can register named sub-region zones (e.g. "action_apply") without a
separate mounted widget per zone.
Constructors
Instance methods
Returns true if (px, py) falls within this zone's bounds.
height
Sourceid
Sourcewidget_id
Sourcewidth
Source