├── Example ├── small.ico ├── Example.ico ├── Example.rc ├── Example.h ├── targetver.h ├── framework.h ├── Resource.h ├── Example.vcxproj.filters └── Example.xml ├── Include ├── MegaUI │ ├── Base │ │ └── MegaUITypeInt.h │ ├── Render │ │ ├── FontEnumMap.h │ │ └── Render.h │ ├── Core │ │ ├── TextScaleManger.h │ │ ├── Layout.h │ │ ├── DeferCycle.h │ │ └── Unit.h │ ├── Control │ │ ├── Button.h │ │ └── TextBox.h │ ├── Window │ │ ├── WindowElement.h │ │ └── Window.h │ └── Parser │ │ └── UIParser.h └── Media │ ├── Size.h │ ├── Point.h │ ├── Font.h │ ├── Pens │ └── Pen.h │ ├── Color.h │ ├── Brushes │ └── Brush.h │ ├── Resource.h │ ├── Graphics │ └── DrawContext.h │ └── Rect.h ├── MegaUI ├── pch.cpp ├── framework.h ├── MegaUI.cpp ├── Core │ ├── Unit.cpp │ └── Windows │ │ └── TextScaleManger.cpp ├── Common.xml ├── pch.h ├── Render │ ├── FontEnumMap.cpp │ └── Render.cpp ├── Accessibility │ └── UIAutomation │ │ ├── WindowElementAccessibleProviderImpl.h │ │ ├── PatternProviderImpl.h │ │ ├── AccessibleEventManager.h │ │ └── WindowElementAccessibleProviderImpl.cpp ├── Control │ └── Button.cpp ├── Window │ └── WindowElement.cpp ├── MegaUI.natvis └── core │ └── ControlInfo.cpp ├── UnitTest ├── pch.cpp ├── pch.h ├── UnitTest.vcxproj.filters ├── BitMapUnitTest.cpp ├── AsyncFileUnitTest.cpp ├── StringUnitTest.cpp ├── ValueParserUnitTest.cpp └── DynamicArrayUnitTest.cpp ├── Media ├── Graphics │ ├── D3D │ │ ├── SolidColorPixelShader.hlsl │ │ ├── VertexShader.hlsl │ │ └── D3D11DrawContext.h │ ├── DrawContext.cpp │ ├── D2D │ │ ├── DWriteHelper.h │ │ ├── D2D1_0DrawContext.h │ │ └── D2D1_1DrawContext.h │ ├── GDIPlus │ │ ├── GDIPlusDrawContext.h │ │ └── GDIPlusHelper.h │ └── DrawAsyncCommandContext.h └── Font.cpp ├── readme.md ├── .editorconfig ├── Directory.Build.props ├── Directory.Build.targets ├── .clang-format ├── .gitattributes ├── ThirdParty └── rapidxml │ ├── license.txt │ ├── rapidxml_utils.hpp │ └── rapidxml_iterators.hpp ├── MegaUI.sln └── .gitignore /Example/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuyu-Team/MegaUI/HEAD/Example/small.ico -------------------------------------------------------------------------------- /Example/Example.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuyu-Team/MegaUI/HEAD/Example/Example.ico -------------------------------------------------------------------------------- /Example/Example.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuyu-Team/MegaUI/HEAD/Example/Example.rc -------------------------------------------------------------------------------- /Include/MegaUI/Base/MegaUITypeInt.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | -------------------------------------------------------------------------------- /Example/Example.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #if defined(_WIN32) 4 | #include "resource.h" 5 | #endif 6 | -------------------------------------------------------------------------------- /MegaUI/pch.cpp: -------------------------------------------------------------------------------- 1 | // pch.cpp: 与预编译标头对应的源文件 2 | 3 | #include "pch.h" 4 | 5 | // 当使用预编译的头时,需要使用此源文件,编译才能成功。 6 | -------------------------------------------------------------------------------- /UnitTest/pch.cpp: -------------------------------------------------------------------------------- 1 | // pch.cpp: 与预编译标头对应的源文件 2 | 3 | #include "pch.h" 4 | 5 | // 当使用预编译的头时,需要使用此源文件,编译才能成功。 6 | -------------------------------------------------------------------------------- /MegaUI/framework.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifdef _WIN32 4 | #define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的内容 5 | #include 6 | #endif -------------------------------------------------------------------------------- /MegaUI/MegaUI.cpp: -------------------------------------------------------------------------------- 1 | // MegaUI.cpp : 定义静态库的函数。 2 | // 3 | 4 | #include "pch.h" 5 | #include "framework.h" 6 | #include 7 | // TODO: 这是一个库函数示例 8 | void fnMegaUI() 9 | { 10 | } 11 | -------------------------------------------------------------------------------- /MegaUI/Core/Unit.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include 3 | 4 | #pragma pack(push, __YY_PACKING) 5 | 6 | namespace YY 7 | { 8 | namespace MegaUI 9 | { 10 | 11 | } 12 | } // namespace YY 13 | 14 | #pragma pack(pop) 15 | -------------------------------------------------------------------------------- /Example/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // // 包含 SDKDDKVer.h 可定义可用的最高版本的 Windows 平台。 4 | // 如果希望为之前的 Windows 平台构建应用程序,在包含 SDKDDKVer.h 之前请先包含 WinSDKVer.h 并 5 | // 将 _WIN32_WINNT 宏设置为想要支持的平台。 6 | 7 | #if defined(_WIN32) 8 | #include 9 | #endif 10 | -------------------------------------------------------------------------------- /Media/Graphics/D3D/SolidColorPixelShader.hlsl: -------------------------------------------------------------------------------- 1 | // #include "VertexShader.hlsl" 2 | 3 | struct PixelInputType 4 | { 5 | float4 Position : SV_POSITION; 6 | float4 Color : COLOR; 7 | }; 8 | 9 | 10 | float4 main(PixelInputType _Input) : SV_TARGET 11 | { 12 | return _Input.Color; 13 | } -------------------------------------------------------------------------------- /UnitTest/pch.h: -------------------------------------------------------------------------------- 1 | // pch.h: 这是预编译标头文件。 2 | // 下方列出的文件仅编译一次,提高了将来生成的生成性能。 3 | // 这还将影响 IntelliSense 性能,包括代码完成和许多代码浏览功能。 4 | // 但是,如果此处列出的文件中的任何一个在生成之间有更新,它们全部都将被重新编译。 5 | // 请勿在此处添加要频繁更新的文件,这将使得性能优势无效。 6 | 7 | #ifndef PCH_H 8 | #define PCH_H 9 | 10 | // 添加要在此处预编译的标头 11 | 12 | #endif //PCH_H 13 | -------------------------------------------------------------------------------- /Include/MegaUI/Render/FontEnumMap.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | #pragma pack(push, __YY_PACKING) 6 | 7 | namespace YY 8 | { 9 | namespace MegaUI 10 | { 11 | struct EnumMap; 12 | 13 | _Ret_notnull_ const EnumMap* __YYAPI GetSystemFontEnumMap(); 14 | } 15 | } // namespace YY 16 | 17 | #pragma pack(pop) 18 | -------------------------------------------------------------------------------- /Example/framework.h: -------------------------------------------------------------------------------- 1 | // header.h: 标准系统包含文件的包含文件, 2 | // 或特定于项目的包含文件 3 | // 4 | 5 | #pragma once 6 | 7 | #include "targetver.h" 8 | 9 | #if defined(_WIN32) 10 | #define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的内容 11 | // Windows 头文件 12 | #include 13 | #endif 14 | // C 运行时头文件 15 | #include 16 | #include 17 | #include 18 | 19 | -------------------------------------------------------------------------------- /MegaUI/Common.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |