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) -> &Self
pub fn mcn_get_day_state<F>(&self, func: F) -> &Self
MCN_GETDAYSTATE
notification.
Sourcepub fn mcn_sel_change<F>(&self, func: F) -> &Self
pub fn mcn_sel_change<F>(&self, func: F) -> &Self
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) -> &Self
pub fn mcn_select<F>(&self, func: F) -> &Self
MCN_SELECT
notification.
Sourcepub fn mcn_view_change<F>(&self, func: F) -> &Self
pub fn mcn_view_change<F>(&self, func: F) -> &Self
MCN_VIEWCHANGE
notification.
Sourcepub fn nm_released_capture<F>(&self, func: F) -> &Self
pub fn nm_released_capture<F>(&self, func: F) -> &Self
NM_RELEASEDCAPTURE
notification.
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