|
- cc = cc or {}
-
- cc.BrightStyle =
- {
- none = -1,
- normal = 0,
- highlight = 1,
- }
-
- cc.WidgetType =
- {
- widget = 0, --control
- container = 1, --container
- }
-
- cc.TextureResType =
- {
- localType = 0,
- plistType = 1,
- }
-
- cc.TouchEventType =
- {
- began = 0,
- moved = 1,
- ended = 2,
- canceled = 3,
- }
-
- cc.SizeType =
- {
- absolute = 0,
- percent = 1,
- }
-
- cc.PositionType = {
- absolute = 0,
- percent = 1,
- }
-
- cc.CheckBoxEventType =
- {
- selected = 0,
- unselected = 1,
- }
-
- cc.TextFiledEventType =
- {
- attach_with_ime = 0,
- detach_with_ime = 1,
- insert_text = 2,
- delete_backward = 3,
- enter = 4,
- }
-
- cc.LayoutBackGroundColorType =
- {
- none = 0,
- solid = 1,
- gradient = 2,
- }
-
- cc.LayoutType =
- {
- absolute = 0,
- linearVertical = 1,
- linearHorizontal = 2,
- relative = 3,
- }
-
- cc.LayoutParameterType =
- {
- none = 0,
- linear = 1,
- relative = 2,
- }
-
- cc.LinearGravity =
- {
- none = 0,
- left = 1,
- top = 2,
- right = 3,
- bottom = 4,
- centerVertical = 5,
- centerHorizontal = 6,
- }
-
- cc.RelativeAlign =
- {
- alignNone = 0,
- alignParentTopLeft = 1,
- alignParentTopCenterHorizontal = 2,
- alignParentTopRight = 3,
- alignParentLeftCenterVertical = 4,
- centerInParent = 5,
- alignParentRightCenterVertical = 6,
- alignParentLeftBottom = 7,
- alignParentBottomCenterHorizontal = 8,
- alignParentRightBottom = 9,
- locationAboveLeftAlign = 10,
- locationAboveCenter = 11,
- locationAboveRightAlign = 12,
- locationLeftOfTopAlign = 13,
- locationLeftOfCenter = 14,
- locationLeftOfBottomAlign = 15,
- locationRightOfTopAlign = 16,
- locationRightOfCenter = 17,
- locationRightOfBottomAlign = 18,
- locationBelowLeftAlign = 19,
- locationBelowCenter = 20,
- locationBelowRightAlign = 21,
- }
-
- cc.SliderEventType = {percentChanged = 0}
-
- cc.LoadingBarType = { left = 0, right = 1}
-
- cc.ScrollViewDir = {
- none = 0,
- vertical = 1,
- horizontal = 2,
- both = 3,
- }
-
- cc.ScrollViewMoveDir = {
- none = 0,
- up = 1,
- down = 2,
- left = 3,
- right = 4,
- }
-
- cc.ScrollviewEventType = {
- scrollToTop = 0,
- scrollToBottom = 1,
- scrollToLeft = 2,
- scrollToRight = 3,
- scrolling = 4,
- -- scrollingEnded = 5,
- bounceTop = 5,
- bounceBottom = 6,
- bounceLeft = 7,
- bounceRight = 8,
- bounceTopEnd = 9,
- bounceBottomEnd = 10,
- bounceLeftEnd = 11,
- bounceRightEnd = 12,
- }
-
- cc.ListViewDirection = {
- none = 0,
- vertical = 1,
- horizontal = 2,
- }
-
- cc.ListViewMoveDirection = {
- none = 0,
- up = 1,
- down = 2,
- left = 3,
- right = 4,
- }
-
- cc.ListViewEventType = {
- onsSelectedItem = 0,
- }
-
- cc.PageViewEventType = {
- turning = 0,
- }
-
- cc.PVTouchDir = {
- touchLeft = 0,
- touchRight = 1,
- }
-
- cc.ListViewGravity = {
- left = 0,
- right = 1,
- centerHorizontal = 2,
- top = 3,
- bottom = 4 ,
- centerVertical = 5,
- }
-
- cc.WidgetEvent = {
- CHANGED_TO_NORMAL = 0,
- CHANGED_TO_PRESSED = 1,
- CHANGED_TO_DISABLED = 2,
- SIZE_CHANGED = 3,
- };
|