| cocos2d-x 3.0 |
)- 类列表 - 类索引 - 类继承关系 - 类成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Public 类型 | Public 成员函数 | 静态 Public 成员函数 | Protected 属性 | 所有成员列表
LayoutParameter类 参考
NA NA 更多…
#include
类 LayoutParameter 继承关系图:
| ## Public 类型 | |
| enum | Type { NONE = 0, LINEAR, RELATIVE } |
| ## Public 成员函数 | |
| LayoutParameter () | |
| Default constructor(默认构造函数) 更多… | |
| virtual | ~LayoutParameter () |
| Default destructor(默认虚构函数) 更多… | |
| void | setMargin (const Margin &margin) |
| 设置LayoutParameter的边距(Margin)参数. 更多… | |
| const Margin & | getMargin () const |
| 获取LayoutParameter的边距(Margin)参数. 更多… | |
| Type | getLayoutType () const |
| 获取LayoutParameter的参数类型(LayoutParameterType). 更多… | |
| LayoutParameter | clone () |
| virtual LayoutParameter | createCloneInstance () |
| virtual void | copyProperties (LayoutParameter model) |
Public 成员函数 继承自 Ref | |
| void | retain () |
| 保留所有权. 更多… | |
| void | release () |
| 立即释放所有权. 更多… | |
| Ref | autorelease () |
| 自动释放所有权在不久的将来. 更多… | |
| unsigned int | getReferenceCount () const |
| 返回Ref对象当前的引用计数. 更多… | |
| virtual | ~Ref () |
| NA NA 更多… | |
| ## 静态 Public 成员函数 | |
| static LayoutParameter * | create () |
| 分配(allocates)并初始化(initializes). 更多… | |
| ## Protected 属性 | |
| Margin | _margin |
| Type | _layoutParameterType |
Protected 属性 继承自 Ref | |
| unsigned int | _referenceCount |
| 引用计数 更多… | |
| ## 额外继承的成员函数 | |
Protected 成员函数 继承自 Ref | |
| Ref () | |
| 构造函数 更多… | |
详细描述
NA NA
成员枚举类型说明
| strong |
| 枚举值 | |
|---|---|
| NONE | |
| LINEAR | |
| RELATIVE |
构造及析构函数说明
| inline |
Default constructor(默认构造函数)
| inlinevirtual |
Default destructor(默认虚构函数)
成员函数说明
| LayoutParameter* clone | ( | ) |
| virtual |
被 RelativeLayoutParameter , 以及 LinearLayoutParameter 重载.
| static |
分配(allocates)并初始化(initializes).
- 返回
- 返回一个被标记为自动释放(autorelease)且初始化好的LayoutParameter.
| virtual |
被 RelativeLayoutParameter , 以及 LinearLayoutParameter 重载.
| Type getLayoutType | ( | ) | const |
获取LayoutParameter的参数类型(LayoutParameterType).
- 返回
- LayoutParameterType
| const Margin& getMargin | ( | ) | const |
获取LayoutParameter的边距(Margin)参数.
- 参见
- Margin
- 返回
- const Margin&
| void setMargin | ( | const Margin & | margin | ) |
设置LayoutParameter的边距(Margin)参数.
- 参见
- Margin
- 参数
margin
类成员变量说明
| protected |
| protected |
该类的文档由以下文件生成:
- /Users/zeroyang/Documents/github/cocos2d-x/cocos/ui/UILayoutParameter.h
- cocos2d
- ui
- LayoutParameter
- 生成于 2014年 五月 29日 星期四 09:41:56 , 为 cocos2d-x使用
1.8.6
Public 成员函数 继承自 