cocos2d-x
3.3
|
#include <CCEventFocus.h>
Public Member Functions | |
EventFocus (ui::Widget *widgetLoseFocus, ui::Widget *widgetGetFocus) | |
![]() | |
virtual | ~Event () |
Destructor. More... | |
Type | getType () const |
Gets the event type. More... | |
void | stopPropagation () |
Stops propagation for current event. More... | |
bool | isStopped () const |
Checks whether the event has been stopped. More... | |
Node * | getCurrentTarget () |
Gets current target of the event. More... | |
![]() | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
NA NA More... | |
Friends | |
class | EventListenerFocus |
Additional Inherited Members | |
![]() | |
enum | Type { TOUCH, KEYBOARD, ACCELERATION, MOUSE, FOCUS, GAME_CONTROLLER, CUSTOM } |
![]() | |
CC_CONSTRUCTOR_ACCESS | __pad0__: Event(Type type) |
![]() | |
void | setCurrentTarget (Node *target) |
Sets current target. More... | |
![]() | |
Ref () | |
Constructor. More... | |
![]() | |
Type | _type |
Event type. More... | |
bool | _isStopped |
whether the event has been stopped. More... | |
Node * | _currentTarget |
Current target. More... | |
![]() | |
unsigned int | _referenceCount |
count of references More... | |
EventFocus | ( | ui::Widget * | widgetLoseFocus, |
ui::Widget * | widgetGetFocus | ||
) |
|
friend |