├── xskin_dll
├── stdafx.cpp
├── dllmain.cpp
├── targetver.h
├── xskin_dll.cpp
├── stdafx.h
└── ReadMe.txt
├── xskin_test
├── xskin_test.h
├── res.zip
├── res1.zip
├── skin.zip
├── Resource.h
├── small.ico
├── stdafx.cpp
├── disk
│ └── 10.jpg
├── targetver.h
├── xskin_test.rc
├── xskin_test.ico
├── res
│ ├── image
│ │ ├── 10.jpg
│ │ ├── bhzz.png
│ │ ├── cxye.png
│ │ ├── gas.png
│ │ ├── kh.png
│ │ ├── khzz.png
│ │ ├── water.png
│ │ ├── bk_shadow.png
│ │ ├── metro_bk.png
│ │ ├── scrollbar.png
│ │ ├── testimg.bmp
│ │ ├── thunder.png
│ │ ├── background.bmp
│ │ ├── combobox_checked.png
│ │ ├── combobox_normal.png
│ │ └── combobox_disabled.png
│ ├── string
│ │ ├── string.xml
│ │ ├── string_tw.xml
│ │ └── string_zh.xml
│ ├── skin
│ │ ├── VScrollBar_LineUp.xml
│ │ ├── VScrollBar_Track.xml
│ │ ├── VScrollBar_LineDown.xml
│ │ ├── VScrollBar.xml
│ │ └── ComboBox.xml
│ └── layout
│ │ └── mainwindow.xml
├── skin
│ ├── image
│ │ ├── box_bk.png
│ │ ├── button.png
│ │ ├── radio_bk.png
│ │ ├── tabitem.png
│ │ ├── testimg.bmp
│ │ ├── box_check.png
│ │ ├── scrollbar.png
│ │ └── radio_check.png
│ └── skin
│ │ ├── UIListView.xml
│ │ ├── UIProgressBar.xml
│ │ ├── UISlider.xml
│ │ ├── HScrollBar_LineUp.xml
│ │ ├── VScrollBar_LineUp.xml
│ │ ├── VScrollBar_Track.xml
│ │ ├── HScrollBar_LineDown.xml
│ │ ├── HScrollBar_Track.xml
│ │ ├── VScrollBar_LineDown.xml
│ │ ├── HScrollBar.xml
│ │ ├── VScrollBar.xml
│ │ ├── UIButton.xml
│ │ ├── UIEditView.xml
│ │ ├── UISlider_Handle.xml
│ │ ├── UIComboBox.xml
│ │ ├── UITabItem.xml
│ │ ├── UICheckBox.xml
│ │ └── UIRadioButton.xml
├── stdafx.h
├── xskin_test.vcxproj.user
├── dialog.xml
├── xskin_test.cpp
├── listitem.xml
├── App.h
└── xskin_test.vcxproj.filters
├── xskin
├── src
│ ├── view
│ │ ├── UIEditView.cpp
│ │ ├── UITabItem.cpp
│ │ ├── UICheckBox.cpp
│ │ ├── UIHyperlink.cpp
│ │ ├── UIPanel.cpp
│ │ ├── UITabBar.cpp
│ │ ├── UIButton.cpp
│ │ ├── UIListItem.cpp
│ │ ├── UIProgressBar.cpp
│ │ ├── UITextView.cpp
│ │ └── UICardLayout.cpp
│ ├── event
│ │ ├── UIFocusEvent.cpp
│ │ ├── UITimerEvent.cpp
│ │ ├── UIWheelEvent.cpp
│ │ ├── UIKeyEvent.cpp
│ │ ├── UIActionEvent.cpp
│ │ ├── UIHierarchyEvent.cpp
│ │ ├── UIMouseEvent.cpp
│ │ └── UIEvent.cpp
│ ├── core
│ │ ├── UIResponser.cpp
│ │ ├── UIObject.cpp
│ │ └── UIApplication.cpp
│ ├── animation
│ │ ├── UIAlphaAnimation.cpp
│ │ ├── UIBoundAnimation.cpp
│ │ ├── UITranslateAnimation.cpp
│ │ └── UIScaleAnimation.cpp
│ ├── model
│ │ └── UIModel.cpp
│ └── gfx
│ │ ├── UIPen.cpp
│ │ ├── UIBrush.cpp
│ │ ├── UIBitmap.cpp
│ │ ├── UIRender.cpp
│ │ └── UIFont.cpp
└── include
│ ├── core
│ ├── UIAlign.h
│ ├── UISizePolicy.h
│ ├── UIResponser.h
│ ├── RefCounted.h
│ ├── UIObject.h
│ ├── UISize.h
│ ├── UIPoint.h
│ ├── UIApplication.h
│ ├── UIMeasure.h
│ ├── UIString.h
│ ├── UIAsset.h
│ ├── UIRect.h
│ └── AutoPtr.h
│ ├── event
│ ├── UIFocusEvent.h
│ ├── UITimerEvent.h
│ ├── UIWheelEvent.h
│ ├── UIKeyEvent.h
│ ├── UIHierarchyEvent.h
│ ├── UIMouseEvent.h
│ ├── UIActionEvent.h
│ └── UIEvent.h
│ ├── view
│ ├── UITabItem.h
│ ├── UIHyperlink.h
│ ├── UICheckBox.h
│ ├── UIListItem.h
│ ├── UIButton.h
│ ├── UITabBar.h
│ ├── UIImageButton.h
│ ├── UITextView.h
│ ├── UICardLayout.h
│ ├── UIBoxLayout.h
│ ├── UIProgressBar.h
│ ├── UIPanel.h
│ ├── UIImageView.h
│ ├── UIListView.h
│ ├── UIRadioButton.h
│ ├── UIComboBox.h
│ ├── UIGridLayout.h
│ ├── UIScrollView.h
│ ├── UISlider.h
│ ├── UIEditView.h
│ ├── UIRootView.h
│ ├── UIControl.h
│ ├── UIScrollBar.h
│ ├── UITreeView.h
│ └── UIWindow.h
│ ├── animation
│ ├── UIAlphaAnimation.h
│ ├── UIBoundAnimation.h
│ ├── UITranslateAnimation.h
│ ├── UIScaleAnimation.h
│ └── UIAnimation.h
│ ├── gfx
│ ├── UIPen.h
│ ├── UIBrush.h
│ ├── UIDrawable.h
│ ├── UIBitmap.h
│ ├── UIRender.h
│ └── UIFont.h
│ ├── model
│ └── UIModel.h
│ └── XSkin.h
├── README.md
├── libpng
├── libpng.vcxproj.user
├── ReadMe.txt
├── libpng.vcxproj.filters
└── pngrio.c
├── libjpeg
├── jversion.h
├── rdgif.c
├── jconfig.h
├── jcinit.c
├── jmemnobs.c
├── jinclude.h
└── jcomapi.c
├── zlib
├── inffast.h
├── ReadMe.txt
├── gzclose.c
├── mztools.h
├── iowin32.h
├── ioapi_mem.h
├── compress.c
├── inftrees.h
└── uncompr.c
├── tinyxml2
├── tinyxml2.vcxproj.filters
└── tinyxml2.vcxproj
└── unzip
├── unzip.vcxproj.filters
├── ZipFile.h
└── main.cpp
/xskin_dll/stdafx.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
--------------------------------------------------------------------------------
/xskin_test/xskin_test.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "resource.h"
4 |
--------------------------------------------------------------------------------
/xskin_test/res.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res.zip
--------------------------------------------------------------------------------
/xskin_test/res1.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res1.zip
--------------------------------------------------------------------------------
/xskin_test/skin.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/skin.zip
--------------------------------------------------------------------------------
/xskin_dll/dllmain.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_dll/dllmain.cpp
--------------------------------------------------------------------------------
/xskin_dll/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_dll/targetver.h
--------------------------------------------------------------------------------
/xskin_test/Resource.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/Resource.h
--------------------------------------------------------------------------------
/xskin_test/small.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/small.ico
--------------------------------------------------------------------------------
/xskin_test/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/stdafx.cpp
--------------------------------------------------------------------------------
/xskin_dll/xskin_dll.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_dll/xskin_dll.cpp
--------------------------------------------------------------------------------
/xskin_test/disk/10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/disk/10.jpg
--------------------------------------------------------------------------------
/xskin_test/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/targetver.h
--------------------------------------------------------------------------------
/xskin_test/xskin_test.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/xskin_test.rc
--------------------------------------------------------------------------------
/xskin_test/xskin_test.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/xskin_test.ico
--------------------------------------------------------------------------------
/xskin/src/view/UIEditView.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin/src/view/UIEditView.cpp
--------------------------------------------------------------------------------
/xskin_test/res/image/10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/10.jpg
--------------------------------------------------------------------------------
/xskin_test/res/image/bhzz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/bhzz.png
--------------------------------------------------------------------------------
/xskin_test/res/image/cxye.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/cxye.png
--------------------------------------------------------------------------------
/xskin_test/res/image/gas.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/gas.png
--------------------------------------------------------------------------------
/xskin_test/res/image/kh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/kh.png
--------------------------------------------------------------------------------
/xskin_test/res/image/khzz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/khzz.png
--------------------------------------------------------------------------------
/xskin_test/res/image/water.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/water.png
--------------------------------------------------------------------------------
/xskin_test/res/image/bk_shadow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/bk_shadow.png
--------------------------------------------------------------------------------
/xskin_test/res/image/metro_bk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/metro_bk.png
--------------------------------------------------------------------------------
/xskin_test/res/image/scrollbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/scrollbar.png
--------------------------------------------------------------------------------
/xskin_test/res/image/testimg.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/testimg.bmp
--------------------------------------------------------------------------------
/xskin_test/res/image/thunder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/thunder.png
--------------------------------------------------------------------------------
/xskin_test/skin/image/box_bk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/skin/image/box_bk.png
--------------------------------------------------------------------------------
/xskin_test/skin/image/button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/skin/image/button.png
--------------------------------------------------------------------------------
/xskin_test/skin/image/radio_bk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/skin/image/radio_bk.png
--------------------------------------------------------------------------------
/xskin_test/skin/image/tabitem.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/skin/image/tabitem.png
--------------------------------------------------------------------------------
/xskin_test/skin/image/testimg.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/skin/image/testimg.bmp
--------------------------------------------------------------------------------
/xskin_test/res/image/background.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/background.bmp
--------------------------------------------------------------------------------
/xskin_test/skin/image/box_check.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/skin/image/box_check.png
--------------------------------------------------------------------------------
/xskin_test/skin/image/scrollbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/skin/image/scrollbar.png
--------------------------------------------------------------------------------
/xskin_test/skin/image/radio_check.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/skin/image/radio_check.png
--------------------------------------------------------------------------------
/xskin_test/res/image/combobox_checked.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/combobox_checked.png
--------------------------------------------------------------------------------
/xskin_test/res/image/combobox_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/combobox_normal.png
--------------------------------------------------------------------------------
/xskin_test/res/image/combobox_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Justysxh/xskin/HEAD/xskin_test/res/image/combobox_disabled.png
--------------------------------------------------------------------------------
/xskin/include/core/UIAlign.h:
--------------------------------------------------------------------------------
1 | #ifndef __ALIGN_H_INCLUDED__
2 | #define __ALIGN_H_INCLUDED__
3 |
4 |
5 |
6 | #endif //! __ALIGN_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/include/core/UISizePolicy.h:
--------------------------------------------------------------------------------
1 | #ifndef __SIZE_POLICY_H_INCLUDED__
2 | #define __SIZE_POLICY_H_INCLUDED__
3 |
4 |
5 | #endif //! __SIZE_POLICY_H_INCLUDED__
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # xskin
2 | 作者: http://my.csdn.net/pcradio
3 | 是基于 c++ 和GDI做的 一个UI库. Direct UI库,部分参考Duilib,有些作者自己的想法实现,模仿java事件监听器机制和android布局文件.
4 | 内部使用其它该源的jpg, png图片解码库
5 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/UIListView.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/UIProgressBar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
--------------------------------------------------------------------------------
/libpng/libpng.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/xskin_test/res/string/string.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | A1
4 | A2
5 | A3
6 |
--------------------------------------------------------------------------------
/xskin_test/res/string/string_tw.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 繁體
4 | 代碼
5 | 測試
6 |
--------------------------------------------------------------------------------
/xskin_test/res/string/string_zh.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 你好
4 | 世界
5 | 代码
6 |
--------------------------------------------------------------------------------
/xskin_test/stdafx.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #define WIN32_LEAN_AND_MEAN
4 |
5 | #include
6 | #include
7 | #include
8 | #include
9 | #include
10 |
--------------------------------------------------------------------------------
/xskin_test/xskin_test.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/UISlider.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/xskin_test/res/skin/VScrollBar_LineUp.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/xskin_test/res/skin/VScrollBar_Track.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/xskin_test/res/skin/VScrollBar_LineDown.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/xskin_test/res/skin/VScrollBar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/xskin/src/event/UIFocusEvent.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "../../include/event/UIFocusEvent.h"
3 |
4 | UIFocusEvent::UIFocusEvent(UIResponser* pSource, EventType nType)
5 | : UIEvent(pSource, nType, 0)
6 | {
7 |
8 | }
9 |
10 | UIFocusEvent::~UIFocusEvent()
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/xskin_test/skin/skin/HScrollBar_LineUp.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/VScrollBar_LineUp.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/VScrollBar_Track.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/HScrollBar_LineDown.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/HScrollBar_Track.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/VScrollBar_LineDown.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/xskin_dll/stdafx.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #define WIN32_LEAN_AND_MEAN
4 | #include
5 | #include
6 | #include
7 |
8 | #pragma comment(lib, "msimg32.lib")
9 |
10 | #pragma warning (disable:4800)
11 | #pragma warning (disable:4996)
12 | #pragma warning (disable:4251)
13 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/HScrollBar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/VScrollBar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/xskin_test/res/skin/ComboBox.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/UIButton.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/UIEditView.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/xskin/include/event/UIFocusEvent.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIFOCUS_EVENT_H_INCLUDED__
2 | #define __UIFOCUS_EVENT_H_INCLUDED__
3 |
4 | #include "UIEvent.h"
5 |
6 | class XSKIN_API UIFocusEvent : public UIEvent
7 | {
8 | public:
9 | UIFocusEvent(UIResponser* pSource, EventType nType);
10 | ~UIFocusEvent();
11 | };
12 | #endif //! __UIFOCUS_EVENT_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin_test/skin/skin/UISlider_Handle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/UIComboBox.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
11 |
--------------------------------------------------------------------------------
/xskin/include/view/UITabItem.h:
--------------------------------------------------------------------------------
1 | #ifndef __UITAB_ITEM_H_INCLUDED__
2 | #define __UITAB_ITEM_H_INCLUDED__
3 |
4 | #include "UIListItem.h"
5 |
6 | class UITabItem : public UIListItem
7 | {
8 | DECLARE_XML_NODE(UITabItem)
9 | DECLARE_XML_PROPERTY()
10 | public:
11 | UITabItem(UIView* parent = NULL);
12 | ~UITabItem();
13 | };
14 | #endif //! __UITAB_ITEM_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/src/core/UIResponser.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "../../include/core/UIResponser.h"
3 |
4 | UIResponser::UIResponser()
5 | {
6 |
7 | }
8 |
9 | UIResponser::~UIResponser()
10 | {
11 |
12 | }
13 |
14 | BOOL UIResponser::Event(UIEvent* event)
15 | {
16 | return FALSE;
17 | }
18 |
19 | UIResponser* UIResponser::GetNextResponser() const
20 | {
21 | return NULL;
22 | }
--------------------------------------------------------------------------------
/xskin_test/dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
16 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/UITabItem.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
--------------------------------------------------------------------------------
/xskin/src/view/UITabItem.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "../../include/view/UITabItem.h"
3 |
4 | IMPLEMENT_XML_NODE(UITabItem)
5 |
6 | BEGIN_XML_PROPERTY(UITabItem)
7 | END_XML_PROPERTY()
8 |
9 | UITabItem::UITabItem(UIView* parent)
10 | : UIListItem(parent)
11 | {
12 | m_alignment.cx = UIAlignment::ALIGN_HCENTER;
13 | m_alignment.cy = UIAlignment::ALIGN_VCENTER;
14 | }
15 |
16 | UITabItem::~UITabItem()
17 | {
18 |
19 | }
--------------------------------------------------------------------------------
/xskin/src/event/UITimerEvent.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "../../include/event/UITimerEvent.h"
3 |
4 | UITimerEvent::UITimerEvent(UIResponser* pSource, UINT uTimerID, int nFlags /* = 0 */)
5 | : UIEvent(pSource, UIEvent::EVENT_TIMER, nFlags)
6 | {
7 | m_uTimerID = uTimerID;
8 | }
9 |
10 | UITimerEvent::~UITimerEvent()
11 | {
12 |
13 | }
14 |
15 | UINT UITimerEvent::GetTimerID() const
16 | {
17 | return m_uTimerID;
18 | }
19 |
--------------------------------------------------------------------------------
/xskin/src/event/UIWheelEvent.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "../../include/event/UIWheelEvent.h"
3 |
4 | UIWheelEvent::UIWheelEvent(UIResponser* pSource, EventType nType, const UIPoint& point, int zDelta, int nFlags)
5 | : UIMouseEvent(pSource, nType, point, nFlags)
6 | {
7 | m_nDelta = zDelta;
8 | }
9 |
10 | UIWheelEvent::~UIWheelEvent()
11 | {
12 |
13 | }
14 |
15 | int UIWheelEvent::GetDelta() const
16 | {
17 | return m_nDelta;
18 | }
--------------------------------------------------------------------------------
/xskin/include/event/UITimerEvent.h:
--------------------------------------------------------------------------------
1 | #ifndef __UITIMER_EVENT_H_INCLUDED__
2 | #define __UITIMER_EVENT_H_INCLUDED__
3 |
4 | #include "UIEvent.h"
5 |
6 | class XSKIN_API UITimerEvent : public UIEvent
7 | {
8 | public:
9 | UITimerEvent(UIResponser* pSource, UINT uTimerID, int nFlags = 0);
10 | ~UITimerEvent();
11 |
12 | public:
13 | UINT GetTimerID() const;
14 |
15 | private:
16 | UINT m_uTimerID;
17 | };
18 | #endif //! __UITIMER_EVENT_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/include/core/UIResponser.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIRESPONSER_H_INCLUDED__
2 | #define __UIRESPONSER_H_INCLUDED__
3 |
4 | #include "UIObject.h"
5 | #include "../event/UIEvent.h"
6 |
7 | class XSKIN_API UIResponser : public UIObject
8 | {
9 | public:
10 | UIResponser();
11 | ~UIResponser();
12 |
13 | public:
14 | virtual BOOL Event(UIEvent* event);
15 | virtual UIResponser* GetNextResponser() const;
16 | };
17 | #endif //! __UIRESPONSER_H_INCLUDED__
--------------------------------------------------------------------------------
/libjpeg/jversion.h:
--------------------------------------------------------------------------------
1 | /*
2 | * jversion.h
3 | *
4 | * Copyright (C) 1991-2016, Thomas G. Lane, Guido Vollbeding.
5 | * This file is part of the Independent JPEG Group's software.
6 | * For conditions of distribution and use, see the accompanying README file.
7 | *
8 | * This file contains software version identification.
9 | */
10 |
11 |
12 | #define JVERSION "9b 17-Jan-2016"
13 |
14 | #define JCOPYRIGHT "Copyright (C) 2016, Thomas G. Lane, Guido Vollbeding"
15 |
--------------------------------------------------------------------------------
/xskin/include/view/UIHyperlink.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIHYPERLINK_H_INCLUDED__
2 | #define __UIHYPERLINK_H_INCLUDED__
3 |
4 | #include "UIButton.h"
5 |
6 | class XSKIN_API UIHyperlink : public UIButton
7 | {
8 | DECLARE_XML_NODE(UIHyperlink)
9 | public:
10 | UIHyperlink(UIView* parent = NULL);
11 | ~UIHyperlink();
12 | public:
13 | UISize GetPreferredSize() const OVERRIDE;
14 |
15 | protected:
16 | void OnPaint(HDC hdc) OVERRIDE;
17 | };
18 | #endif //! __UIHYPERLINK_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin_test/xskin_test.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "App.h"
3 |
4 |
5 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
6 | {
7 | MyApp app;
8 | app.SetResZip(TEXT("skin.zip"));
9 |
10 | MainWindow mainWnd;
11 | mainWnd.Create();
12 | UIRect rc(0, 0, 1024, 800);
13 | mainWnd.SetBounds(rc);
14 | mainWnd.CenterWindow();
15 | mainWnd.SetFrameVisible(TRUE);
16 | mainWnd.Show();
17 | return app.Run();
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/zlib/inffast.h:
--------------------------------------------------------------------------------
1 | /* inffast.h -- header to use inffast.c
2 | * Copyright (C) 1995-2003, 2010 Mark Adler
3 | * For conditions of distribution and use, see copyright notice in zlib.h
4 | */
5 |
6 | /* WARNING: this file should *not* be used by applications. It is
7 | part of the implementation of the compression library and is
8 | subject to change. Applications should only use zlib.h.
9 | */
10 |
11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start));
12 |
--------------------------------------------------------------------------------
/xskin/include/core/RefCounted.h:
--------------------------------------------------------------------------------
1 | #ifndef __REFCOUNTED_H_INCLUDED__
2 | #define __REFCOUNTED_H_INCLUDED__
3 |
4 | #include "UIObject.h"
5 |
6 | class XSKIN_API RefCounted
7 | {
8 | public:
9 | RefCounted() { m_nRefCount = 0; }
10 | virtual ~RefCounted() { }
11 |
12 | public:
13 | void AddRef() const { ++m_nRefCount; }
14 | void Release() const { if(--m_nRefCount == 0) delete this; }
15 |
16 | private:
17 | mutable int m_nRefCount;
18 | };
19 |
20 | #endif //! __REFCOUNTED_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/include/event/UIWheelEvent.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIMOUSEWHEEL_EVENT_H_INCLUDED__
2 | #define __UIMOUSEWHEEL_EVENT_H_INCLUDED__
3 |
4 | #include "UIMouseEvent.h"
5 |
6 | class XSKIN_API UIWheelEvent : public UIMouseEvent
7 | {
8 | public:
9 | UIWheelEvent(UIResponser* pSource, EventType nType, const UIPoint& point, int zDelta, int nFlags);
10 | ~UIWheelEvent();
11 |
12 | public:
13 | int GetDelta() const;
14 |
15 | private:
16 | int m_nDelta;
17 | };
18 | #endif //! __UIMOUSEWHEEL_EVENT_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin_test/listitem.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
16 |
24 |
--------------------------------------------------------------------------------
/xskin/include/event/UIKeyEvent.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIKEY_EVENT_H_INCLUDED__
2 | #define __UIKEY_EVENT_H_INCLUDED__
3 |
4 | #include "UIEvent.h"
5 |
6 | class XSKIN_API UIKeyEvent : public UIEvent
7 | {
8 | public:
9 | UIKeyEvent(UIResponser* pSource, EventType nType, int nKeytCode, int nRepeatCount, int nFlags);
10 | ~UIKeyEvent();
11 |
12 | public:
13 | int GetKeyCode() const;
14 | int GetRepeatCount() const;
15 |
16 | private:
17 | int m_nKeyCode;
18 | int m_nRepeatCount;
19 | };
20 |
21 | #endif //! __UIKEY_EVENT_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/include/view/UICheckBox.h:
--------------------------------------------------------------------------------
1 | #ifndef __UICHECK_BOX_H_INCLUDED__
2 | #define __UICHECK_BOX_H_INCLUDED__
3 |
4 | #include "UIRadioButton.h"
5 |
6 | class XSKIN_API UICheckBox : public UIRadioButton
7 | {
8 | DECLARE_XML_NODE(UICheckBox)
9 | DECLARE_XML_PROPERTY()
10 | public:
11 | UICheckBox(UIView* parent = NULL);
12 | ~UICheckBox();
13 |
14 | public:
15 | void SetChecked(BOOL b) OVERRIDE;
16 |
17 | protected:
18 | BOOL OnActionPerformed(UIActionEvent* event) OVERRIDE;
19 |
20 | };
21 | #endif //! __UICHECK_BOX_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/include/core/UIObject.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIOBJECT_H_INCLUDED__
2 | #define __UIOBJECT_H_INCLUDED__
3 |
4 | #include "Macros.h"
5 |
6 | class XSKIN_API UIObject
7 | {
8 | public:
9 | UIObject();
10 | virtual ~UIObject();
11 |
12 | public:
13 | LPCSTR Name() const;
14 | int HashCode() const;
15 | BOOL operator ==(const UIObject& obj) const;
16 | void Trace(LPCTSTR szFmt, ...);
17 |
18 | private:
19 | UIObject(const UIObject&);
20 | UIObject& operator=(const UIObject&);
21 | };
22 |
23 | #endif //! __UIOBJECT_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/include/event/UIHierarchyEvent.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIHIERARCHY_EVENT_H_INCLUDED__
2 | #define __UIHIERARCHY_EVENT_H_INCLUDED__
3 |
4 | #include "UIEvent.h"
5 |
6 | class XSKIN_API UIView;
7 | class XSKIN_API UIHierarchyEvent : public UIEvent
8 | {
9 | public:
10 | UIHierarchyEvent(UIView* pSource, EventType nType, UIView* pParent, int nFlags = 0);
11 | ~UIHierarchyEvent();
12 |
13 | public:
14 | UIView* GetChanged();
15 | UIView* GetChangedParent();
16 |
17 | private:
18 | UIView* m_pParent;
19 | };
20 | #endif //! __UIHIERARCHY_EVENT_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/include/view/UIListItem.h:
--------------------------------------------------------------------------------
1 | #ifndef __UILIST_ITEM_H_INCLUDED__
2 | #define __UILIST_ITEM_H_INCLUDED__
3 |
4 | #include "UIButton.h"
5 |
6 | class XSKIN_API UIListItem : public UIButton
7 | {
8 | DECLARE_XML_NODE(UIListItem)
9 | DECLARE_XML_PROPERTY()
10 | public:
11 | UIListItem(UIView* parent = NULL);
12 | ~UIListItem();
13 |
14 | protected:
15 | void OnPaint(HDC hdc) OVERRIDE;
16 | BOOL OnMousePressed(UIMouseEvent* event) OVERRIDE;
17 | BOOL OnMouseClicked(UIMouseEvent* event) OVERRIDE;
18 | };
19 | #endif //! __UILIST_ITEM_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/src/event/UIKeyEvent.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "../../include/event/UIKeyEvent.h"
3 |
4 | UIKeyEvent::UIKeyEvent(UIResponser* pSource, EventType nType, int nKeyCode, int nRepeatCount, int nFlags)
5 | : UIEvent(pSource, nType, nFlags)
6 | {
7 | m_nKeyCode = nKeyCode;
8 | m_nRepeatCount = nRepeatCount;
9 | }
10 |
11 | UIKeyEvent::~UIKeyEvent()
12 | {
13 |
14 | }
15 |
16 | int UIKeyEvent::GetKeyCode() const
17 | {
18 | return m_nKeyCode;
19 | }
20 |
21 | int UIKeyEvent::GetRepeatCount() const
22 | {
23 | return m_nRepeatCount;
24 | }
--------------------------------------------------------------------------------
/xskin/src/event/UIActionEvent.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "../../include/event/UIActionEvent.h"
3 |
4 | UIActionEvent::UIActionEvent(UIResponser* pSource, const UIString& szID, const UIString& szCommand, int nFlags)
5 | : UIEvent(pSource, EVENT_ACTION, nFlags)
6 | {
7 | m_szID = szID;
8 | m_szCommand = szCommand;
9 | }
10 |
11 | UIActionEvent::~UIActionEvent()
12 | {
13 |
14 | }
15 |
16 | UIString UIActionEvent::GetID() const
17 | {
18 | return m_szID;
19 | }
20 |
21 | UIString UIActionEvent::GetCommand() const
22 | {
23 | return m_szCommand;
24 | }
--------------------------------------------------------------------------------
/xskin/include/view/UIButton.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIBUTTON_H_INCLUDED__
2 | #define __UIBUTTON_H_INCLUDED__
3 |
4 | #include "UIControl.h"
5 | #include "../core/UIString.h"
6 |
7 | class XSKIN_API UIButton : public UIControl
8 | {
9 | DECLARE_XML_NODE(UIButton)
10 | DECLARE_XML_PROPERTY()
11 | public:
12 | UIButton(UIView* parent = NULL);
13 | ~UIButton();
14 |
15 | public:
16 | void Activate(BOOL b) OVERRIDE;
17 |
18 | protected:
19 | BOOL OnMouseClicked(UIMouseEvent* event) OVERRIDE;
20 | void OnPaint(HDC hdc) OVERRIDE;
21 | };
22 |
23 | #endif //! __UIBUTTON_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/include/event/UIMouseEvent.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIMOUSE_EVENT_H_INCLUDED__
2 | #define __UIMOUSE_EVENT_H_INCLUDED__
3 |
4 | #include "UIEvent.h"
5 | #include "../core/UIPoint.h"
6 |
7 | class XSKIN_API UIMouseEvent : public UIEvent
8 | {
9 | public:
10 | UIMouseEvent(UIResponser* pSource, EventType nType, const UIPoint& point, int nFlags);
11 | ~UIMouseEvent();
12 |
13 | public:
14 | UIPoint GetLocation() const;
15 | BOOL IsCtrlDown() const;
16 | BOOL IsShiftDown() const;
17 | BOOL IsAltDown() const;
18 |
19 | private:
20 | UIPoint m_pos;
21 | };
22 | #endif //! __UIMOUSE_EVENT_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/src/event/UIHierarchyEvent.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "../../include/event/UIHierarchyEvent.h"
3 | #include "../../include/view/UIView.h"
4 |
5 | UIHierarchyEvent::UIHierarchyEvent(UIView* pSource, EventType nType, UIView* pParent, int nFlags)
6 | : UIEvent(pSource, nType, nFlags)
7 | {
8 | m_pParent = pParent;
9 | }
10 |
11 | UIHierarchyEvent::~UIHierarchyEvent()
12 | {
13 |
14 | }
15 |
16 | UIView* UIHierarchyEvent::GetChanged()
17 | {
18 | return static_cast(GetSource());
19 | }
20 |
21 | UIView* UIHierarchyEvent::GetChangedParent()
22 | {
23 | return m_pParent;
24 | }
--------------------------------------------------------------------------------
/xskin_test/skin/skin/UICheckBox.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
--------------------------------------------------------------------------------
/xskin_test/skin/skin/UIRadioButton.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
--------------------------------------------------------------------------------
/xskin/include/view/UITabBar.h:
--------------------------------------------------------------------------------
1 | #ifndef __UITAB_BAR_H_INCLUDED__
2 | #define __UITAB_BAR_H_INCLUDED__
3 |
4 | #include "UIBoxLayout.h"
5 |
6 | class XSKIN_API UITabBar : public UIBoxLayout
7 | {
8 | DECLARE_XML_NODE(UITabBar)
9 | public:
10 | UITabBar(UIView* parent = NULL);
11 | ~UITabBar();
12 |
13 | public:
14 | void SetCheckedView(UIView* v);
15 | UIView* GetCheckedView() const;
16 | void SetCheckedIndex(int nIndex);
17 | int GetCheckedIndex() const;
18 |
19 | protected:
20 | void OnInit() OVERRIDE;
21 | BOOL OnActionPerformed(UIActionEvent* event) OVERRIDE;
22 |
23 | protected:
24 | UIView* m_pChecked;
25 | };
26 | #endif //! __UITAB_BAR_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/include/animation/UIAlphaAnimation.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIALPHA_ANIMATION_H_INCLUDED__
2 | #define __UIALPHA_ANIMATION_H_INCLUDED__
3 |
4 | #include "UIAnimation.h"
5 |
6 | class UIView;
7 | class XSKIN_API UIAlphaAnimation : public UIAnimation
8 | {
9 | public:
10 | UIAlphaAnimation(UIView* pTarget = NULL, int nStart = 0, int nEnd = 0);
11 | ~UIAlphaAnimation();
12 |
13 | public:
14 | void SetStartValue(int nStart);
15 | void SetEndValue(int nEnd);
16 | void OnAnimationStarted() OVERRIDE;
17 | void OnAnimationStepped() OVERRIDE;
18 | void OnAnimationStopped() OVERRIDE;
19 |
20 | private:
21 | int m_nStart;
22 | int m_nEnd;
23 | };
24 | #endif //! __UIALPHA_ANIMATION_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/include/core/UISize.h:
--------------------------------------------------------------------------------
1 | #ifndef __H_INCLUDED__
2 | #define __H_INCLUDED__
3 |
4 | #include
5 |
6 | class XSKIN_API UISize : public tagSIZE
7 | {
8 | public:
9 | inline UISize()
10 | {
11 | cx = cy = 0;
12 | }
13 |
14 | inline UISize(const SIZE& src)
15 | {
16 | cx = src.cx;
17 | cy = src.cy;
18 | }
19 |
20 | inline UISize(const RECT rc)
21 | {
22 | cx = rc.right - rc.left;
23 | cy = rc.bottom - rc.top;
24 | }
25 |
26 | inline UISize(int cx, int cy)
27 | {
28 | this->cx = cx;
29 | this->cy = cy;
30 | }
31 |
32 | inline ~UISize()
33 | {
34 |
35 | }
36 |
37 | public:
38 | inline operator LPSIZE()
39 | {
40 | return this;
41 | }
42 | };
43 | #endif //! __H_INCLUDED__
44 |
--------------------------------------------------------------------------------
/zlib/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | 静态库:zlib 项目概述
3 | ========================================================================
4 |
5 | 应用程序向导已为您创建了此 zlib 库项目。
6 |
7 | 没有为此项目创建源文件。
8 |
9 |
10 | zlib.vcxproj
11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
12 |
13 | zlib.vcxproj.filters
14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。
15 |
16 | /////////////////////////////////////////////////////////////////////////////
17 | 其他注释:
18 |
19 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。
20 |
21 | /////////////////////////////////////////////////////////////////////////////
22 |
--------------------------------------------------------------------------------
/libpng/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | 静态库:libpng 项目概述
3 | ========================================================================
4 |
5 | 应用程序向导已为您创建了此 libpng 库项目。
6 |
7 | 没有为此项目创建源文件。
8 |
9 |
10 | libpng.vcxproj
11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
12 |
13 | libpng.vcxproj.filters
14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。
15 |
16 | /////////////////////////////////////////////////////////////////////////////
17 | 其他注释:
18 |
19 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。
20 |
21 | /////////////////////////////////////////////////////////////////////////////
22 |
--------------------------------------------------------------------------------
/xskin/src/event/UIMouseEvent.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "../../include/event/UIMouseEvent.h"
3 |
4 | UIMouseEvent::UIMouseEvent(UIResponser* pSource, EventType nType, const UIPoint& pt, int nFlags)
5 | : UIEvent(pSource, nType, nFlags)
6 | {
7 | m_pos = pt;
8 | }
9 |
10 | UIMouseEvent::~UIMouseEvent()
11 | {
12 |
13 | }
14 |
15 | UIPoint UIMouseEvent::GetLocation() const
16 | {
17 | return m_pos;
18 | }
19 |
20 | BOOL UIMouseEvent::IsCtrlDown() const
21 | {
22 | return GetFlags() & CTRL_MASK ? TRUE : FALSE;
23 | }
24 |
25 | BOOL UIMouseEvent::IsShiftDown() const
26 | {
27 | return GetFlags() & SHIFT_MASK ? TRUE : FALSE;
28 | }
29 |
30 | BOOL UIMouseEvent::IsAltDown() const
31 | {
32 | return GetFlags() & ALT_MASK ? TRUE : FALSE;
33 | }
--------------------------------------------------------------------------------
/xskin/include/animation/UIBoundAnimation.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIBOUND_ANIMATION_H_INCLUDED__
2 | #define __UIBOUND_ANIMATION_H_INCLUDED__
3 |
4 | #include "UIAnimation.h"
5 | #include "../core/UIRect.h"
6 |
7 | class XSKIN_API UIBoundAnimation : public UIAnimation
8 | {
9 | public:
10 | UIBoundAnimation(UIView* pTarget = NULL, const UIRect& rcStart = UIRect(), const UIRect& rcEnd = UIRect());
11 | ~UIBoundAnimation();
12 |
13 | public:
14 | void SetStartValue(const UIRect& rcStart);
15 | void SetEndValue(const UIRect& rcEnd);
16 |
17 | void OnAnimationStarted() OVERRIDE;
18 | void OnAnimationStepped() OVERRIDE;
19 | void OnAnimationStopped() OVERRIDE;
20 |
21 | private:
22 | UIRect m_rcStart;
23 | UIRect m_rcEnd;
24 | };
25 | #endif //! __UIBOUND_ANIMATION_H_INCLUDED__
--------------------------------------------------------------------------------
/xskin/include/view/UIImageButton.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIIMAGE_BUTTON_H_INCLUDED__
2 | #define __UIIMAGE_BUTTON_H_INCLUDED__
3 |
4 | #include "UIButton.h"
5 | #include "../gfx/UIDrawable.h"
6 |
7 | class XSKIN_API UIImageButton : public UIButton
8 | {
9 | DECLARE_XML_NODE(UIImageButton)
10 | DECLARE_XML_PROPERTY()
11 | public:
12 | enum { BITMAP_TEXT_SPACING = 8 };
13 |
14 | UIImageButton(UIView* parent = NULL);
15 | ~UIImageButton();
16 |
17 | public:
18 | void SetIcon(const UIBitmap* pBitmap, const UIRect& rcPos);
19 | void SetSpacing(int nSpacing);
20 | UISize GetPreferredSize() const OVERRIDE;
21 |
22 | protected:
23 | void OnPaint(HDC hdc) OVERRIDE;
24 |
25 | protected:
26 | UIDrawable m_bkIcon;
27 | int m_nSpacing;
28 | };
29 |
30 | #endif //! __UIIMAGE_BUTTON_H_INCLUDED___
--------------------------------------------------------------------------------
/xskin/include/view/UITextView.h:
--------------------------------------------------------------------------------
1 | #ifndef __UITEXT_VIEW_H_INCLUDED__
2 | #define __UITEXT_VIEW_H_INCLUDED__
3 |
4 | #include "UIControl.h"
5 |
6 | class UIScrollBar;
7 | class XSKIN_API UITextView : public UIControl
8 | {
9 | DECLARE_XML_NODE(UITextView)
10 | DECLARE_XML_PROPERTY()
11 | public:
12 | UITextView(UIView* parent = NULL);
13 | ~UITextView();
14 |
15 | public:
16 | UISize GetPreferredSize() const OVERRIDE;
17 |
18 | protected:
19 | void OnLayout() OVERRIDE;
20 | void OnPaint(HDC hdc) OVERRIDE;
21 | BOOL OnMouseWheel(UIWheelEvent* event) OVERRIDE;
22 | BOOL OnActionPerformed(UIActionEvent* event) OVERRIDE;
23 |
24 | private:
25 | UIScrollBar* m_pVScrollbar;
26 | int m_nScroll;
27 | BOOL m_bMultiline;
28 | };
29 | #endif //! __UITEXT_VIEW_H_INCLUDED__
--------------------------------------------------------------------------------
/zlib/gzclose.c:
--------------------------------------------------------------------------------
1 | /* gzclose.c -- zlib gzclose() function
2 | * Copyright (C) 2004, 2010 Mark Adler
3 | * For conditions of distribution and use, see copyright notice in zlib.h
4 | */
5 |
6 | #include "gzguts.h"
7 |
8 | /* gzclose() is in a separate file so that it is linked in only if it is used.
9 | That way the other gzclose functions can be used instead to avoid linking in
10 | unneeded compression or decompression routines. */
11 | int ZEXPORT gzclose(file)
12 | gzFile file;
13 | {
14 | #ifndef NO_GZCOMPRESS
15 | gz_statep state;
16 |
17 | if (file == NULL)
18 | return Z_STREAM_ERROR;
19 | state = (gz_statep)file;
20 |
21 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
22 | #else
23 | return gzclose_r(file);
24 | #endif
25 | }
26 |
--------------------------------------------------------------------------------
/xskin/include/view/UICardLayout.h:
--------------------------------------------------------------------------------
1 | #ifndef __UICARD_LAYOUT_H_INCLUDED__
2 | #define __UICARD_LAYOUT_H_INCLUDED__
3 |
4 | #include "UIView.h"
5 |
6 | class XSKIN_API UICardLayout : public UIView
7 | {
8 | DECLARE_XML_NODE(UICardLayout)
9 | DECLARE_XML_PROPERTY()
10 | public:
11 | UICardLayout(UIView* parent = NULL);
12 | ~UICardLayout();
13 |
14 | public:
15 | void First();
16 | void Last();
17 | void Previous();
18 | void Next();
19 | void Show(int nIndex);
20 | void Show(const UIString& szViewID);
21 | UISize GetPreferredSize() const OVERRIDE;
22 |
23 | protected:
24 | void ShowExclusive(UIView* v);
25 | void OnInit() OVERRIDE;
26 | void OnLayout() OVERRIDE;
27 | void OnPaint(HDC hdc) OVERRIDE;
28 |
29 | protected:
30 | int m_nShownIndex;
31 | };
32 | #endif //! __UICARD_LAYOUT_H_INCLUDED__
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/xskin/include/view/UIBoxLayout.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIBOX_LAYOUT_H_INCLUDED__
2 | #define __UIBOX_LAYOUT_H_INCLUDED__
3 |
4 | #include "UIView.h"
5 |
6 | class XSKIN_API UIBoxLayout : public UIView
7 | {
8 | DECLARE_XML_NODE(UIBoxLayout)
9 | DECLARE_XML_PROPERTY()
10 |
11 | public:
12 | UIBoxLayout(UIView* parent = NULL);
13 | ~UIBoxLayout();
14 |
15 | public:
16 | void SetAlignment(UIAlignment::AlignFlag horz, UIAlignment::AlignFlag vert);
17 | UIAlignment GetAlignment() const;
18 | void SetDirection(Direction dir);
19 | Direction GetDirection() const;
20 | UISize GetPreferredSize() const OVERRIDE;
21 |
22 | protected:
23 | void OnLayout() OVERRIDE;
24 | void OnPaint(HDC hdc) OVERRIDE;
25 |
26 | protected:
27 | UIAlignment m_alignment;
28 | Direction m_direction;
29 | };
30 |
31 | #endif //! __UIBOX_LAYOUT_H_INCLUDED__
--------------------------------------------------------------------------------
/zlib/mztools.h:
--------------------------------------------------------------------------------
1 | /*
2 | Additional tools for Minizip
3 | Code: Xavier Roche '2004
4 | License: Same as ZLIB (www.gzip.org)
5 | */
6 |
7 | #ifndef _zip_tools_H
8 | #define _zip_tools_H
9 |
10 | #ifdef __cplusplus
11 | extern "C" {
12 | #endif
13 |
14 | #ifndef _ZLIB_H
15 | #include "zlib.h"
16 | #endif
17 |
18 | #include "unzip.h"
19 |
20 | /* Repair a ZIP file (missing central directory)
21 | file: file to recover
22 | fileOut: output file after recovery
23 | fileOutTmp: temporary file name used for recovery
24 | */
25 | extern int ZEXPORT unzRepair(const char* file,
26 | const char* fileOut,
27 | const char* fileOutTmp,
28 | uLong* nRecovered,
29 | uLong* bytesRecovered);
30 |
31 |
32 | #ifdef __cplusplus
33 | }
34 | #endif
35 |
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/xskin/include/gfx/UIPen.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIPEN_H_INCLUDED__
2 | #define __UIPEN_H_INCLUDED__
3 |
4 | #include