pub struct PushButton { /* private fields */ }Expand description
The push button. (no ownership on rust side)
§Remark
This type is managed by nappgui itself. Rust does not have its ownership. When the window object is dropped, all components assciated with it will be automatically released.
Implementations§
Trait Implementations§
Source§impl ButtonImageTrait for PushButton
impl ButtonImageTrait for PushButton
Source§impl ButtonTrait for PushButton
impl ButtonTrait for PushButton
Source§fn tooltip(&self, text: &str)
fn tooltip(&self, text: &str)
Set a tooltip for the button. It is a small explanatory text that will appear when the mouse is over the control.
Source§fn vertical_padding(&self, padding: f32)
fn vertical_padding(&self, padding: f32)
Sets the inner vertical margin.
Source§fn get_height(&self) -> f32
fn get_height(&self) -> f32
Gets the current height of the control.
Source§impl Clone for PushButton
impl Clone for PushButton
Source§fn clone(&self) -> PushButton
fn clone(&self) -> PushButton
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ControlLayoutTrait for PushButtonwhere
PushButton: ButtonTrait,
impl ControlLayoutTrait for PushButtonwhere
PushButton: ButtonTrait,
Source§fn insert_in_layout<T>(&self, layout: T, col: u32, row: u32)where
T: LayoutTrait,
fn insert_in_layout<T>(&self, layout: T, col: u32, row: u32)where
T: LayoutTrait,
Insert the control to the layout
impl Copy for PushButton
Auto Trait Implementations§
impl !Send for PushButton
impl !Sync for PushButton
impl Freeze for PushButton
impl RefUnwindSafe for PushButton
impl Unpin for PushButton
impl UnsafeUnpin for PushButton
impl UnwindSafe for PushButton
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