From 64877ca2a7c90cd610b884d41b18a78a376962bc Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Wed, 27 Apr 2011 15:45:27 +0000 Subject: move api to folder git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@50 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- ExternalAPI/m_skinengine.h | 55 ++++++++++++++++++++++++++++++++++++++++++ skinengine/api/m_skinengine.h | 55 ------------------------------------------ skinengine/skinengine.vcproj | 4 +-- skinengine/skinengine_8.vcproj | 4 +-- skinengine/src/headers.h | 2 +- 5 files changed, 60 insertions(+), 60 deletions(-) create mode 100644 ExternalAPI/m_skinengine.h delete mode 100644 skinengine/api/m_skinengine.h diff --git a/ExternalAPI/m_skinengine.h b/ExternalAPI/m_skinengine.h new file mode 100644 index 0000000..98b3e88 --- /dev/null +++ b/ExternalAPI/m_skinengine.h @@ -0,0 +1,55 @@ +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; +}; diff --git a/skinengine/api/m_skinengine.h b/skinengine/api/m_skinengine.h deleted file mode 100644 index 98b3e88..0000000 --- a/skinengine/api/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; -}; diff --git a/skinengine/skinengine.vcproj b/skinengine/skinengine.vcproj index 77dea58..8194957 100644 --- a/skinengine/skinengine.vcproj +++ b/skinengine/skinengine.vcproj @@ -41,7 +41,7 @@