#[repr(C)]pub struct QarGuiPanelPoint {
pub x_pixels: i32,
pub y_pixels: i32,
}Expand description
@brief A position on a GUI panel, in panel-content-space pixels.
Panel content space (see QarGuiPanelSize): origin at the top-left corner of the displayed image as the viewer sees it, x increasing right and y increasing down. Both are clamped to the image, so x_pixels is in [0, content_width - 1] and y_pixels in [0, content_height - 1] of the image the renderer is currently displaying - for a stream panel, the video exactly as its sender draws it: the renderer receives it at the sender’s own resolution, and a position on a video the renderer has scrolled is the pixel under the finger, not one relative to the visible part.
Signed for headroom, and a closed pair: a contact’s depth off the glass, if it is ever reported, arrives as its own accessor rather than as a member here.
Fields§
§x_pixels: i32§y_pixels: i32