cocos2d-x  3.0alpha1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
UIHelper Class Reference

#include <UIHelper.h>

Static Public Member Functions

static UIWidgetseekWidgetByTag (UIWidget *root, int tag)
 Finds a widget whose tag equals to param tag from root widget. More...
 
var seekWidgetByTag ( var root, var tag)
 Finds a widget whose tag equals to param tag from root widget. More...
 
local seekWidgetByTag ( local root, local tag)
 Finds a widget whose tag equals to param tag from root widget. More...
 
name value.

Finds a widget whose name equals to param name from root widget.

RelativeLayout will call this method to find the widget witch is needed.

Parameters
rootwidget which will be seeked.
Returns
finded result.
static UIWidgetseekWidgetByName (UIWidget *root, const char *name)
var seekWidgetByName ( var root, var name)
static UIWidgetseekWidgetByRelativeName (UIWidget *root, const char *name)
local seekWidgetByRelativeName ( local root, local name)
static UIWidgetseekActionWidgetByActionTag (UIWidget *root, int tag)
local seekActionWidgetByActionTag ( local root, local tag)

Member Function Documentation

static UIWidget*
seekActionWidgetByActionTag
( UIWidget root,
int  tag 
)
static
var seekActionWidgetByActionTag ( var  root,
var  tag 
)
static
local seekActionWidgetByActionTag ( local  root,
local  tag 
)
static
static UIWidget* seekWidgetByName ( UIWidget root,
const char *  name 
)
static
var seekWidgetByName ( var  root,
var  name 
)
static
local seekWidgetByName ( local  root,
local  name 
)
static
static UIWidget*
seekWidgetByRelativeName
( UIWidget root,
const char *  name 
)
static
var seekWidgetByRelativeName ( var  root,
var  name 
)
static
local seekWidgetByRelativeName ( local  root,
local  name 
)
static
static UIWidget* seekWidgetByTag ( UIWidget root,
int  tag 
)
static

Finds a widget whose tag equals to param tag from root widget.

Parameters
rootwidget which will be seeked.

tag value.

Returns
finded result.
var seekWidgetByTag ( var  root,
var  tag 
)
static

Finds a widget whose tag equals to param tag from root widget.

Parameters
rootwidget which will be seeked.

tag value.

Returns
finded result.
local seekWidgetByTag ( local  root,
local  tag 
)
static

Finds a widget whose tag equals to param tag from root widget.

Parameters
rootwidget which will be seeked.

tag value.

Returns
finded result.

The documentation for this class was generated from the following file: