Pointer targets
Generated from engine/ui/pointer_target.h at f525bc6. The text under each declaration is the header's own comment, word for word. About the reference says how these pages are made.
Audience: game code.
#include "engine/ui/pointer_target.h" · namespace labrador
struct PointerTarget
Section titled “struct PointerTarget”A page-authored pointer target, in the same coordinate space as the point passed to hit_pointer_target. The page chooses its extent and availability; neither is derived from a widget or changed by the query.
bounds
Section titled “bounds”enabled
Section titled “enabled”bool enabled = true;hit_pointer_target
Section titled “hit_pointer_target”The first enabled target containing point, or no match. The returned index is in the original span, including entries skipped before it. Left/top edges are included; right/bottom edges are excluded.
Nonfinite points miss. Targets with nonfinite coordinates, dimensions or computed endpoints, or nonpositive dimensions, are ignored. Negative origins are valid; rectangles are not normalised or expanded.
Pure, allocation-free and safe for concurrent reads of unchanged targets. The page owns coordinate transforms, focus, capture and gesture policy.
Related types
Section titled “Related types”Named in the public declarations above: RectangleF, Vector2F.
In the samples and tests
Section titled “In the samples and tests”The files that include this header directly. A file can also reach it through another header.
samples/components/gallery_state.hsamples/linesweeper/states/pause_state.cpptests/ui/pointer_target_tests.cpp
Explained in
Section titled “Explained in”Documentation for Labrador v0.4.0. Built from Labrador f525bc6 of 2026-11-17.