Struct rute::auto::push_button::PushButton
source · pub struct PushButton<'a> { /* private fields */ }
Expand description
Notice these docs are heavy WIP and not very relevent yet
Implementations
sourceimpl<'a> PushButton<'a>
impl<'a> PushButton<'a>
pub fn new() -> PushButton<'a>
pub fn auto_default(&self) -> bool
pub fn set_auto_default(&self, arg0: bool) -> &Self
pub fn is_default(&self) -> bool
pub fn set_default(&self, arg0: bool) -> &Self
pub fn set_flat(&self, arg0: bool) -> &Self
pub fn is_flat(&self) -> bool
pub fn set_text(&self, text: &str) -> &Self
pub fn text(&self) -> String
pub fn set_pressed_event_ud<F, T>(&self, data: &'a T, func: F) -> &Selfwhere
F: Fn(&T) + 'a,
T: 'a,
pub fn set_pressed_event<F>(&self, func: F) -> &Selfwhere
F: Fn() + 'a,
pub fn set_released_event_ud<F, T>(&self, data: &'a T, func: F) -> &Selfwhere
F: Fn(&T) + 'a,
T: 'a,
pub fn set_released_event<F>(&self, func: F) -> &Selfwhere
F: Fn() + 'a,
pub fn set_clicked_event_ud<F, T>(&self, data: &'a T, func: F) -> &Selfwhere
F: Fn(&T, bool) + 'a,
T: 'a,
pub fn set_clicked_event<F>(&self, func: F) -> &Selfwhere
F: Fn(bool) + 'a,
pub fn set_toggled_event_ud<F, T>(&self, data: &'a T, func: F) -> &Selfwhere
F: Fn(&T, bool) + 'a,
T: 'a,
pub fn set_toggled_event<F>(&self, func: F) -> &Selfwhere
F: Fn(bool) + 'a,
pub fn set_window_title_changed_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&str) + 'a,
pub fn set_window_icon_changed_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&Icon<'_>) + 'a,
pub fn set_window_icon_text_changed_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&str) + 'a,
pub fn set_mouse_press_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&MouseEvent<'_>) + 'a,
pub fn set_mouse_release_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&MouseEvent<'_>) + 'a,
pub fn set_mouse_double_click_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&MouseEvent<'_>) + 'a,
pub fn set_mouse_move_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&MouseEvent<'_>) + 'a,
pub fn set_wheel_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&WheelEvent<'_>) + 'a,
pub fn set_key_press_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&KeyEvent<'_>) + 'a,
pub fn set_key_release_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&KeyEvent<'_>) + 'a,
pub fn set_focus_in_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&FocusEvent<'_>) + 'a,
pub fn set_focus_out_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&FocusEvent<'_>) + 'a,
pub fn set_enter_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&Event<'_>) + 'a,
pub fn set_leave_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&Event<'_>) + 'a,
pub fn set_paint_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&PaintEvent<'_>) + 'a,
pub fn set_move_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&MoveEvent<'_>) + 'a,
pub fn set_resize_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&ResizeEvent<'_>) + 'a,
pub fn set_close_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&CloseEvent<'_>) + 'a,
pub fn set_tablet_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&TabletEvent<'_>) + 'a,
pub fn set_drag_enter_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&DragEnterEvent<'_>) + 'a,
pub fn set_drag_move_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&DragMoveEvent<'_>) + 'a,
pub fn set_drag_leave_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&DragLeaveEvent<'_>) + 'a,
pub fn set_drop_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&DropEvent<'_>) + 'a,
pub fn set_show_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&ShowEvent<'_>) + 'a,
pub fn set_hide_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&HideEvent<'_>) + 'a,
pub fn set_change_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&Event<'_>) + 'a,
pub fn set_custom_event<F>(&self, func: F) -> &Selfwhere
F: Fn(&Event<'_>) + 'a,
pub fn build(&self) -> Self
Trait Implementations
sourceimpl<'a> Clone for PushButton<'a>
impl<'a> Clone for PushButton<'a>
sourcefn clone(&self) -> PushButton<'a>
fn clone(&self) -> PushButton<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<'a> ObjectTrait<'a> for PushButton<'a>
impl<'a> PaintDeviceTrait<'a> for PushButton<'a>
impl<'a> PushButtonTrait<'a> for PushButton<'a>
impl<'a> WidgetTrait<'a> for PushButton<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PushButton<'a>
impl<'a> !Send for PushButton<'a>
impl<'a> !Sync for PushButton<'a>
impl<'a> Unpin for PushButton<'a>
impl<'a> !UnwindSafe for PushButton<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more