Struct rcocos2d_sys::cocos2d_CCMenuItem[][src]

#[repr(C)]
pub struct cocos2d_CCMenuItem { pub _base: cocos2d_CCNodeRGBA, pub m_bSelected: bool, pub m_bEnabled: bool, pub m_pListener: *mut cocos2d_CCObject, pub m_pfnSelector: cocos2d_SEL_MenuHandler, pub m_nScriptTapHandler: c_int, }
Expand description

@brief CCMenuItem base class

Subclass CCMenuItem (or any subclass) to create your custom CCMenuItem objects.

Fields

_base: cocos2d_CCNodeRGBAm_bSelected: bool

whether or not the item is selected @since v0.8.2

m_bEnabled: boolm_pListener: *mut cocos2d_CCObjectm_pfnSelector: cocos2d_SEL_MenuHandlerm_nScriptTapHandler: c_int

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.