pub struct Pointer {Show 14 fields
pub size: f32,
pub tone: PointerTone,
pub color: Option<String>,
pub outline_color: Option<String>,
pub click_ring: ClickRing,
pub ring_color: Option<String>,
pub path: Vec<CursorWaypoint>,
pub click_at: Vec<f64>,
pub click_duration: f32,
pub path_easing: CursorPathEasing,
pub timing: TimingConfig,
pub style: CssStyle,
pub timeline: Vec<TimelineStep>,
pub stagger: Option<f32>,
}Expand description
A mouse pointer that travels a waypoint path and clicks along the way.
Fields§
§size: f32Height of the arrow in px. The click ring scales with it.
tone: PointerToneColour scheme. Overridden by color / outline_color when set.
color: Option<String>Arrow fill (hex), overriding tone.
outline_color: Option<String>Arrow outline (hex), overriding tone.
click_ring: ClickRingClick ring size. none removes it.
ring_color: Option<String>Ring colour (hex). Defaults to the arrow’s fill.
path: Vec<CursorWaypoint>Waypoints the pointer travels between, in scene-local seconds. Each
x/y is relative to the component’s own origin — place the
component with position: absolute and read the waypoints as scene
coordinates. The pointer clicks on arrival at each one.
click_at: Vec<f64>Extra click times (seconds), for a pointer that clicks without
travelling. Ignored when path is set — the waypoints carry their
own clicks.
click_duration: f32How long one click animation runs (seconds). Also how long the pointer pauses on a waypoint before setting off for the next.
path_easing: CursorPathEasingEasing between waypoints.
timing: TimingConfig§style: CssStyle§timeline: Vec<TimelineStep>§stagger: Option<f32>Trait Implementations§
Source§impl Animatable for Pointer
impl Animatable for Pointer
fn animation_effects(&self) -> &[AnimationEffect]
Source§fn timeline_steps(&self) -> &[TimelineStep]
fn timeline_steps(&self) -> &[TimelineStep]
timeline field): each step’s animations are
resolved with delay += step.at. Empty by default.Source§impl<'de> Deserialize<'de> for Pointer
impl<'de> Deserialize<'de> for Pointer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Pointer
impl JsonSchema for Pointer
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl Painter for Pointer
impl Painter for Pointer
Source§fn paint_content(
&self,
canvas: &Canvas,
_layout: &BoxLayout,
_props: &AnimatedProperties,
ctx: &PaintCtx,
)
fn paint_content( &self, canvas: &Canvas, _layout: &BoxLayout, _props: &AnimatedProperties, ctx: &PaintCtx, )
overflow: hidden was set. Generic decorations (bg, border,
shadow) are already painted by the engine. Read moreSource§fn intrinsic_size(
&self,
_available: AvailableSize,
_ctx: &MeasureCtx,
) -> Option<(f32, f32)>
fn intrinsic_size( &self, _available: AvailableSize, _ctx: &MeasureCtx, ) -> Option<(f32, f32)>
text, image,
codeblock. Return None to let taffy compute the size from the
CSS style alone. available mirrors taffy’s AvailableSpace.Auto Trait Implementations§
impl Freeze for Pointer
impl RefUnwindSafe for Pointer
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnsafeUnpin for Pointer
impl UnwindSafe for Pointer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more