Skip to main content

PathVertex_ScaledPixels

Type Alias PathVertex_ScaledPixels 

Source
pub type PathVertex_ScaledPixels = PathVertex<ScaledPixels>;
Expand description

A PathVertex in scaled pixels.

Aliased Type§

#[repr(C)]
pub struct PathVertex_ScaledPixels { pub xy_position: Point<ScaledPixels>, pub st_position: Point<f32>, pub content_mask: ContentMask<ScaledPixels>, }

Fields§

§xy_position: Point<ScaledPixels>

The position of the vertex.

§st_position: Point<f32>

Shader coordinates that tell the renderer where the vertex sits on a curve. Straight edges use (0, 1). A curve from Path::curve_to uses (0, 0), (0.5, 0) and (1, 1).

§content_mask: ContentMask<ScaledPixels>

The content mask of this vertex. crate::Window::paint_path leaves it at its default.