Type Alias style::values::specified::motion::RayFunction

source ·
pub type RayFunction = GenericRayFunction<Angle, Position>;
Expand description

The specified value of ray() function.

Aliased Type§

struct RayFunction {
    pub angle: Angle,
    pub size: RaySize,
    pub contain: bool,
    pub position: GenericPositionOrAuto<GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>>,
}

Fields§

§angle: Angle

The bearing angle with 0deg pointing up and positive angles representing clockwise rotation.

§size: RaySize

Decide the path length used when offset-distance is expressed as a percentage.

§contain: bool

Clamp offset-distance so that the box is entirely contained within the path.

§position: GenericPositionOrAuto<GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>>

The “at ” part. If omitted, we use auto to represent it.

Implementations§

source§

impl RayFunction

source

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

Parse the inner arguments of a ray function.

Trait Implementations§

source§

impl Parse for RayFunction

source§

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

Parse a value of this type. Read more