Struct ggez_ui::button::PushButton [−][src]
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]
fn draw(&self, ctx: &mut Context, _: DrawParam) -> GameResult<()>
[src]
fn dimensions(&self, _: &mut Context) -> Option<Rect>
[src]
fn set_blend_mode(&mut self, _: Option<BlendMode>)
[src]
fn blend_mode(&self) -> Option<BlendMode>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PushButton
impl Send for PushButton
impl !Sync for PushButton
impl Unpin for PushButton
impl UnwindSafe for PushButton
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
pub fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub unsafe fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,