Struct style::properties::generated::style_structs::UI

source ·
pub struct UI {
Show 15 fields pub transition_duration: T, pub transition_timing_function: T, pub transition_property: T, pub transition_delay: T, pub transition_behavior: T, pub animation_name: T, pub animation_duration: T, pub animation_timing_function: T, pub animation_iteration_count: T, pub animation_direction: T, pub animation_play_state: T, pub animation_fill_mode: T, pub animation_composition: T, pub animation_delay: T, pub animation_timeline: T,
}
Expand description

The UI style struct.

Fields§

§transition_duration: T

The transition-duration computed value.

§transition_timing_function: T

The transition-timing-function computed value.

§transition_property: T

The transition-property computed value.

§transition_delay: T

The transition-delay computed value.

§transition_behavior: T

The transition-behavior computed value.

§animation_name: T

The animation-name computed value.

§animation_duration: T

The animation-duration computed value.

§animation_timing_function: T

The animation-timing-function computed value.

§animation_iteration_count: T

The animation-iteration-count computed value.

§animation_direction: T

The animation-direction computed value.

§animation_play_state: T

The animation-play-state computed value.

§animation_fill_mode: T

The animation-fill-mode computed value.

§animation_composition: T

The animation-composition computed value.

§animation_delay: T

The animation-delay computed value.

§animation_timeline: T

The animation-timeline computed value.

Implementations§

source§

impl UI

source

pub fn set_transition_duration(&mut self, v: T)

Set transition-duration.

source

pub fn copy_transition_duration_from(&mut self, other: &Self)

Set transition-duration from other struct.

source

pub fn reset_transition_duration(&mut self, other: &Self)

Reset transition-duration from the initial struct.

source

pub fn clone_transition_duration(&self) -> T

Get the computed value for transition-duration.

source

pub fn transition_duration_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn transition_duration_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_transition_timing_function(&mut self, v: T)

Set transition-timing-function.

source

pub fn copy_transition_timing_function_from(&mut self, other: &Self)

Set transition-timing-function from other struct.

source

pub fn reset_transition_timing_function(&mut self, other: &Self)

Reset transition-timing-function from the initial struct.

source

pub fn clone_transition_timing_function(&self) -> T

Get the computed value for transition-timing-function.

source

pub fn transition_timing_function_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn transition_timing_function_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_transition_property(&mut self, v: T)

Set transition-property.

source

pub fn copy_transition_property_from(&mut self, other: &Self)

Set transition-property from other struct.

source

pub fn reset_transition_property(&mut self, other: &Self)

Reset transition-property from the initial struct.

source

pub fn clone_transition_property(&self) -> T

Get the computed value for transition-property.

source

pub fn transition_property_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn transition_property_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_transition_delay(&mut self, v: T)

Set transition-delay.

source

pub fn copy_transition_delay_from(&mut self, other: &Self)

Set transition-delay from other struct.

source

pub fn reset_transition_delay(&mut self, other: &Self)

Reset transition-delay from the initial struct.

source

pub fn clone_transition_delay(&self) -> T

Get the computed value for transition-delay.

source

pub fn transition_delay_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn transition_delay_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_transition_behavior(&mut self, v: T)

Set transition-behavior.

source

pub fn copy_transition_behavior_from(&mut self, other: &Self)

Set transition-behavior from other struct.

source

pub fn reset_transition_behavior(&mut self, other: &Self)

Reset transition-behavior from the initial struct.

source

pub fn clone_transition_behavior(&self) -> T

Get the computed value for transition-behavior.

source

pub fn transition_behavior_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn transition_behavior_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_animation_name(&mut self, v: T)

Set animation-name.

source

pub fn copy_animation_name_from(&mut self, other: &Self)

Set animation-name from other struct.

source

pub fn reset_animation_name(&mut self, other: &Self)

Reset animation-name from the initial struct.

source

pub fn clone_animation_name(&self) -> T

Get the computed value for animation-name.

source

pub fn animation_name_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn animation_name_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_animation_duration(&mut self, v: T)

Set animation-duration.

source

pub fn copy_animation_duration_from(&mut self, other: &Self)

Set animation-duration from other struct.

