soui 5.0.0.1
 
Loading...
Searching...
No Matches
ILayout Struct Reference
Inheritance diagram for ILayout:
IObject IObjRef SObjectImpl< ILayout > TObjRefImpl< SObjectImpl< ILayout > > SGridLayout SLinearLayout SouiLayout SHBox SVBox

Public Member Functions

 DEF_OBJ_BASE (ILayout, Layout) long AddRef() PURE
 添加引用
 
long Release () PURE
 释放引用
 
void OnFinalRelease () PURE
 释放对象
 
BOOL IsClass (LPCWSTR lpszName) SCONST PURE
 判断this是不是属于指定的类型
 
LPCWSTR GetObjectClass () SCONST PURE
 获得类型名
 
int GetObjectType () SCONST PURE
 获得对象类型
 
int GetID () SCONST PURE
 获取对象ID
 
void SetID (int nID) PURE
 设置对象ID
 
LPCWSTR GetName () SCONST PURE
 获取对象Name
 
LPCSTR GetNameA () SCONST PURE
 
void SetName (LPCWSTR pszName) PURE
 设置对象Name
 
BOOL InitFromXml (IXmlNode *xmlNode) PURE
 从XML结节初始化SObject对象
 
void OnInitFinished (IXmlNode *xmlNode) PURE
 属性初始化完成处理接口
 
HRESULT ISetAttribute (const IStringW *strAttribName, const IStringW *strValue, BOOL bLoading) PURE
 设置一个对象属性
 
HRESULT SetAttributeA (LPCSTR pszAttr, LPCSTR pszValue, BOOL bLoading DEF_VAL(FALSE)) PURE
 设置一个对象属性
 
HRESULT SetAttribute (LPCWSTR pszAttr, LPCWSTR pszValue, BOOL bLoading DEF_VAL(FALSE)) PURE
 设置一个对象属性
 
BOOL GetAttribute (LPCWSTR strAttr, IStringW *pValue) SCONST PURE
 通过属性名查询属性值
 
HRESULT AfterAttribute (LPCWSTR pszAttr, LPCWSTR pszValue, BOOL bLoading, HRESULT hr) PURE
 属性处理后调用的方法
 
void SetAttrHandler (FunAttrHandler attrHandler) PURE
 设置属性处理回调方法
 
BOOL IsParamAcceptable (const ILayoutParam *pLayoutParam) SCONST PURE
 判断当前布局类型和布局参数是否匹配
 
void LayoutChildren (IWindow *pParent) PURE
 布局指定控件的子窗口
 
ILayoutParamCreateLayoutParam () SCONST PURE
 创建和当前布局匹配的布局参数对象
 
SIZE MeasureChildren (const IWindow *pParent, int nWidth, int nHeight) SCONST PURE
 计算窗口大小
 
- Public Member Functions inherited from IObject
long AddRef () PURE
 添加引用
 
long Release () PURE
 释放引用
 
void OnFinalRelease () PURE
 释放对象
 
BOOL IsClass (LPCWSTR lpszName) SCONST PURE
 判断this是不是属于指定的类型
 
LPCWSTR GetObjectClass () SCONST PURE
 获得类型名
 
int GetObjectType () SCONST PURE
 获得对象类型
 
int GetID () SCONST PURE
 获取对象ID
 
void SetID (int nID) PURE
 设置对象ID
 
LPCWSTR GetName () SCONST PURE
 获取对象Name
 
LPCSTR GetNameA () SCONST PURE
 
void SetName (LPCWSTR pszName) PURE
 设置对象Name
 
BOOL InitFromXml (IXmlNode *xmlNode) PURE
 从XML结节初始化SObject对象
 
void OnInitFinished (IXmlNode *xmlNode) PURE
 属性初始化完成处理接口
 
HRESULT ISetAttribute (const IStringW *strAttribName, const IStringW *strValue, BOOL bLoading) PURE
 设置一个对象属性
 
HRESULT SetAttributeA (LPCSTR pszAttr, LPCSTR pszValue, BOOL bLoading DEF_VAL(FALSE)) PURE
 设置一个对象属性
 
HRESULT SetAttribute (LPCWSTR pszAttr, LPCWSTR pszValue, BOOL bLoading DEF_VAL(FALSE)) PURE
 设置一个对象属性
 
BOOL GetAttribute (LPCWSTR strAttr, IStringW *pValue) SCONST PURE
 通过属性名查询属性值
 
HRESULT AfterAttribute (LPCWSTR pszAttr, LPCWSTR pszValue, BOOL bLoading, HRESULT hr) PURE
 属性处理后调用的方法
 
void SetAttrHandler (FunAttrHandler attrHandler) PURE
 设置属性处理回调方法
 
- Public Member Functions inherited from IObjRef
long AddRef () PURE
 Increases the reference count.
 
long Release () PURE
 Decreases the reference count.
 
void OnFinalRelease () PURE
 Called when the reference count reaches zero and the object is about to be released.
 

Detailed Description

Definition at line 110 of file slayout-i.h.

Member Function Documentation

◆ AfterAttribute()

