原生 C++ UI 库,跨平台,支持 MVVM 和数据绑定,XML 描述,多语言支持,核心/渲染器分离等
GPU Accelerated C++ User Interface, with:
.png)
Read the LICENSE first.
This project is licensed under the License repo.
Source code in this repo is for reference only, please use the source code in the Release repo.
You are welcome to contribute to this repo by opening pull requests.
For Home Page: click here
For Gaclib: click here
For GacUI: click here
gaclib.net is a mirror to github pages above.
Using this library requires you to use C++ source files directly in
All other files are for library development only.
This GUI library provides the following features:
USERIMPL(/* ... */) in the generated code. Here is where you want to add your code. All your modification outside of these places will be discarded on the next GacGen.exe run.https://gankra.github.io/blah/text-hates-you/
https://lord.io/text-editing-hates-you-too/
Since UI Automation is not working when the screen is locked, GacUI prepares facilities to expose UIA features by a http server brought up with the app. This service should be explicitly activated in the source code for security reason.
Applications compose automation directly: construct the concrete service matching the active normal, hosted, core, or renderer controller; substitute it; start either the Windows HTTP or MiniHTTP endpoint; run GuiApplication; then stop the endpoint and service before unsubstituting it. Windows HTTP and cross-platform MiniHTTP expose the same Controls, Dom, and IO contract. MiniHTTP is used by the remoting demos and is not part of GacUI's public API yet.
GacUI Remote Protocol enables Core and Renderer to run in different process in any programming language. It is current under development, but if you are interested in it, there are demos to try.
All text box related controls are not supported yet, but they are on the way!
In GacUISrc.sln the remoting and remote-view-model demos use these projects:
You must offer the same transport argument to every process in one run.
Core starts a GacUI process but delegates all rendering work to a remote process.Rendering_Win32 starts a renderer-only process handles Core's requests.RemotingTest_RvmHost provides the service required by /RVMT. It advertises ViewModelChannel for RPC and the internal ViewModelReadyChannel startup signal; renderers advertise only GacUIRemoteProtocol.CppTest_Rvm is the Windows-only local variant. It runs the generated application with RemotingTest_RvmHost, without a renderer process./Pipe, /Http or /MiniHttp should be offered to each participating project./MiniHttp./FCT (default), /RPT or /RVMT to Core./FCT and /RPT, start Core and then the renderer./RVMT, start Core first. It intentionally blocks while waiting for RemotingTest_RvmHost; while it is blocked, start RemotingTest_RvmHost. After Core's http://localhost:8888/Automation/RemotingTest_Core/Controls response contains the Remote View Model Test window, start the renderer.CppTest_Rvm first. It intentionally blocks while waiting for RemotingTest_RvmHost; while it is blocked, start RemotingTest_RvmHost. This variant does not use a renderer. /Pipe and /Http expose automation through Windows HTTP; /MiniHttp registers automation on the same port-8888 MiniHTTP socket server used for RVM traffic.RemotingTest_RvmHost disconnects while a requester is running, the requester terminates with an error and the process set must be restarted.RemotingTest_Core /RVMT with RemotingTest_RvmHost, both using /MiniHttp.Network Protocol Implementation Details:
/Pipe is built on top of Named Pipe API for Windows./Http is built on top of http.sys and WinHttp API for Windows./MiniHttp is built on top of TCP/IP Socket API for all platforms.
They are for the remote protocol demo only, no security is considered in the source code. If you are going to start your own remote protocol application, I strongly recommended you to use your own network protocol stack. The interface is flexible enough to use any possible way for data transmission, including but not limited to, stdio redirection, DLL interface, or an actual network protocol. VlppOS supplies convenient testing-only implementations, including stdio redirection, but no production-ready default transport is offered.By running Core with /Http or /MiniHttp, you can even run GacUI in a browser!
Checkout Project.md for details about compiling and running each test projects.
On Windows, use MSBuild or Visual Studio to build.
On Linux/macOS, run REPO-ROOT/.github/Ubuntu/build.sh in a project folder to update the makefile from vcxproj and build the project.
With the power from Remote Protocol, you could make GacUI running and writing down snapshots as a trace of all UI activities. Check out UnitTest.vcxproj!
After running all test cases (actually don't need to do that as all snapshots are already checked in), check out UnitTestViewer.vcxproj!
Unit test facility and the viewer are released to the Release repo in:
VCZH_DEBUG_NO_REFLECTION compiler option.暂无开放 Issues,或尚未同步最近议题。