source

pub fn reset_animation_duration(&mut self, other: &Self)

Reset animation-duration from the initial struct.

source

pub fn clone_animation_duration(&self) -> T

Get the computed value for animation-duration.

source

pub fn animation_duration_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn animation_duration_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_animation_timing_function(&mut self, v: T)

Set animation-timing-function.

source

pub fn copy_animation_timing_function_from(&mut self, other: &Self)

Set animation-timing-function from other struct.

source

pub fn reset_animation_timing_function(&mut self, other: &Self)

Reset animation-timing-function from the initial struct.

source

pub fn clone_animation_timing_function(&self) -> T

Get the computed value for animation-timing-function.

source

pub fn animation_timing_function_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn animation_timing_function_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_animation_iteration_count(&mut self, v: T)

Set animation-iteration-count.

source

pub fn copy_animation_iteration_count_from(&mut self, other: &Self)

Set animation-iteration-count from other struct.

source

pub fn reset_animation_iteration_count(&mut self, other: &Self)

Reset animation-iteration-count from the initial struct.

source

pub fn clone_animation_iteration_count(&self) -> T

Get the computed value for animation-iteration-count.

source

pub fn animation_iteration_count_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn animation_iteration_count_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_animation_direction(&mut self, v: T)

Set animation-direction.

source

pub fn copy_animation_direction_from(&mut self, other: &Self)

Set animation-direction from other struct.

source

pub fn reset_animation_direction(&mut self, other: &Self)

Reset animation-direction from the initial struct.

source

pub fn clone_animation_direction(&self) -> T

Get the computed value for animation-direction.

source

pub fn animation_direction_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn animation_direction_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_animation_play_state(&mut self, v: T)

Set animation-play-state.

source

pub fn copy_animation_play_state_from(&mut self, other: &Self)

Set animation-play-state from other struct.

source

pub fn reset_animation_play_state(&mut self, other: &Self)

Reset animation-play-state from the initial struct.

source

pub fn clone_animation_play_state(&self) -> T

Get the computed value for animation-play-state.

source

pub fn animation_play_state_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn animation_play_state_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_animation_fill_mode(&mut self, v: T)

Set animation-fill-mode.

source

pub fn copy_animation_fill_mode_from(&mut self, other: &Self)

Set animation-fill-mode from other struct.

source

pub fn reset_animation_fill_mode(&mut self, other: &Self)

Reset animation-fill-mode from the initial struct.

source

pub fn clone_animation_fill_mode(&self) -> T

Get the computed value for animation-fill-mode.

source

pub fn animation_fill_mode_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn animation_fill_mode_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_animation_composition(&mut self, v: T)

Set animation-composition.

source

pub fn copy_animation_composition_from(&mut self, other: &Self)

Set animation-composition from other struct.

source

pub fn reset_animation_composition(&mut self, other: &Self)

Reset animation-composition from the initial struct.

source

pub fn clone_animation_composition(&self) -> T

Get the computed value for animation-composition.

source

pub fn animation_composition_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn animation_composition_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_animation_delay(&mut self, v: T)

Set animation-delay.

source

pub fn copy_animation_delay_from(&mut self, other: &Self)

Set animation-delay from other struct.

source

pub fn reset_animation_delay(&mut self, other: &Self)

Reset animation-delay from the initial struct.

source

pub fn clone_animation_delay(&self) -> T

Get the computed value for animation-delay.

source

pub fn animation_delay_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn animation_delay_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source

pub fn set_animation_timeline(&mut self, v: T)

Set animation-timeline.

source

pub fn copy_animation_timeline_from(&mut self, other: &Self)

Set animation-timeline from other struct.

source

pub fn reset_animation_timeline(&mut self, other: &Self)

Reset animation-timeline from the initial struct.

source

pub fn clone_animation_timeline(&self) -> T

Get the computed value for animation-timeline.

source

pub fn animation_timeline_count(&self) -> usize

If this longhand is indexed, get the number of elements.

source

pub fn animation_timeline_at(&self, index: usize) -> SingleComputedValue

If this longhand is indexed, get the element at given index.

source§

impl UI

source