HRESULT ILayout::AfterAttribute ( LPCWSTR pszAttr,
LPCWSTR pszValue,
BOOL bLoading,
HRESULT hr )

属性处理后调用的方法

OnAttribute

Parameters
LPCWSTRpszAttr– 属性名
LPCWSTRpszValue – 属性值
BOOLbLoading – 对象创建时由系统调用标志
HRESULThr – 属性处理结果 Describe 不做处理,直接返回

◆ CreateLayoutParam()

ILayoutParam * ILayout::CreateLayoutParam ( )

创建和当前布局匹配的布局参数对象

Returns
ILayoutParam *–布局参数对象

◆ GetAttribute()

BOOL ILayout::GetAttribute ( LPCWSTR strAttr,
IStringW * pValue )

通过属性名查询属性值

GetAttribute

Parameters
LPCWSTRstrAttr – 属性名
IStringW* pValue – 属性值
Returns
BOOL, TRUE:获取成功,FALSE:获取失败,属性不存在 Describe 默认返回空

◆ GetID()

int ILayout::GetID ( )

获取对象ID

GetID

Returns
int – 对象ID Describe

◆ GetName()

LPCWSTR ILayout::GetName ( )

获取对象Name

GetName

Returns
LPCWSTR – 对象Name Describe

◆ GetObjectClass()

LPCWSTR ILayout::GetObjectClass ( )

获得类型名

GetObjectClass

Returns
LPCWSTR – 类型名 Describe 这是一个虚函数,注意与GetClassName的区别。

◆ GetObjectType()

int ILayout::GetObjectType ( )

获得对象类型

GetObjectType

Returns
int – 对象类型 Describe 这是一个虚函数,注意与GetClassType的区别。

◆ InitFromXml()

BOOL ILayout::InitFromXml ( IXmlNode * xmlNode)

从XML结节初始化SObject对象

InitFromXml

Parameters
SXmlNode– XML结节
Returns
BOOL – 成功返回TRUE Describe

◆ IsClass()

BOOL ILayout::IsClass ( LPCWSTR lpszName)

判断this是不是属于指定的类型

IsClass

Parameters
LPCWSTRlpszName – 测试类型名
Returns
BOOL – true是测试类型 Describe

◆ ISetAttribute()

HRESULT ILayout::ISetAttribute ( const IStringW * strAttribName,
const IStringW * strValue,
BOOL bLoading )

设置一个对象属性

ISetAttribute

Parameters
constIStringW *strAttribName – 属性名
constIStringW *strValue – 属性值
BOOLbLoading – 对象创建时由系统调用标志
Returns
HRESULT – 处理处理结果 Describe

◆ IsParamAcceptable()

BOOL ILayout::IsParamAcceptable ( const ILayoutParam * pLayoutParam)

判断当前布局类型和布局参数是否匹配

Parameters
pLayoutParamconst ILayoutParam *–布局参数
Returns
TRUE–匹配

◆ LayoutChildren()

void ILayout::LayoutChildren ( IWindow * pParent)

布局指定控件的子窗口

Parameters
pParentIWindow *–布局控件
Returns

◆ MeasureChildren()

SIZE ILayout::MeasureChildren ( const IWindow * pParent,
int nWidth,
int nHeight )

计算窗口大小

Parameters
pParentconst IWindow*–目标窗口
nWidthint–父窗口宽度
nHeightint–父窗口高度
Returns
SIZE–目标窗口大小

◆ OnInitFinished()

void ILayout::OnInitFinished ( IXmlNode * xmlNode)

属性初始化完成处理接口

OnInitFinished

Parameters
SXmlNodexmlNode – 属性节点
Returns
void Describe

◆ SetAttrHandler()

void ILayout::SetAttrHandler ( FunAttrHandler attrHandler)

设置属性处理回调方法

SetAttrHandler

Parameters
FunAttrHandlerattrHandler– 属性处理回调方法
Returns
void Describe

◆ SetAttribute()

HRESULT ILayout::SetAttribute ( LPCWSTR pszAttr,
LPCWSTR pszValue,
BOOL bLoading DEF_VALFALSE )

设置一个对象属性

SetAttribute

Parameters
LPCWSTRpszAttr – 属性名
LPCWSTRpszValue – 属性值
BOOLbLoading – 对象创建时由系统调用标志
Returns
HRESULT – 处理处理结果 Describe

◆ SetAttributeA()

HRESULT ILayout::SetAttributeA ( LPCSTR pszAttr,
LPCSTR pszValue,
BOOL bLoading DEF_VALFALSE )

设置一个对象属性

SetAttribute

Parameters
LPCSTRpszAttr – 属性名
LPCSTRpszValue – 属性值
BOOLbLoading – 对象创建时由系统调用标志
Returns
HRESULT – 处理处理结果 Describe

◆ SetID()

void ILayout::SetID ( int nID)

设置对象ID

Parameters
nIDint–对象ID
Returns

◆ SetName()

void ILayout::SetName ( LPCWSTR pszName)

设置对象Name

Parameters
pszNameLPCWSTR – 对象Name
Returns

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