cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cocos2d::ui Namespace Reference

Classes

class  Button
 Represents a push-button widget. More...
 
class  CheckBox
 Checkbox is a specific type of two-states button that can be either checked or unchecked. More...
 
class  EditBox
 Class for edit box. More...
 
class  EditBoxDelegate
 Editbox delgate class. More...
 
class  EditBoxImpl
 
class  EditBoxImplAndroid
 
class  EditBoxImplWin
 
class  HBox
 HBox is just a convenient wrapper class for horizontal layout type. More...
 
class  Helper
 
class  ImageView
 A widget to display images. More...
 
class  Layout
 A container for holding a few child widgets. More...
 
class  LayoutComponent
 A component class used for layout. More...
 
class  LayoutManager
 Base class for managing layout. More...
 
class  LayoutParameter
 Base class for various LayoutParameter. More...
 
class  LayoutParameterProtocol
 Protocol for getting a LayoutParameter. More...
 
class  LayoutProtocol
 Layout interface for creating LayoutManger and do actual layout. More...
 
class  LinearHorizontalLayoutManager
 Linear horizontal layouting class. More...
 
class  LinearLayoutParameter
 Linear layout parameter. More...
 
class  LinearVerticalLayoutManager
 Linear vertical layouting class. More...
 
class  ListView
 ListView is a view group that displays a list of scrollable items. More...
 
class  LoadingBar
 Visual indicator of progress in some operation. More...
 
class  Margin
 Margin of widget's in point. More...
 
class  PageView
 Layout manager that allows the user to flip left and right through pages of data. More...
 
class  RelativeBox
 RelativeBox is just a convenient wrapper class for relative layout type. More...
 
class  RelativeLayoutManager
 Relative layouting class. More...
 
class  RelativeLayoutParameter
 Relative layout parameter. More...
 
class  RichElement
 Rich text element base class. More...
 
class  RichElementCustomNode
 Rich element for displaying custom node type. More...
 
class  RichElementImage
 Rich element for displaying images. More...
 
class  RichElementText
 Rich element for displaying text. More...
 
class  RichText
 A container for displaying various RichElements. More...
 
class  Scale9Sprite
 A 9-slice sprite for cocos2d-x. More...
 
class  ScrollView
 Layout container for a view hierarchy that can be scrolled by the user, allowing it to be larger than the physical display. More...
 
class  sealed
 
class  Slider
 UI Slider widget. More...
 
class  Text
 For creating a system font or a TTF font Text. More...
 
class  TextAtlas
 UI TextAtlas widget. More...
 
class  TextBMFont
 A widget for displaying BMFont label. More...
 
class  TextField
 A widget which allows users to input text. More...
 
class  UICCTextField
 A helper class which inherit from. More...
 
class  UIEditBoxImplWinrt
 
class  UIEditBoxImplWp8
 
class  VBox
 VBox is just a convenient wrapper class for vertical layout type. More...
 
class  Widget
 Base class for all ui widgets. More...
 

Typedefs

typedef void(Ref::* SEL_SelectedStateEvent )(Ref *, CheckBoxEventType)
 A callback which will be called after checkbox event happens. More...
 
typedef void(Ref::* SEL_ListViewEvent )(Ref *, ListViewEventType)
 A callback which would be called when a ListView item is clicked. More...
 
typedef void(Ref::* SEL_PageViewEvent )(Ref *, PageViewEventType)
 A callback which would be called when a PageView turning event is happening. More...
 
typedef void(Ref::* SEL_ScrollViewEvent )(Ref *, ScrollviewEventType)
 A callback which would be called when a ScrollView is scrolling. More...
 
typedef void(Ref::* SEL_SlidPercentChangedEvent )(Ref *, SliderEventType)
typedef void(Ref::* SEL_TextFieldEvent )(Ref *, TextFiledEventType)
 A callback which would be called when a TextField event happens. More...
 
typedef void(Ref::* SEL_TouchEvent )(Ref *, TouchEventType)
 Touch event callback. More...
 

Enumerations

enum  CheckBoxEventType { CHECKBOX_STATE_EVENT_SELECTED, CHECKBOX_STATE_EVENT_UNSELECTED }
 Checkbox event type, there are two type here: More...
 
enum  ListViewEventType { LISTVIEW_ONSELECTEDITEM_START, LISTVIEW_ONSELECTEDITEM_END }
 ListView click item event type. More...
 
enum  PageViewEventType { PAGEVIEW_EVENT_TURNING }
 PageView page turn event type. More...
 
enum  ScrollviewEventType {
  SCROLLVIEW_EVENT_SCROLL_TO_TOP, SCROLLVIEW_EVENT_SCROLL_TO_BOTTOM, SCROLLVIEW_EVENT_SCROLL_TO_LEFT, SCROLLVIEW_EVENT_SCROLL_TO_RIGHT,
  SCROLLVIEW_EVENT_SCROLLING, SCROLLVIEW_EVENT_BOUNCE_TOP, SCROLLVIEW_EVENT_BOUNCE_BOTTOM, SCROLLVIEW_EVENT_BOUNCE_LEFT,
  SCROLLVIEW_EVENT_BOUNCE_RIGHT
}
 Scrollview scroll event type. More...
 
enum  SliderEventType { SLIDER_PERCENTCHANGED }
 
