pub type CursorImage = GenericCursorImage<Image, Number>;
Expand description
A specified value for item of image cursors
.
Aliased Type§
struct CursorImage {
pub image: GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>,
pub has_hotspot: bool,
pub hotspot_x: Number,
pub hotspot_y: Number,
}
Fields§
§image: GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>
The url to parse images from.
has_hotspot: bool
Whether the image has a hotspot or not.
hotspot_x: Number
The x coordinate.
hotspot_y: Number
The y coordinate.
Trait Implementations§
source§impl Parse for CursorImage
impl Parse for CursorImage
source§fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more
source§impl SpecifiedValueInfo for CursorImage
impl SpecifiedValueInfo for CursorImage
source§fn collect_completion_keywords(f: KeywordsCollectFn<'_>)
fn collect_completion_keywords(f: KeywordsCollectFn<'_>)
Collect value starting words for the given specified value type.
This includes keyword and function names which can appear at the
beginning of a value of this type. Read more
source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
Supported CssTypes by the given value type. Read more