pub struct NormalButton {
pub button: ButtonLogic,
pub bg: Quad,
pub text: Text,
pub animator: Animator,
pub _bg_area: Area,
pub _text_area: Area,
}
Fields§
§bg: Quad
§text: Text
§animator: Animator
§_bg_area: Area
§_text_area: Area
Implementations§
Source§impl NormalButton
impl NormalButton
pub fn proto(cx: &mut Cx) -> Self
pub fn layout_bg() -> LayoutId
pub fn text_style_label() -> TextStyleId
pub fn anim_default() -> AnimId
pub fn anim_over() -> AnimId
pub fn anim_down() -> AnimId
pub fn shader_bg() -> ShaderId
pub fn instance_hover() -> InstanceFloat
pub fn instance_down() -> InstanceFloat
pub fn style(cx: &mut Cx, _opt: &StyleOptions)
Trait Implementations§
Source§impl Clone for NormalButton
impl Clone for NormalButton
Source§fn clone(&self) -> NormalButton
fn clone(&self) -> NormalButton
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for NormalButton
impl RefUnwindSafe for NormalButton
impl Send for NormalButton
impl Sync for NormalButton
impl Unpin for NormalButton
impl UnwindSafe for NormalButton
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