| cocos2d-x 3.0 |
)- 类列表 - 类索引 - 类继承关系 - 类成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Public 类型 | Public 成员函数 | 静态 Public 成员函数 | Protected 属性 | 友元 | 所有成员列表
RelativeLayoutParameter类 参考
NA NA 更多…
#include
类 RelativeLayoutParameter 继承关系图:
| ## Public 成员函数 | |
| RelativeLayoutParameter () | |
| Default constructor(默认构造函数) 更多… | |
| virtual | ~RelativeLayoutParameter () |
| Default destructor(默认虚构函数) 更多… | |
| void | setAlign (RelativeAlign align) |
| 设置LayoutParameter的相对排列(RelativeAlign)参数. 更多… | |
| RelativeAlign | getAlign () const |
| 获取LayoutParameter的相对排列(RelativeAlign)参数. 更多… | |
| void | setRelativeToWidgetName (const std::string &name) |
| 设置LayoutParameter的key. 更多… | |
| const std::string & | getRelativeToWidgetName () const |
| 获取LayoutParameter的key. 更多… | |
| void | setRelativeName (const std::string &name) |
| 设置LayoutParameter的相对布局(Relative Layout)名字. 更多… | |
| const std::string & | getRelativeName () const |
| 获取LayoutParameter的相对布局(Relative Layout)名字. 更多… | |
| virtual LayoutParameter | createCloneInstance () override |
| virtual void | copyProperties (LayoutParameter model) override |
Public 成员函数 继承自 LayoutParameter | |
| 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 () |
Public 成员函数 继承自 Ref | |
| void | retain () |
| 保留所有权. 更多… | |
| void | release () |
| 立即释放所有权. 更多… | |
| Ref | autorelease () |
| 自动释放所有权在不久的将来. 更多… | |
| unsigned int | getReferenceCount () const |
| 返回Ref对象当前的引用计数. 更多… | |
| virtual | ~Ref () |
| NA NA 更多… | |
| ## 静态 Public 成员函数 | |
| static RelativeLayoutParameter | create () |
| 分配(allocates)并初始化(initializes). 更多… | |
静态 Public 成员函数 继承自 LayoutParameter | |
| static LayoutParameter | create () |
| 分配(allocates)并初始化(initializes). 更多… | |
| ## Protected 属性 | |
| RelativeAlign | _relativeAlign |
| std::string | _relativeWidgetName |
| std::string | _relativeLayoutName |
| bool | _put |
Protected 属性 继承自 LayoutParameter | |
| Margin | _margin |
| Type | _layoutParameterType |
Protected 属性 继承自 Ref | |
| unsigned int | _referenceCount |
| 引用计数 更多… | |
| ## 友元 | |
| class | RelativeLayoutExecutant |
| ## 额外继承的成员函数 | |
Protected 成员函数 继承自 Ref | |
| Ref () | |
| 构造函数 更多… | |
详细描述
NA NA
成员枚举类型说明
| strong |
构造及析构函数说明
| inline |
Default constructor(默认构造函数)
| inlinevirtual |
Default destructor(默认虚构函数)
成员函数说明
| overridevirtual |
重载 LayoutParameter .
| static |
分配(allocates)并初始化(initializes).
- 返回
- 返回一个被标记为自动释放(autorelease)且初始化好的LayoutParameter.
| overridevirtual |
重载 LayoutParameter .
| RelativeAlign getAlign | ( | ) | const |
获取LayoutParameter的相对排列(RelativeAlign)参数.
- 返回
- RelativeAlign
| const std::string& getRelativeName | ( | ) | const |
获取LayoutParameter的相对布局(Relative Layout)名字.
- 返回
- name
| const std::string& getRelativeToWidgetName | ( | ) | const |
获取LayoutParameter的key.
这个key和widget的名字相关.
- 返回
- name
| void setAlign | ( | RelativeAlign | align | ) |
设置LayoutParameter的相对排列(RelativeAlign)参数.
- 参数
RelativeAlign
| void setRelativeName | ( | const std::string & | name | ) |
设置LayoutParameter的相对布局(Relative Layout)名字.
- 参数
name
| void setRelativeToWidgetName | ( | const std::string & | name | ) |
设置LayoutParameter的key.
这个key和widget的名字相关.
- 参数
name
友元及相关函数文档
| friend |
类成员变量说明
| protected |
| protected |
| protected |
| protected |
该类的文档由以下文件生成:
- /Users/zeroyang/Documents/github/cocos2d-x/cocos/ui/UILayoutParameter.h
- cocos2d
- ui
- RelativeLayoutParameter
- 生成于 2014年 五月 29日 星期四 09:41:56 , 为 cocos2d-x使用
1.8.6
Public 类型 继承自 