Struct winsafe::gui::events::DateTimePickerEvents
source · pub struct DateTimePickerEvents(/* private fields */);
Available on crate feature
gui
only.Expand description
Exposes date and time picker control notifications.
These event methods are just proxies to the
WindowEvents
of the parent window, who
is the real responsible for the child event handling.
You cannot directly instantiate this object, it is created internally by the control.
Implementations§
source§impl DateTimePickerEvents
impl DateTimePickerEvents
sourcepub fn dtn_close_up<F>(&self, func: F)
pub fn dtn_close_up<F>(&self, func: F)
DTN_CLOSEUP
notification.
sourcepub fn dtn_date_time_change<F>(&self, func: F)
pub fn dtn_date_time_change<F>(&self, func: F)
DTN_DATETIMECHANGE
notification.
§Examples
use winsafe::{self as w, prelude::*, gui};
let wnd: gui::WindowMain; // initialized somewhere
let dtp: gui::DateTimePicker;
dtp.on().dtn_date_time_change(
move |p: &w::NMDATETIMECHANGE| -> w::AnyResult<()> {
println!("{}-{}-{}", p.st.wYear, p.st.wMonth, p.st.wDay);
Ok(())
},
);
sourcepub fn dtn_drop_down<F>(&self, func: F)
pub fn dtn_drop_down<F>(&self, func: F)
DTN_DROPDOWN
notification.
sourcepub fn dtn_format<F>(&self, func: F)
pub fn dtn_format<F>(&self, func: F)
DTN_FORMAT
notification.
sourcepub fn dtn_format_query<F>(&self, func: F)
pub fn dtn_format_query<F>(&self, func: F)
DTN_FORMATQUERY
notification.
sourcepub fn dtn_user_string<F>(&self, func: F)
pub fn dtn_user_string<F>(&self, func: F)
DTN_USERSTRING
notification.
sourcepub fn dtn_wm_key_down<F>(&self, func: F)
pub fn dtn_wm_key_down<F>(&self, func: F)
DTN_WMKEYDOWN
notification.
sourcepub fn nm_kill_focus<F>(&self, func: F)
pub fn nm_kill_focus<F>(&self, func: F)
NM_KILLFOCUS
notification.
sourcepub fn nm_set_focus<F>(&self, func: F)
pub fn nm_set_focus<F>(&self, func: F)
NM_SETFOCUS
notification.
Trait Implementations§
source§impl GuiNativeControlEvents<DateTimePickerEvents> for DateTimePicker
impl GuiNativeControlEvents<DateTimePickerEvents> for DateTimePicker
source§fn on(&self) -> &DateTimePickerEvents
fn on(&self) -> &DateTimePickerEvents
Exposes the specific control events. Read more
Auto Trait Implementations§
impl Freeze for DateTimePickerEvents
impl !RefUnwindSafe for DateTimePickerEvents
impl !Send for DateTimePickerEvents
impl !Sync for DateTimePickerEvents
impl Unpin for DateTimePickerEvents
impl !UnwindSafe for DateTimePickerEvents
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