pub struct TabEvents(/* private fields */);
Available on crate feature
gui
only.Expand description
Exposes tab 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 TabEvents
impl TabEvents
sourcepub fn nm_click<F>(&self, func: F)
pub fn nm_click<F>(&self, func: F)
NM_KILLFOCUS
notification.
sourcepub fn nm_dbl_clk<F>(&self, func: F)
pub fn nm_dbl_clk<F>(&self, func: F)
NM_DBLCLK
notification.
sourcepub fn nm_r_click<F>(&self, func: F)
pub fn nm_r_click<F>(&self, func: F)
NM_RCLICK
notification.
sourcepub fn nm_r_dbl_clk<F>(&self, func: F)
pub fn nm_r_dbl_clk<F>(&self, func: F)
NM_RDBLCLK
notification.
sourcepub fn nm_released_capture<F>(&self, func: F)
pub fn nm_released_capture<F>(&self, func: F)
NM_RELEASEDCAPTURE
notification.
sourcepub fn tcn_focus_change<F>(&self, func: F)
pub fn tcn_focus_change<F>(&self, func: F)
TCN_FOCUSCHANGE
notification.
sourcepub fn tcn_get_object<F>(&self, func: F)
pub fn tcn_get_object<F>(&self, func: F)
TCN_GETOBJECT
notification.
sourcepub fn tcn_key_down<F>(&self, func: F)
pub fn tcn_key_down<F>(&self, func: F)
TCN_KEYDOWN
notification.
sourcepub fn tcn_sel_change<F>(&self, func: F)
pub fn tcn_sel_change<F>(&self, func: F)
TCN_SELCHANGE
notification.
§Examples
use winsafe::{self as w, prelude::*, gui};
let wnd: gui::WindowMain; // initialized somewhere
let tab: gui::Tab;
tab.on().tcn_sel_change(
move || -> w::AnyResult<()> {
println!("Changed tab.");
Ok(())
},
);
sourcepub fn tcn_sel_changing<F>(&self, func: F)
pub fn tcn_sel_changing<F>(&self, func: F)
TCN_SELCHANGING
notification.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TabEvents
impl !RefUnwindSafe for TabEvents
impl !Send for TabEvents
impl !Sync for TabEvents
impl Unpin for TabEvents
impl !UnwindSafe for TabEvents
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