Struct Gif

Source
pub struct Gif { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl AccessibilityExt for Gif

Source§

fn get_accessibility_data(&mut self) -> &mut AccessibilityData

Source§

fn accessibility(self, accessibility: AccessibilityData) -> Self

Source§

fn a11y_id(self, a11y_id: impl Into<Option<NodeId>>) -> Self

Source§

fn a11y_focusable(self, a11y_focusable: impl Into<Focusable>) -> Self

Source§

fn a11y_auto_focus(self, a11y_auto_focus: impl Into<bool>) -> Self

Source§

fn a11y_member_of(self, a11y_member_of: impl Into<NodeId>) -> Self

Source§

fn a11y_role(self, a11y_role: impl Into<Role>) -> Self

Source§

fn a11y_alt(self, value: impl Into<Box<str>>) -> Self

Source§

fn a11y_builder(self, with: impl FnOnce(&mut Node)) -> Self

Source§

impl ContainerExt for Gif

Source§

fn position(self, position: impl Into<Position>) -> Self

Source§

fn width(self, width: impl Into<Size>) -> Self

Source§

fn height(self, height: impl Into<Size>) -> Self

Source§

fn padding(self, padding: impl Into<Gaps>) -> Self

Source§

fn margin(self, margin: impl Into<Gaps>) -> Self

Source§

fn min_width(self, minimum_width: impl Into<Size>) -> Self

Source§

fn min_height(self, minimum_height: impl Into<Size>) -> Self

Source§

fn max_width(self, maximum_width: impl Into<Size>) -> Self

Source§

fn max_height(self, maximum_height: impl Into<Size>) -> Self

Source§

fn visible_width(self, visible_width: impl Into<VisibleSize>) -> Self

Source§

fn visible_height(self, visible_height: impl Into<VisibleSize>) -> Self

Source§

fn expanded(self) -> Self

Source§

impl EventHandlersExt for Gif

Source§

fn get_event_handlers(&mut self) -> &mut FxHashMap<EventName, EventHandlerType>

Source§

fn on_mouse_down( self, on_mouse_down: impl Into<EventHandler<Event<MouseEventData>>>, ) -> Self

Source§

fn on_mouse_up( self, on_mouse_up: impl Into<EventHandler<Event<MouseEventData>>>, ) -> Self

Source§

fn on_mouse_move( self, on_mouse_move: impl Into<EventHandler<Event<MouseEventData>>>, ) -> Self

Source§

fn on_global_mouse_up( self, on_global_mouse_up: impl Into<EventHandler<Event<MouseEventData>>>, ) -> Self

Source§

fn on_global_mouse_down( self, on_global_mouse_down: impl Into<EventHandler<Event<MouseEventData>>>, ) -> Self

Source§

fn on_global_mouse_move( self, on_global_mouse_move: impl Into<EventHandler<Event<MouseEventData>>>, ) -> Self

Source§

fn on_capture_global_mouse_move( self, on_capture_global_mouse_move: impl Into<EventHandler<Event<MouseEventData>>>, ) -> Self

Source§

fn on_capture_global_mouse_up( self, on_capture_global_mouse_up: impl Into<EventHandler<Event<MouseEventData>>>, ) -> Self

Source§

fn on_key_down( self, on_key_down: impl Into<EventHandler<Event<KeyboardEventData>>>, ) -> Self

Source§

fn on_key_up( self, on_key_up: impl Into<EventHandler<Event<KeyboardEventData>>>, ) -> Self

Source§

fn on_global_key_down( self, on_global_key_down: impl Into<EventHandler<Event<KeyboardEventData>>>, ) -> Self

Source§

fn on_global_key_up( self, on_global_key_up: impl Into<EventHandler<Event<KeyboardEventData>>>, ) -> Self

Source§

fn on_wheel( self, on_wheel: impl Into<EventHandler<Event<WheelEventData>>>, ) -> Self

Source§

fn on_touch_cancel( self, on_touch_cancel: impl Into<EventHandler<Event<TouchEventData>>>, ) -> Self

Source§

fn on_touch_start( self, on_touch_start: impl Into<EventHandler<Event<TouchEventData>>>, ) -> Self

Source§

fn on_touch_move( self, on_touch_move: impl Into<EventHandler<Event<TouchEventData>>>, ) -> Self

Source§

fn on_touch_end( self, on_touch_end: impl Into<EventHandler<Event<TouchEventData>>>, ) -> Self

Source§

fn on_pointer_press( self, on_pointer_press: impl Into<EventHandler<Event<PointerEventData>>>, ) -> Self

Source§

fn on_pointer_down( self, on_pointer_down: impl Into<EventHandler<Event<PointerEventData>>>, ) -> Self

Source§

fn on_pointer_enter( self, on_pointer_enter: impl Into<EventHandler<Event<PointerEventData>>>, ) -> Self

Source§

fn on_pointer_leave( self, on_pointer_leave: impl Into<EventHandler<Event<PointerEventData>>>, ) -> Self

Source§

fn on_file_drop( self, on_file_drop: impl Into<EventHandler<Event<FileEventData>>>, ) -> Self

Source§

fn on_global_file_hover( self, on_global_file_hover: impl Into<EventHandler<Event<FileEventData>>>, ) -> Self

Source§

fn on_global_file_hover_cancelled( self, on_global_file_hover_cancelled: impl Into<EventHandler<Event<FileEventData>>>, ) -> Self

Source§

fn on_ime_preedit( self, on_ime_preedit: impl Into<EventHandler<Event<ImePreeditEventData>>>, ) -> Self

Source§

fn on_sized( self, on_sized: impl Into<EventHandler<Event<SizedEventData>>>, ) -> Self

Source§

fn on_press( self, on_press: impl Into<EventHandler<Event<PressEventData>>>, ) -> Self

This is generally the best event in which to run “press” logic, this might be called onClick, onActivate, or onConnect in other platforms. Read more
Source§

fn on_secondary_press( self, on_pointer_press: impl Into<EventHandler<Event<PressEventData>>>, ) -> Self

Also called the context menu click in other platforms. Gets triggered when: Read more
Source§

fn on_all_press( self, on_press: impl Into<EventHandler<Event<PressEventData>>>, ) -> Self

Gets triggered when: Read more
Source§

impl From<Gif> for Element

Source§

fn from(value: Gif) -> Self

Converts to this type from the input type.
Source§

impl ImageExt for Gif

Source§

fn get_image_data(&mut self) -> &mut ImageData

Source§

fn width(self, width: Size) -> Self

Source§

fn height(self, height: Size) -> Self

Source§

fn image_data(self, image_data: ImageData) -> Self

Source§

fn sampling_mode(self, sampling_mode: SamplingMode) -> Self

Source§

fn aspect_ratio(self, aspect_ratio: AspectRatio) -> Self

Source§

fn image_cover(self, image_cover: ImageCover) -> Self

Source§

impl KeyExt for Gif

Source§

fn write_key(&mut self) -> &mut DiffKey

Source§

fn key(self, key: impl Hash) -> Self

Source§

impl LayoutExt for Gif

Source§

fn get_layout(&mut self) -> &mut LayoutData

Source§

fn layout(self, layout: LayoutData) -> Self

Source§

impl MaybeExt for Gif

Source§

fn maybe(self, bool: impl Into<bool>, then: impl FnOnce(Self) -> Self) -> Self

Source§

fn map<T>(self, data: Option<T>, then: impl FnOnce(Self, T) -> Self) -> Self

Auto Trait Implementations§

§

impl Freeze for Gif

§

impl !RefUnwindSafe for Gif

§

impl !Send for Gif

§

impl !Sync for Gif

§

impl Unpin for Gif

§

impl !UnwindSafe for Gif

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
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoElement for T
where T: Into<Element>,

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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more