Struct winsafe::gui::events::MonthCalendarEvents
source · pub struct MonthCalendarEvents(/* private fields */);
Available on crate feature
gui
only.Expand description
Exposes month calendar 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 MonthCalendarEvents
impl MonthCalendarEvents
sourcepub fn mcn_get_day_state<F>(&self, func: F)
pub fn mcn_get_day_state<F>(&self, func: F)
MCN_GETDAYSTATE
notification.
sourcepub fn mcn_sel_change<F>(&self, func: F)
pub fn mcn_sel_change<F>(&self, func: F)
MCN_SELCHANGE
notification.
§Examples
use winsafe::{self as w, prelude::*, gui};
let wnd: gui::WindowMain; // initialized somewhere
let mcal: gui::MonthCalendar;
mcal.on().mcn_sel_change(
move |p: &w::NMSELCHANGE| -> w::AnyResult<()> {
let d = &p.stSelStart;
println!("{}-{}-{}", d.wYear, d.wMonth, d.wDay);
Ok(())
},
);
sourcepub fn mcn_select<F>(&self, func: F)
pub fn mcn_select<F>(&self, func: F)
MCN_SELECT
notification.
sourcepub fn mcn_view_change<F>(&self, func: F)
pub fn mcn_view_change<F>(&self, func: F)
MCN_VIEWCHANGE
notification.
sourcepub fn nm_released_capture<F>(&self, func: F)
pub fn nm_released_capture<F>(&self, func: F)
NM_RELEASEDCAPTURE
notification.
Trait Implementations§
source§impl GuiNativeControlEvents<MonthCalendarEvents> for MonthCalendar
impl GuiNativeControlEvents<MonthCalendarEvents> for MonthCalendar
source§fn on(&self) -> &MonthCalendarEvents
fn on(&self) -> &MonthCalendarEvents
Exposes the specific control events. Read more
Auto Trait Implementations§
impl Freeze for MonthCalendarEvents
impl !RefUnwindSafe for MonthCalendarEvents
impl !Send for MonthCalendarEvents
impl !Sync for MonthCalendarEvents
impl Unpin for MonthCalendarEvents
impl !UnwindSafe for MonthCalendarEvents
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