enum  TextFiledEventType { TEXTFIELD_EVENT_ATTACH_WITH_IME, TEXTFIELD_EVENT_DETACH_WITH_IME, TEXTFIELD_EVENT_INSERT_TEXT, TEXTFIELD_EVENT_DELETE_BACKWARD }
 TextField event type. More...
 
enum  TouchEventType { TOUCH_EVENT_BEGAN, TOUCH_EVENT_MOVED, TOUCH_EVENT_ENDED, TOUCH_EVENT_CANCELED }
 Touch event type. More...
 

Functions

CC_GUI_DLL const char *  ()
 Get current cocos GUI module version string. More...
 
var  ()
 Get current cocos GUI module version string. More...
 
local  ()
 Get current cocos GUI module version string. More...
 
EditBoxImpl (EditBox *pEditBox)

Typedef Documentation

typedef void(Ref::*
SEL_ListViewEvent)(Ref
*, ListViewEventType)

A callback which would be called when a ListView item is clicked.

Deprecated:
Use ccListViewCallback instead.
typedef void(Ref::*
SEL_ListViewEvent)(Ref
*, ListViewEventType)

A callback which would be called when a ListView item is clicked.

Deprecated:
Use ccListViewCallback instead.
typedef void(Ref::*
SEL_ListViewEvent)(Ref
*, ListViewEventType)

A callback which would be called when a ListView item is clicked.

Deprecated:
Use ccListViewCallback instead.
typedef void(Ref::*
SEL_PageViewEvent)(Ref
*, PageViewEventType)

A callback which would be called when a PageView turning event is happening.

Deprecated:
Use PageView::ccPageViewCallback instead.
typedef void(Ref::*
SEL_PageViewEvent)(Ref
*, PageViewEventType)

A callback which would be called when a PageView turning event is happening.

Deprecated:
Use PageView::ccPageViewCallback instead.
typedef void(Ref::*
SEL_PageViewEvent)(Ref
*, PageViewEventType)

A callback which would be called when a PageView turning event is happening.

Deprecated:
Use PageView::ccPageViewCallback instead.
typedef void(Ref::*
SEL_ScrollViewEvent)(Ref
*, ScrollviewEventType)

A callback which would be called when a ScrollView is scrolling.

Deprecated:
Use
See also
ccScrollViewCallback instead.
typedef void(Ref::*
SEL_ScrollViewEvent)(Ref
*, ScrollviewEventType)

A callback which would be called when a ScrollView is scrolling.

Deprecated:
Use
See also
ccScrollViewCallback instead.
typedef void(Ref::*
SEL_ScrollViewEvent)(Ref
*, ScrollviewEventType)

A callback which would be called when a ScrollView is scrolling.

Deprecated:
Use
See also
ccScrollViewCallback instead.
typedef void(Ref::*
SEL_SelectedStateEvent)(Ref
*, CheckBoxEventType)

A callback which will be called after checkbox event happens.

Deprecated:
use CheckBox::ccCheckBoxCallback instead.
typedef void(Ref::*
SEL_SelectedStateEvent)(Ref
*, CheckBoxEventType)

A callback which will be called after checkbox event happens.

Deprecated:
use CheckBox::ccCheckBoxCallback instead.
typedef void(Ref::*
SEL_SelectedStateEvent)(Ref
*, CheckBoxEventType)

A callback which will be called after checkbox event happens.

Deprecated:
use CheckBox::ccCheckBoxCallback instead.
typedef void(Ref::*
SEL_SlidPercentChangedEvent)(Ref
*, SliderEventType)
typedef void(Ref::*
SEL_SlidPercentChangedEvent)(Ref
*, SliderEventType)
typedef void(Ref::*
SEL_SlidPercentChangedEvent)(Ref
*, SliderEventType)
typedef void(Ref::*
SEL_TextFieldEvent)(Ref
*, TextFiledEventType)

A callback which would be called when a TextField event happens.

Deprecated:
Use
See also
ccTextFieldCallback instead.
typedef void(Ref::*
SEL_TextFieldEvent)(Ref
*, TextFiledEventType)

A callback which would be called when a TextField event happens.

Deprecated:
Use
See also
ccTextFieldCallback instead.
typedef void(Ref::*
SEL_TextFieldEvent)(Ref
*, TextFiledEventType)

A callback which would be called when a TextField event happens.

Deprecated:
Use
See also
ccTextFieldCallback instead.
typedef void(Ref::*
SEL_TouchEvent)(Ref
*, TouchEventType)

Touch event callback.

Deprecated:
use Widget::ccWidgetTouchCallback instead
typedef void(Ref::*
SEL_TouchEvent)(Ref
*, TouchEventType)

Touch event callback.

Deprecated:
use Widget::ccWidgetTouchCallback instead
typedef void(Ref::*
SEL_TouchEvent)(Ref
*, TouchEventType)

Touch event callback.

Deprecated:
use Widget::ccWidgetTouchCallback instead

Function Documentation

CC_GUI_DLL const char*
cocos2d::ui::CocosGUIVersion
( )

Get current cocos GUI module version string.

Returns
A string representation of GUI module version number
var CocosGUIVersion ( )

Get current cocos GUI module version string.

Returns
A string representation of GUI module version number
local CocosGUIVersion ( )

Get current cocos GUI module version string.

Returns
A string representation of GUI module version number
EditBoxImpl*
cocos2d::ui::__createSystemEditBox
( EditBox *  pEditBox)
var __createSystemEditBox ( var  pEditBox)
local __createSystemEditBox ( local  pEditBox)