5#include <interface/obj-ref-i.h>
12#include <res.mgr/SObjDefAttr.h>
13#include <res.mgr/SNamedValue.h>
22 UDI_TEMPLATE = 1 << 3,
25 UDI_DIMENSION = 1 << 6,
27 UDI_GRADIENT = 1 << 8,
120#define GETUIDEF SNS::SUiDef::getSingletonPtr()
122#define GETSTYLE(p) GETUIDEF->GetStyle(p)
123#define GETSKIN(p1, scale) GETUIDEF->GetSkin(p1, scale)
124#define GETBUILTINSKIN(p1) GETUIDEF->GetBuiltinSkin(p1, 100)
125#define GETBUILTINSKIN2(p1, scale) GETUIDEF->GetBuiltinSkin(p1, scale)
126#define GETCOLOR(x) GETUIDEF->GetColor(x)
127#define GETSTRING(x) GETUIDEF->GetString(x)
128#define GETLAYOUTSIZE(x) GETUIDEF->GetLayoutSize(x)
140 SINGLETON2_TYPE(SINGLETON_UIDEF)
343 SList<IUiDefInfo *> m_lstUiDefInfo;
344 SList<ISkinPool *> m_lstSkinPools;
SOUI Font Management Module.
Gradient Pool Management.
Pseudo-Singleton Template.
Skin Object Pool Management.
Smart pointer class for managing COM-style reference-counted objects.
Wrapper class for a critical section.
SFontPool(IRenderFactory *fac)
Constructor.
static IFontPtr GetFont(const SStringW &strFont, int scale)
Get IFontPtr corresponding to the specified description string.
static void SetDefFontInfo(const SStringW &strFontInfo)
Set default font.
static FontInfo GetDefFontInfo()
Get default font information.
Manages the mapping of gradient names to IGradient objects.
Manages named dimensions.
Class for managing default attributes of objects.
Manages the mapping of skin names to ISkinObj objects.
A class representing an ASCII string.
Manages the mapping of style names to XML nodes.
Manages the mapping of template names to template strings.
SUiDef(IRenderFactory *fac)
Constructor.
void PushUiDefInfo(IUiDefInfo *pUiDefInfo, BOOL bPreivate=FALSE)
Pushes a new UI definition information object onto the stack.
IUiDefInfo * GetUiDef()
Retrieves the default UI definition.
SStringW GetTemplateString(const SStringW &strName)
Retrieves a template string by name.
IGradient * GetGradient(const SStringW &strName)
Retrieves a gradient object by name.
ISkinObj * GetSkin(const SStringW &strSkinName, int nScale)
Retrieves a skin object by name and scale.
static IUiDefInfo * CreateUiDefInfo()
Creates a new UI definition information object.
void SetUiDef(IUiDefInfo *pUiDefInfo, bool bUpdateDefFont)
Sets the default UI definition.
SXmlNode GetStyle(const SStringW &strName)
Retrieves a style XML node by name.
SLayoutSize GetLayoutSize(const SStringW &strSize)
Retrieves a layout size from a string name.
BOOL InitDefUiDef(IResProvider *pResProvider, LPCTSTR pszUiDef)
Initializes the default UI definition.
SStringW GetFontDesc(const SStringW &strFont)
Retrieves a font description from a string name.
SStringW GetString(const SStringW &strString)
Retrieves a string value from a string name.
ISkinObj * GetBuiltinSkin(SYS_SKIN uID, int nScale)
Retrieves a built-in skin object by ID and scale.
COLORREF GetColor(const SStringW &strColor)
Retrieves a color value from a string.
BOOL PopUiDefInfo(IUiDefInfo *pUiDefInfo, BOOL bPreivate=FALSE)
Pops a UI definition information object from the stack.
void PushSkinPool(ISkinPool *pSkinPool)
Pushes a new skin pool onto the stack.
BOOL PopSkinPool(ISkinPool *pSkinPool)
Pops a skin pool from the stack.
static ISkinPool * CreateSkinPool(BOOL bAutoScale=TRUE)
Creates a new skin pool.
ISkinPool * GetBuiltinSkinPool()
Retrieves the built-in skin pool.
Class representing an XML node.
Font information structure.
Interface for reference counting.
Interface for Skin Objects.
Interface for UI definition information.
virtual SSkinPool * GetSkinPool()=0
Retrieves the skin pool.
virtual SNamedString & GetNamedString()=0
Retrieves the named string manager.
virtual SNamedDimension & GetNamedDimension()=0
Retrieves the named dimension manager.
virtual UINT Init2(IXmlNode *pNode, BOOL bGlobalDomain, IResProvider *pResProvider=NULL)=0
Initializes the UI definition from an XML node.
virtual UINT Init(IResProvider *pResProvider, LPCTSTR pszUidef)=0
Initializes the UI definition from a resource provider.
virtual SGradientPool * GetGradientPool()=0
Retrieves the gradient pool.
virtual STemplatePool * GetTemplatePool()=0
Retrieves the template pool.
virtual SXmlNode GetCaretInfo()=0
Retrieves the caret information.
virtual SStylePool * GetStylePool()=0
Retrieves the style pool.
virtual SNamedColor & GetNamedColor()=0
Retrieves the named color manager.
virtual SStringW GetDefFontInfo()=0
Retrieves the default font information.
virtual SObjDefAttr * GetObjDefAttr()=0
Retrieves the object default attribute manager.
virtual SNamedFont & GetNamedFont()=0
Retrieves the named font manager.