pub struct TimePicker { /* private fields */ }Implementations§
Source§impl TimePicker
impl TimePicker
pub fn new() -> Self
pub fn id(self, id: impl Into<SharedString>) -> Self
pub fn value(self, value: TimeValue) -> Self
pub fn placeholder(self, placeholder: impl Into<SharedString>) -> Self
pub fn format(self, format: impl Into<SharedString>) -> Self
pub fn width(self, width: impl Into<Pixels>) -> Self
pub fn width_md(self) -> Self
pub fn width_lg(self) -> Self
pub fn disabled(self, disabled: bool) -> Self
pub fn minute_step(self, step: u32) -> Self
pub fn second_step(self, step: u32) -> Self
pub fn without_seconds(self) -> Self
pub fn close_on_escape(self, close: bool) -> Self
pub fn close_on_click_outside(self, close: bool) -> Self
pub fn register_key_bindings(cx: &mut App)
pub fn on_change( self, f: impl Fn(Option<TimeValue>, &mut Window, &mut App) + 'static, ) -> Self
pub fn set_on_change( &mut self, f: impl Fn(Option<TimeValue>, &mut Window, &mut App) + 'static, _cx: &mut Context<'_, Self>, )
pub fn set_value( &mut self, value: Option<TimeValue>, cx: &mut Context<'_, Self>, )
pub fn value_ref(&self) -> Option<TimeValue>
Trait Implementations§
Source§impl Render for TimePicker
impl Render for TimePicker
Auto Trait Implementations§
impl !RefUnwindSafe for TimePicker
impl !Send for TimePicker
impl !Sync for TimePicker
impl !UnwindSafe for TimePicker
impl Freeze for TimePicker
impl Unpin for TimePicker
impl UnsafeUnpin for TimePicker
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> 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<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>
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 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>
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