Type Alias Cursor

Source
pub type Cursor = GenericCursor<CursorImage>;
Expand description

A specified value for the cursor property.

Aliased Type§

#[repr(C)]
pub struct Cursor { pub images: OwnedSlice<GenericCursorImage<GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>, Number>>, pub keyword: CursorKind, }

Fields§

§images: OwnedSlice<GenericCursorImage<GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>, Number>>

The parsed images for the cursor.

§keyword: CursorKind

The kind of the cursor [default | help | …].

Trait Implementations§

Source§

impl Parse for Cursor

Source§

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

cursor: [ [ ]?]# [auto | default | …]