summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI/m_skinengine.h
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2012-06-25 07:41:22 +0000
committerAlexey Kulakov <panda75@bk.ru>2012-06-25 07:41:22 +0000
commitd589a97bce982440acbef00700c3b275ef80e391 (patch)
treec2ebef24c282458642615431da87380b65974488 /plugins/ExternalAPI/m_skinengine.h
parent04d3b5da86ad9bcf8e32c87b00b5f0988ae47555 (diff)
External API cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@627 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExternalAPI/m_skinengine.h')
-rw-r--r--plugins/ExternalAPI/m_skinengine.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/plugins/ExternalAPI/m_skinengine.h b/plugins/ExternalAPI/m_skinengine.h
deleted file mode 100644
index 98b3e8843a..0000000000
--- a/plugins/ExternalAPI/m_skinengine.h
+++ /dev/null
@@ -1,55 +0,0 @@
-struct ISkinBackend;
-struct ISkinElement;
-
-struct SkinRenderParams
-{
- HDC hdc;
- RECT rc;
-};
-
-struct ISkinDataSource
-{
- virtual LPCTSTR GetText(const TCHAR *key) = 0;
- virtual HICON GetIcon(const TCHAR *key) = 0;
- virtual HBITMAP GetBitmap(const TCHAR *key) = 0;
- virtual ISkinBackend *GetObject(const TCHAR *key) = 0;
-};
-
-struct ISkinElement
-{
- // general manadgement
- virtual void SetParent(ISkinElement *parent) = 0;
- virtual void LoadFromXml(HXML hXml) = 0;
- virtual void SetId(const TCHAR *id) = 0;
- virtual void SetDataSource(ISkinDataSource *ds) = 0;
- virtual void Destroy() = 0;
-
- // rendering and layouting
- virtual void Measure(SkinRenderParams *params) = 0;
- virtual void Layout(SkinRenderParams *params) = 0;
- virtual void Paint(SkinRenderParams *params) = 0;
-
- // element tree
- virtual bool IsComplexObject() = 0;
- virtual ISkinElement *GetParent() = 0;
- virtual int GetChildCount() = 0;
- virtual ISkinElement *GetChild(int index) = 0;
- virtual bool AppendChild(ISkinElement *child) = 0;
- virtual bool InsertChild(ISkinElement *child, int index) = 0;
- virtual void RemoveChild(ISkinElement *child) = 0;
-
- // element properties
- virtual void SetPropText(const TCHAR *key, const TCHAR *value) = 0;
- virtual const TCHAR *GetPropText(const TCHAR *key, const TCHAR *value) = 0;
- virtual void SetPropInt(const TCHAR *key, int value) = 0;
- virtual void SetPropIntText(const TCHAR *key, const TCHAR *value) = 0;
- virtual int GetPropInt(const TCHAR *key) = 0;
-};
-
-struct ISkinBackend
-{
- virtual LPCTSTR GetText(const TCHAR *key) = 0;
- virtual HICON GetIcon(const TCHAR *key) = 0;
- virtual HBITMAP GetBitmap(const TCHAR *key) = 0;
- virtual ISkinBackend *GetObject(const TCHAR *key) = 0;
-};