[][src]Struct makepad_widget::NormalButton

pub struct NormalButton {
    pub button: ButtonLogic,
    pub bg: Quad,
    pub text: Text,
    pub animator: Animator,
    pub _bg_area: Area,
    pub _text_area: Area,
}

Fields

button: ButtonLogicbg: Quadtext: Textanimator: Animator_bg_area: Area_text_area: Area

Methods

impl NormalButton[src]

pub fn proto(cx: &mut Cx) -> Self[src]

pub fn layout_bg() -> LayoutId[src]

pub fn text_style_label() -> TextStyleId[src]

pub fn anim_default() -> AnimId[src]

pub fn anim_over() -> AnimId[src]

pub fn anim_down() -> AnimId[src]

pub fn shader_bg() -> ShaderId[src]

pub fn instance_hover() -> InstanceFloat[src]

pub fn instance_down() -> InstanceFloat[src]

pub fn style(cx: &mut Cx, _opt: &StyleOptions)[src]

pub fn handle_normal_button(
    &mut self,
    cx: &mut Cx,
    event: &mut Event
) -> ButtonEvent
[src]

pub fn draw_normal_button(&mut self, cx: &mut Cx, label: &str)[src]

Trait Implementations

impl Clone for NormalButton[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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