Struct ggez_ui::button::PushButton[][src]

pub struct PushButton { /* fields omitted */ }

Implementations

impl PushButton[src]

pub fn set_x(&mut self, x: f32)[src]

pub fn set_y(&mut self, y: f32)[src]

pub fn set_width(&mut self, width: f32)[src]

pub fn set_height(&mut self, height: f32)[src]

pub fn set_text(&mut self, text: Text)[src]

pub fn set_visible(&mut self, visible: bool)[src]

pub fn show(&mut self)[src]

pub fn hide(&mut self)[src]

impl PushButton[src]

pub const fn x(&self) -> f32[src]

pub const fn y(&self) -> f32[src]

pub const fn width(&self) -> f32[src]

pub const fn height(&self) -> f32[src]

pub fn text(&self) -> &Text[src]

pub const fn is_visible(&self) -> bool[src]

impl PushButton[src]

pub fn new(x: f32, y: f32, width: f32, height: f32, text: Text) -> Self[src]

pub fn is_clicked(&self, x: f32, y: f32) -> bool[src]

Trait Implementations

impl Drawable for PushButton[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,