pub struct Callback(pub CallbackType);
Expand description
Stores a function pointer that is executed when the given UI element is hit
Must return an UpdateScreen
that denotes if the screen should be redrawn.
The style is not affected by this, so if you make changes to the window’s style
inside the function, the screen will not be automatically redrawn, unless you return
an UpdateScreen::Redraw
from the function
Tuple Fields§
§0: CallbackType
Trait Implementations§
Source§impl Ord for Callback
impl Ord for Callback
Source§impl PartialOrd for Callback
impl PartialOrd for Callback
impl Copy for Callback
impl Eq for Callback
Auto Trait Implementations§
impl Freeze for Callback
impl RefUnwindSafe for Callback
impl Send for Callback
impl Sync for Callback
impl Unpin for Callback
impl UnwindSafe for Callback
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)