pub fn transition_duration_iter(&self) -> TransitionDurationIter<'_>

Iterate over the values of transition-duration.

source

pub fn transition_duration_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property transition-duration.

source

pub fn transition_timing_function_iter( &self, ) -> TransitionTimingFunctionIter<'_>

Iterate over the values of transition-timing-function.

source

pub fn transition_timing_function_mod( &self, index: usize, ) -> SingleComputedValue

Get a value mod index for the property transition-timing-function.

source

pub fn transition_property_iter(&self) -> TransitionPropertyIter<'_>

Iterate over the values of transition-property.

source

pub fn transition_property_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property transition-property.

source

pub fn transition_delay_iter(&self) -> TransitionDelayIter<'_>

Iterate over the values of transition-delay.

source

pub fn transition_delay_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property transition-delay.

source

pub fn transition_behavior_iter(&self) -> TransitionBehaviorIter<'_>

Iterate over the values of transition-behavior.

source

pub fn transition_behavior_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property transition-behavior.

source

pub fn animation_name_iter(&self) -> AnimationNameIter<'_>

Iterate over the values of animation-name.

source

pub fn animation_name_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property animation-name.

source

pub fn animation_duration_iter(&self) -> AnimationDurationIter<'_>

Iterate over the values of animation-duration.

source

pub fn animation_duration_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property animation-duration.

source

pub fn animation_timing_function_iter(&self) -> AnimationTimingFunctionIter<'_>

Iterate over the values of animation-timing-function.

source

pub fn animation_timing_function_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property animation-timing-function.

source

pub fn animation_iteration_count_iter(&self) -> AnimationIterationCountIter<'_>

Iterate over the values of animation-iteration-count.

source

pub fn animation_iteration_count_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property animation-iteration-count.

source

pub fn animation_direction_iter(&self) -> AnimationDirectionIter<'_>

Iterate over the values of animation-direction.

source

pub fn animation_direction_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property animation-direction.

source

pub fn animation_play_state_iter(&self) -> AnimationPlayStateIter<'_>

Iterate over the values of animation-play-state.

source

pub fn animation_play_state_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property animation-play-state.

source

pub fn animation_fill_mode_iter(&self) -> AnimationFillModeIter<'_>

Iterate over the values of animation-fill-mode.

source

pub fn animation_fill_mode_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property animation-fill-mode.

source

pub fn animation_composition_iter(&self) -> AnimationCompositionIter<'_>

Iterate over the values of animation-composition.

source

pub fn animation_composition_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property animation-composition.

source

pub fn animation_delay_iter(&self) -> AnimationDelayIter<'_>

Iterate over the values of animation-delay.

source

pub fn animation_delay_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property animation-delay.

source

pub fn animation_timeline_iter(&self) -> AnimationTimelineIter<'_>

Iterate over the values of animation-timeline.

source

pub fn animation_timeline_mod(&self, index: usize) -> SingleComputedValue

Get a value mod index for the property animation-timeline.

source

pub fn specifies_animations(&self) -> bool

Returns whether there is any animation specified with animation-name other than none.

source

pub fn specifies_transitions(&self) -> bool

Returns whether there are any transitions specified.

source

pub fn has_initial_animation_timeline(&self) -> bool

Returns whether animation-timeline is initial value. We need this information to resolve animation-duration.

source

pub fn animations_equals(&self, other: &Self) -> bool

Returns true if animation properties are equal between styles, but without considering keyframe data and animation-timeline.

Trait Implementations§

source§

impl Clone for UI

source§

fn clone(&self) -> UI

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for UI

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl MallocSizeOf for UI

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
source§

impl PartialEq for UI

source§

fn eq(&self, other: &UI) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for UI

Auto Trait Implementations§

§

impl Freeze for UI

§

impl RefUnwindSafe for UI

§

impl Send for UI

§

impl Sync for UI

§

impl Unpin for UI

§

impl UnwindSafe for UI

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<T> MaybeBoxed<Box<T>> for T

source§

fn maybe_boxed(self) -> Box<T>

Convert
source§

impl<T> MaybeBoxed<T> for T

source§

fn maybe_boxed(self) -> T

Convert
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
source§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T