soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SMenuAttr Class Reference

菜单属性类 More...

#include <SMenu.h>

Inheritance diagram for SMenuAttr:
TObjRefImpl< SObject > SObject

Public Member Functions

 SMenuAttr ()
 构造函数
 
 ~SMenuAttr ()
 析构函数
 
void SetScale (int scale)
 设置缩放比例
 
virtual HRESULT SetAttribute (const SNS::SStringW &amp;amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;amp;strValue, BOOL bLoading=FALSE)
 
- Public Member Functions inherited from TObjRefImpl< SObject >
 TObjRefImpl ()
 Constructor that initializes the reference count to 1.
 
virtual ~TObjRefImpl ()
 Virtual destructor.
 
long AddRef () override
 Increments the reference count.
 
long Release () override
 Decrements the reference count and deletes the object if the count reaches zero.
 
void OnFinalRelease () override
 Deletes the object.
 

Protected Member Functions

int GetTextMargin ()
 获取文本边缘空间
 
int GetIconMargin ()
 获取图标边缘空间
 
CSize GetIconSize ()
 获取图标尺寸
 
int GetItemHeight ()
 获取菜单项高度
 
int GetMaxWidth ()
 获取菜单项最大宽度
 
int GetScale () const
 获取缩放比例
 
SAutoRefPtr< IFontSGetFontPtr ()
 获取字体指针
 
virtual void WINAPI OnInitFinished (SXmlNode xmlNode)
 初始化完成后的回调函数
 

Protected Attributes

SAutoRefPtr< ISkinObjm_pItemSkin
 
SAutoRefPtr< ISkinObjm_pIconSkin
 
SAutoRefPtr< ISkinObjm_pSepSkin
 
SAutoRefPtr< ISkinObjm_pCheckSkin
 
SLayoutSize m_nItemHei
 
SLayoutSize m_nIconMargin
 
SLayoutSize m_nTextMargin
 
COLORREF m_crTxtNormal
 
COLORREF m_crTxtSel
 
COLORREF m_crTxtGray
 
SLayoutSize m_szIcon [2]
 
SDpiAwareFont m_dpiFont
 
SStringW m_strTrCtx
 
SLayoutSize m_nMaxWidth
 
int m_scale
 
- Protected Attributes inherited from TObjRefImpl< SObject >
LONG m_cRef
 Reference count.
 

Friends

class SMenu
 
class SMenuODWnd
 

Detailed Description

菜单属性类

Definition at line 20 of file SMenu.h.

Constructor & Destructor Documentation

◆ SMenuAttr()

SMenuAttr::SMenuAttr ( )

构造函数

Definition at line 26 of file SMenu.cpp.

◆ ~SMenuAttr()

SMenuAttr::~SMenuAttr ( )

析构函数

Definition at line 45 of file SMenu.cpp.

Member Function Documentation

◆ GetFontPtr()

SAutoRefPtr< IFontS > SMenuAttr::GetFontPtr ( )
protected

获取字体指针

Returns
字体指针

Definition at line 87 of file SMenu.cpp.

◆ GetIconMargin()

int SMenuAttr::GetIconMargin ( )
protected

获取图标边缘空间

Returns
图标边缘空间

Definition at line 54 of file SMenu.cpp.

◆ GetIconSize()

CSize SMenuAttr::GetIconSize ( )
protected

获取图标尺寸

Returns
图标尺寸

Definition at line 59 of file SMenu.cpp.

◆ GetItemHeight()

int SMenuAttr::GetItemHeight ( )
protected

获取菜单项高度

Returns
菜单项高度

Definition at line 64 of file SMenu.cpp.

◆ GetMaxWidth()

int SMenuAttr::GetMaxWidth ( )
protected

获取菜单项最大宽度

Returns
菜单项最大宽度

Definition at line 69 of file SMenu.cpp.

◆ GetScale()

int SMenuAttr::GetScale ( ) const
inlineprotected

获取缩放比例

Returns
缩放比例

Definition at line 94 of file SMenu.h.

◆ GetTextMargin()

int SMenuAttr::GetTextMargin ( )
protected

获取文本边缘空间

Returns
文本边缘空间

Definition at line 49 of file SMenu.cpp.

◆ OnInitFinished()

void SMenuAttr::OnInitFinished ( SXmlNode xmlNode)
protectedvirtual

初始化完成后的回调函数

Parameters
xmlNodeXML节点

Definition at line 76 of file SMenu.cpp.

◆ SetAttribute()

virtual HRESULT SMenuAttr::SetAttribute ( const SNS::SStringW &amp;amp;amp;amp; strAttribName,
const SNS::SStringW &amp;amp;amp;amp; strValue,
BOOL bLoading = FALSE )
inlinevirtual

Definition at line 42 of file SMenu.h.

◆ SetScale()

void SMenuAttr::SetScale ( int scale)

设置缩放比例

Parameters
scale缩放比例

Definition at line 95 of file SMenu.cpp.

Friends And Related Symbol Documentation

◆ SMenu

friend class SMenu
friend

Definition at line 21 of file SMenu.h.

◆ SMenuODWnd

friend class SMenuODWnd
friend

Definition at line 22 of file SMenu.h.

Member Data Documentation

◆ m_crTxtGray

COLORREF SMenuAttr::m_crTxtGray
protected

Definition at line 121 of file SMenu.h.

◆ m_crTxtNormal

COLORREF SMenuAttr::m_crTxtNormal
protected

Definition at line 119 of file SMenu.h.

◆ m_crTxtSel

COLORREF SMenuAttr::m_crTxtSel
protected

Definition at line 120 of file SMenu.h.

◆ m_dpiFont

SDpiAwareFont SMenuAttr::m_dpiFont
protected

Definition at line 123 of file SMenu.h.

◆ m_nIconMargin

SLayoutSize SMenuAttr::m_nIconMargin
protected

Definition at line 117 of file SMenu.h.

◆ m_nItemHei

SLayoutSize SMenuAttr::m_nItemHei
protected

Definition at line 116 of file SMenu.h.

◆ m_nMaxWidth

SLayoutSize SMenuAttr::m_nMaxWidth
protected

Definition at line 125 of file SMenu.h.

◆ m_nTextMargin

SLayoutSize SMenuAttr::m_nTextMargin
protected

Definition at line 118 of file SMenu.h.

◆ m_pCheckSkin

SAutoRefPtr<ISkinObj> SMenuAttr::m_pCheckSkin
protected

Definition at line 115 of file SMenu.h.

◆ m_pIconSkin

SAutoRefPtr<ISkinObj> SMenuAttr::m_pIconSkin
protected

Definition at line 113 of file SMenu.h.

◆ m_pItemSkin

SAutoRefPtr<ISkinObj> SMenuAttr::m_pItemSkin
protected

Definition at line 112 of file SMenu.h.

◆ m_pSepSkin

SAutoRefPtr<ISkinObj> SMenuAttr::m_pSepSkin
protected

Definition at line 114 of file SMenu.h.

◆ m_scale

int SMenuAttr::m_scale
protected

Definition at line 126 of file SMenu.h.

◆ m_strTrCtx

SStringW SMenuAttr::m_strTrCtx
protected

Definition at line 124 of file SMenu.h.

◆ m_szIcon

SLayoutSize SMenuAttr::m_szIcon[2]
protected

Definition at line 122 of file SMenu.h.


The documentation for this class was generated from the following files: