InputPaneStateEventArgs
struct · ferroui-controls · v0.5.0
struct InputPaneStateEventArgs
Provides state change information about the input pane.
Members
new
fn new(new_state: InputPaneState, start_rect: Option<Rect>, end_rect: Rect) -> Self
Creates the event args for a change that is not animated.
with_animation
fn with_animation(new_state: InputPaneState, start_rect: Option<Rect>, end_rect: Rect, animation_duration: Duration, easing: Option<Rc<dyn IEasing>>) -> Self
Creates the event args for an animated change.
new_state
fn new_state(self: &Self) -> InputPaneState
The new state of the input pane.
start_rect
fn start_rect(self: &Self) -> Option<Rect>
The initial bounds of the input pane.
end_rect
fn end_rect(self: &Self) -> Rect
The final bounds of the input pane.
animation_duration
fn animation_duration(self: &Self) -> Duration
The duration of the input pane's state change animation.
easing
fn easing(self: &Self) -> Option<&Rc<dyn IEasing>>
The easing of the input pane's state changed animation.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherClone
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.