pub struct ResizeData { /* private fields */ }
Implementations§
source§impl ResizeData
impl ResizeData
sourcepub fn new(inner: impl HasResizeData + 'static) -> ResizeData
pub fn new(inner: impl HasResizeData + 'static) -> ResizeData
Create a new ResizeData
sourcepub fn get_border_box_size(&self) -> Result<Size2D<f64, Pixels>, ResizeError>
pub fn get_border_box_size(&self) -> Result<Size2D<f64, Pixels>, ResizeError>
Get the border box size of the observed element
sourcepub fn get_content_box_size(&self) -> Result<Size2D<f64, Pixels>, ResizeError>
pub fn get_content_box_size(&self) -> Result<Size2D<f64, Pixels>, ResizeError>
Get the content box size of the observed element
Trait Implementations§
source§impl Debug for ResizeData
impl Debug for ResizeData
source§impl From<&PlatformEventData> for ResizeData
impl From<&PlatformEventData> for ResizeData
source§fn from(val: &PlatformEventData) -> ResizeData
fn from(val: &PlatformEventData) -> ResizeData
Converts to this type from the input type.
source§impl<E> From<E> for ResizeDatawhere
E: HasResizeData,
impl<E> From<E> for ResizeDatawhere
E: HasResizeData,
source§fn from(e: E) -> ResizeData
fn from(e: E) -> ResizeData
Converts to this type from the input type.
source§impl PartialEq for ResizeData
impl PartialEq for ResizeData
Auto Trait Implementations§
impl Freeze for ResizeData
impl !RefUnwindSafe for ResizeData
impl !Send for ResizeData
impl !Sync for ResizeData
impl Unpin for ResizeData
impl !UnwindSafe for ResizeData
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
Mutably borrows from an owned value. Read more
source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.