pub struct MenuItemDraw {
pub text: Text,
pub item_bg: Quad,
}
Fields§
§text: Text
§item_bg: Quad
Implementations§
Source§impl MenuItemDraw
impl MenuItemDraw
pub fn proto(cx: &mut Cx) -> Self
pub fn get_default_anim(&self, cx: &Cx) -> Anim
pub fn get_default_anim_cut(&self, cx: &Cx) -> Anim
pub fn get_over_anim(&self, cx: &Cx) -> Anim
pub fn style(cx: &mut Cx, _opt: &StyleOptions)
Trait Implementations§
Source§impl Clone for MenuItemDraw
impl Clone for MenuItemDraw
Source§fn clone(&self) -> MenuItemDraw
fn clone(&self) -> MenuItemDraw
Returns a duplicate 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 MenuItemDraw
impl RefUnwindSafe for MenuItemDraw
impl Send for MenuItemDraw
impl Sync for MenuItemDraw
impl Unpin for MenuItemDraw
impl UnwindSafe for MenuItemDraw
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