mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-24 08:15:53 +08:00
Demo: GacUI_Controls\Animation
This commit is contained in:
@@ -0,0 +1,172 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Main.cpp" />
|
||||
<ClCompile Include="UI\Source\DemoPartialClasses.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Lib\GacUILite\GacUILite.vcxproj">
|
||||
<Project>{96c559ca-9718-4bec-a053-28a0ab6a8ca2}</Project>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Xml Include="UI\Resource.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="UI\Source\Demo.h" />
|
||||
<ClInclude Include="UI\Source\DemoPartialClasses.h" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{2D3277A7-05CC-4F4C-B12D-DAEDA13B4E5E}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>Animation</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<IncludePath>$(ProjectDir)..\..\..\Import;$(IncludePath)</IncludePath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<IncludePath>$(ProjectDir)..\..\..\Import;$(IncludePath)</IncludePath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<IncludePath>$(ProjectDir)..\..\..\Import;$(IncludePath)</IncludePath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<IncludePath>$(ProjectDir)..\..\..\Import;$(IncludePath)</IncludePath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions);VCZH_DEBUG_NO_REFLECTION</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>_DEBUG;_WINDOWS;%(PreprocessorDefinitions);VCZH_DEBUG_NO_REFLECTION</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions);VCZH_DEBUG_NO_REFLECTION</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>NDEBUG;_WINDOWS;%(PreprocessorDefinitions);VCZH_DEBUG_NO_REFLECTION</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="UI">
|
||||
<UniqueIdentifier>{c6d9102a-e2a6-44ec-a08e-9ba5baff739d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="UI\Source\DemoPartialClasses.cpp">
|
||||
<Filter>UI</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Xml Include="UI\Resource.xml">
|
||||
<Filter>Resource Files</Filter>
|
||||
</Xml>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="UI\Source\Demo.h">
|
||||
<Filter>UI</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="UI\Source\DemoPartialClasses.h">
|
||||
<Filter>UI</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,17 @@
|
||||
#define GAC_HEADER_USE_NAMESPACE
|
||||
#include "UI/Source/Demo.h"
|
||||
|
||||
using namespace vl::collections;
|
||||
using namespace vl::stream;
|
||||
|
||||
void GuiMain()
|
||||
{
|
||||
{
|
||||
FileStream fileStream(L"../UIRes/Animation.bin", FileStream::ReadOnly);
|
||||
auto resource = GuiResource::LoadPrecompiledBinary(fileStream);
|
||||
GetResourceManager()->SetResource(L"Resource", resource);
|
||||
}
|
||||
demo::MainWindow window;
|
||||
window.MoveToScreenCenter();
|
||||
GetApplication()->Run(&window);
|
||||
}
|
||||
@@ -0,0 +1,265 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Resource>
|
||||
<Folder name="GacGenConfig">
|
||||
<Folder name="Cpp">
|
||||
<Text name="SourceFolder">Source</Text>
|
||||
<Text name="Resource">..\..\UIRes\Animation.bin</Text>
|
||||
<Text name="NormalInclude">GacUI.h</Text>
|
||||
<Text name="ReflectionInclude">GacUIReflection.h</Text>
|
||||
<Text name="Name">Demo</Text>
|
||||
</Folder>
|
||||
</Folder>
|
||||
|
||||
<Script name="ColorDef">
|
||||
<Workflow>
|
||||
<![CDATA[
|
||||
module Animation;
|
||||
|
||||
using system::*;
|
||||
using presentation::*;
|
||||
|
||||
namespace demo
|
||||
{
|
||||
class ColorDef
|
||||
{
|
||||
prop Top : Color = cast Color "#000000" {}
|
||||
prop Bottom : Color = cast Color "#000000" {}
|
||||
prop Shadow : Color = cast Color "#000000A0" {}
|
||||
prop Thickness : int = 0 {}
|
||||
|
||||
static func Dark() : ColorDef^
|
||||
{
|
||||
var def = new ColorDef^();
|
||||
def.Top = cast Color "#9999FF";
|
||||
def.Bottom = cast Color "#5555FF";
|
||||
def.Thickness = 0;
|
||||
return def;
|
||||
}
|
||||
|
||||
static func Light() : ColorDef^
|
||||
{
|
||||
var def = new ColorDef^();
|
||||
def.Top = cast Color "#DDDDFF";
|
||||
def.Bottom = cast Color "#9999FF";
|
||||
def.Thickness = 0;
|
||||
return def;
|
||||
}
|
||||
|
||||
static func Sink() : ColorDef^
|
||||
{
|
||||
var def = new ColorDef^();
|
||||
def.Top = cast Color "#5555FF";
|
||||
def.Bottom = cast Color "#0000FF";
|
||||
def.Thickness = 10;
|
||||
return def;
|
||||
}
|
||||
}
|
||||
|
||||
func F(x: double): double
|
||||
{
|
||||
var y = x * x * 2;
|
||||
return y;
|
||||
}
|
||||
|
||||
func G(x: double): double
|
||||
{
|
||||
if (x < 0.5)
|
||||
{
|
||||
return F(x);
|
||||
}
|
||||
else
|
||||
{
|
||||
return 1 - F(1 - x);
|
||||
}
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</Workflow>
|
||||
</Script>
|
||||
|
||||
<Animation name="ColorAnimation">
|
||||
<Gradient ref.Class="demo::ColorAnimation" Type="demo::ColorDef">
|
||||
<Interpolation>
|
||||
<![CDATA[G]]>
|
||||
</Interpolation>
|
||||
<Targets>
|
||||
<Target Name="Top"/>
|
||||
<Target Name="Bottom"/>
|
||||
<Target Name="Shadow"/>
|
||||
<Target Name="Thickness">
|
||||
<Interpolation>
|
||||
<![CDATA[ [$1] ]]>
|
||||
</Interpolation>
|
||||
</Target>
|
||||
</Targets>
|
||||
</Gradient>
|
||||
</Animation>
|
||||
|
||||
<Instance name="MainWindowResource">
|
||||
<Instance ref.CodeBehind="false" ref.Class="demo::MainWindow" xmlns:demo="demo::*">
|
||||
<ref.Members>
|
||||
<![CDATA[
|
||||
@cpp:Private
|
||||
static func BallAnimation(container: GuiBoundsComposition*, ball: GuiBoundsComposition*): IGuiAnimation^
|
||||
{
|
||||
return IGuiAnimation::CreateAnimation(
|
||||
func (time: UInt64): void
|
||||
{
|
||||
var circleRatio = G((cast double time) / 2000);
|
||||
|
||||
var angle = circleRatio * Math::Pi() * 2 + Math::Pi() * 1.5;
|
||||
var sin = Math::Sin(angle);
|
||||
var cos = Math::Cos(angle);
|
||||
|
||||
var cx = (container.Bounds.x2 - container.Bounds.x1) / 2;
|
||||
var cy = (container.Bounds.y2 - container.Bounds.y1) / 2;
|
||||
var radiusBall = (ball.Bounds.x2 - ball.Bounds.x1) / 2;
|
||||
var radiusOrbit = Math::Min(cx, cy) - radiusBall;
|
||||
|
||||
var x = cast int Math::Round(cos * radiusOrbit + cx);
|
||||
var y = cast int Math::Round(sin * radiusOrbit + cx);
|
||||
ball.AlignmentToParent = {left:(x - radiusBall) top:(y - radiusBall) right:-1 bottom:-1};
|
||||
|
||||
var alpha = 1.0;
|
||||
if (circleRatio < 0.05)
|
||||
{
|
||||
alpha = circleRatio * 20;
|
||||
}
|
||||
else if (circleRatio > 0.95)
|
||||
{
|
||||
alpha = (1 - circleRatio) * 20;
|
||||
}
|
||||
|
||||
var element = cast (SolidBackground^) ball.OwnedElement;
|
||||
var color = element.Color;
|
||||
element.Color = {r:color.r g:color.g b:color.b a:(cast UInt8 Math::Round(alpha * 255))};
|
||||
|
||||
if (not ball.Visible)
|
||||
{
|
||||
ball.Visible = true;
|
||||
}
|
||||
}, cast UInt64 2000);
|
||||
}
|
||||
|
||||
@cpp:Private
|
||||
static func BallAnimationWithDelay(container: GuiBoundsComposition*, ball: GuiBoundsComposition*, delay: int): IGuiAnimation^
|
||||
${
|
||||
$Wait (cast UInt64 delay);
|
||||
$PlayAndWait BallAnimation(container, ball);
|
||||
ball.Visible = false;
|
||||
}
|
||||
|
||||
@cpp:Private
|
||||
static func WaitingAnimation(container: GuiBoundsComposition*): IGuiAnimation^
|
||||
${
|
||||
var balls = {} of GuiBoundsComposition*[];
|
||||
for (i in range [0, 8))
|
||||
{
|
||||
var ball = new GuiBoundsComposition*();
|
||||
balls.Add(ball);
|
||||
|
||||
ball.Visible = false;
|
||||
ball.PreferredMinSize = {x:16 y:16};
|
||||
|
||||
var element = new SolidBackground^();
|
||||
element.Shape = {shapeType:Ellipse};
|
||||
element.Color = cast Color "#3F48CC";
|
||||
ball.OwnedElement = element;
|
||||
|
||||
container.AddChild(ball);
|
||||
}
|
||||
|
||||
while (true)
|
||||
{
|
||||
$Wait (cast UInt64 500);
|
||||
for (i in range [0, balls.Count))
|
||||
{
|
||||
$PlayInGroup BallAnimationWithDelay(container, balls[i], 150 * i), 0;
|
||||
}
|
||||
$WaitForGroup 0;
|
||||
}
|
||||
}
|
||||
|
||||
@cpp:Private
|
||||
var gradientColorDef : ColorAnimation^ = new ColorAnimation^(ColorDef::Dark());
|
||||
|
||||
@cpp:Private
|
||||
var lastGradientAnimation : IGuiAnimation^ = null;
|
||||
|
||||
func PerformGradientAnimation(target: ColorDef^): void
|
||||
{
|
||||
KillAnimation(lastGradientAnimation);
|
||||
lastGradientAnimation = gradientColorDef.CreateAnimation(target, (cast UInt64 500));
|
||||
AddAnimation(lastGradientAnimation);
|
||||
}
|
||||
|
||||
var counter : int = 0;
|
||||
]]>
|
||||
</ref.Members>
|
||||
<ref.Ctor>
|
||||
<![CDATA[
|
||||
{
|
||||
self.AddAnimation(WaitingAnimation(animationBackground));
|
||||
}
|
||||
]]>
|
||||
</ref.Ctor>
|
||||
<Window ref.Name="self" Text="GacUI XML资源临时测试" ClientSize="x:640 y:480">
|
||||
<att.BoundsComposition-set PreferredMinSize="x:640 y:480"/>
|
||||
|
||||
<Tab>
|
||||
<att.BoundsComposition-set AlignmentToParent="left:5 top:5 right:5 bottom:5"/>
|
||||
|
||||
<att.Pages>
|
||||
<TabPage Text="Gradient Animation">
|
||||
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5">
|
||||
<att.Rows>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:Percentage percentage:1.0</_>
|
||||
</att.Rows>
|
||||
|
||||
<att.Columns>
|
||||
<_>composeType:MinSize</_>
|
||||
<_>composeType:Absolute absolute:100</_>
|
||||
<_>composeType:Percentage percentage:1.0</_>
|
||||
</att.Columns>
|
||||
|
||||
<Cell Site="row:0 column:0 rowSpan:4">
|
||||
<Bounds PreferredMinSize="x:200 y:200">
|
||||
<GradientBackground Direction="Slash" Color1-bind="self.gradientColorDef.Current.Top" Color2-bind="self.gradientColorDef.Current.Bottom"/>
|
||||
<Bounds AlignmentToParent="left:0 top:0 right:0 bottom:0">
|
||||
<InnerShadow Color-bind="self.gradientColorDef.Current.Shadow" Thickness-bind="self.gradientColorDef.Current.Thickness"/>
|
||||
</Bounds>
|
||||
</Bounds>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:0 column:1">
|
||||
<Button Text="Dark" ev.Clicked-eval="self.PerformGradientAnimation(ColorDef::Dark());">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
</Button>
|
||||
</Cell>
|
||||
<Cell Site="row:1 column:1">
|
||||
<Button Text="Light" ev.Clicked-eval="self.PerformGradientAnimation(ColorDef::Light());">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
</Button>
|
||||
</Cell>
|
||||
<Cell Site="row:2 column:1">
|
||||
<Button Text="Sink" ev.Clicked-eval="self.PerformGradientAnimation(ColorDef::Sink());">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
</Button>
|
||||
</Cell>
|
||||
</Table>
|
||||
</TabPage>
|
||||
|
||||
<TabPage Text="Complex Animation">
|
||||
<BoundsComposition ref.Name="animationBackground" AlignmentToParent="left:10 top:10 right:-1 bottom:-1" PreferredMinSize="x:200 y:200">
|
||||
<SolidBackground Color="#FFC929"/>
|
||||
</BoundsComposition>
|
||||
</TabPage>
|
||||
</att.Pages>
|
||||
</Tab>
|
||||
</Window>
|
||||
</Instance>
|
||||
</Instance>
|
||||
</Resource>
|
||||
@@ -0,0 +1,15 @@
|
||||
/***********************************************************************
|
||||
!!!!!! DO NOT MODIFY !!!!!!
|
||||
|
||||
GacGen.exe Resource.xml
|
||||
|
||||
This file is generated by Workflow compiler
|
||||
https://github.com/vczh-libraries
|
||||
***********************************************************************/
|
||||
|
||||
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMO
|
||||
#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMO
|
||||
|
||||
#include "DemoPartialClasses.h"
|
||||
|
||||
#endif
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,470 @@
|
||||
/***********************************************************************
|
||||
!!!!!! DO NOT MODIFY !!!!!!
|
||||
|
||||
GacGen.exe Resource.xml
|
||||
|
||||
This file is generated by Workflow compiler
|
||||
https://github.com/vczh-libraries
|
||||
***********************************************************************/
|
||||
|
||||
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMOPARTIALCLASSES
|
||||
#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMOPARTIALCLASSES
|
||||
|
||||
#include "GacUI.h"
|
||||
|
||||
#if defined( _MSC_VER)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4250)
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wparentheses-equality"
|
||||
#elif defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wparentheses-equality"
|
||||
#endif
|
||||
|
||||
namespace vl_workflow_global
|
||||
{
|
||||
struct __vwsnf10_Demo_demo_MainWindow_BallAnimation_;
|
||||
struct __vwsnf11_Demo_demo_MainWindow_BallAnimationWithDelay_;
|
||||
struct __vwsnf12_Demo_demo_MainWindow_WaitingAnimation_;
|
||||
struct __vwsnf2_Demo_demo_ColorAnimation_CreateAnimation_;
|
||||
struct __vwsnf3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
struct __vwsnf4_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
struct __vwsnf5_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
struct __vwsnf6_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
struct __vwsnf7_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
struct __vwsnf8_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
struct __vwsnf9_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
struct __vwsno1_Demo_demo_ColorAnimation_;
|
||||
class __vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||
class __vwsnc2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||
class __vwsnc3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||
class __vwsnc4_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||
class __vwsnc5_Demo_demo_MainWindow_BallAnimationWithDelay___vl_reflection_description_ICoroutine;
|
||||
class __vwsnc6_Demo_demo_MainWindow_WaitingAnimation___vl_reflection_description_ICoroutine;
|
||||
}
|
||||
|
||||
namespace demo
|
||||
{
|
||||
class ColorAnimation;
|
||||
class MainWindowConstructor;
|
||||
class MainWindow;
|
||||
class ColorDef;
|
||||
|
||||
class ColorAnimation : public ::vl::Object, public ::vl::reflection::Description<ColorAnimation>
|
||||
{
|
||||
friend struct ::vl_workflow_global::__vwsnf2_Demo_demo_ColorAnimation_CreateAnimation_;
|
||||
friend struct ::vl_workflow_global::__vwsno1_Demo_demo_ColorAnimation_;
|
||||
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<ColorAnimation>;
|
||||
#endif
|
||||
public:
|
||||
::vl::Ptr<::demo::ColorDef> __vwsn_prop_Begin;
|
||||
::vl::Ptr<::demo::ColorDef> GetBegin();
|
||||
void SetBegin(::vl::Ptr<::demo::ColorDef> __vwsn_value_);
|
||||
::vl::Event<void()> BeginChanged;
|
||||
::vl::Ptr<::demo::ColorDef> __vwsn_prop_End;
|
||||
::vl::Ptr<::demo::ColorDef> GetEnd();
|
||||
void SetEnd(::vl::Ptr<::demo::ColorDef> __vwsn_value_);
|
||||
::vl::Event<void()> EndChanged;
|
||||
::vl::Ptr<::demo::ColorDef> __vwsn_prop_Current;
|
||||
::vl::Ptr<::demo::ColorDef> GetCurrent();
|
||||
void SetCurrent(::vl::Ptr<::demo::ColorDef> __vwsn_value_);
|
||||
::vl::Event<void()> CurrentChanged;
|
||||
private:
|
||||
::vl::Func<double(double)> __vwsn_ani_int_;
|
||||
::vl::Func<double(double)> __vwsn_ani_int_Thickness;
|
||||
public:
|
||||
double GetTimeScale(::vl::Ptr<::demo::ColorDef> __vwsn_ani_begin, ::vl::Ptr<::demo::ColorDef> __vwsn_ani_end, ::vl::Ptr<::demo::ColorDef> __vwsn_ani_current);
|
||||
void Interpolate(::vl::Ptr<::demo::ColorDef> __vwsn_ani_begin, ::vl::Ptr<::demo::ColorDef> __vwsn_ani_end, ::vl::Ptr<::demo::ColorDef> __vwsn_ani_current, double __vwsn_ani_ratio);
|
||||
void Interpolate(double __vwsn_ani_ratio);
|
||||
::vl::Ptr<::vl::presentation::controls::IGuiAnimation> CreateAnimation(::vl::Ptr<::demo::ColorDef> __vwsn_ani_target, ::vl::vuint64_t __vwsn_ani_time);
|
||||
ColorAnimation(::vl::Ptr<::demo::ColorDef> __vwsn_ani_current);
|
||||
};
|
||||
|
||||
class MainWindowConstructor : public ::vl::Object, public ::vl::reflection::Description<MainWindowConstructor>
|
||||
{
|
||||
friend class ::vl_workflow_global::__vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||
friend class ::vl_workflow_global::__vwsnc2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||
friend class ::vl_workflow_global::__vwsnc3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||
friend class ::vl_workflow_global::__vwsnc4_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||
friend struct ::vl_workflow_global::__vwsnf3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
friend struct ::vl_workflow_global::__vwsnf4_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
friend struct ::vl_workflow_global::__vwsnf5_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
friend struct ::vl_workflow_global::__vwsnf6_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
friend struct ::vl_workflow_global::__vwsnf7_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
friend struct ::vl_workflow_global::__vwsnf8_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
friend struct ::vl_workflow_global::__vwsnf9_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindowConstructor>;
|
||||
#endif
|
||||
protected:
|
||||
::demo::MainWindow* self;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* animationBackground;
|
||||
::vl::presentation::controls::GuiTab* __vwsn_precompile_0;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_1;
|
||||
::vl::presentation::controls::GuiTabPage* __vwsn_precompile_2;
|
||||
::vl::presentation::compositions::GuiTableComposition* __vwsn_precompile_3;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_4;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_5;
|
||||
::vl::Ptr<::vl::presentation::elements::GuiGradientBackgroundElement> __vwsn_precompile_6;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_7;
|
||||
::vl::Ptr<::vl::presentation::elements::GuiInnerShadowElement> __vwsn_precompile_8;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_9;
|
||||
::vl::presentation::controls::GuiButton* __vwsn_precompile_10;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_11;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_12;
|
||||
::vl::presentation::controls::GuiButton* __vwsn_precompile_13;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_14;
|
||||
::vl::presentation::compositions::GuiCellComposition* __vwsn_precompile_15;
|
||||
::vl::presentation::controls::GuiButton* __vwsn_precompile_16;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_17;
|
||||
::vl::presentation::controls::GuiTabPage* __vwsn_precompile_18;
|
||||
::vl::Ptr<::vl::presentation::elements::GuiSolidBackgroundElement> __vwsn_precompile_19;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* __vwsn_precompile_20;
|
||||
void __vwsn_initialize_instance_(::demo::MainWindow* __vwsn_this_);
|
||||
public:
|
||||
MainWindowConstructor();
|
||||
};
|
||||
|
||||
class MainWindow : public ::vl::presentation::controls::GuiWindow, public ::demo::MainWindowConstructor, public ::vl::reflection::Description<MainWindow>
|
||||
{
|
||||
friend class ::vl_workflow_global::__vwsnc5_Demo_demo_MainWindow_BallAnimationWithDelay___vl_reflection_description_ICoroutine;
|
||||
friend class ::vl_workflow_global::__vwsnc6_Demo_demo_MainWindow_WaitingAnimation___vl_reflection_description_ICoroutine;
|
||||
friend struct ::vl_workflow_global::__vwsnf10_Demo_demo_MainWindow_BallAnimation_;
|
||||
friend struct ::vl_workflow_global::__vwsnf11_Demo_demo_MainWindow_BallAnimationWithDelay_;
|
||||
friend struct ::vl_workflow_global::__vwsnf12_Demo_demo_MainWindow_WaitingAnimation_;
|
||||
friend class ::demo::MainWindowConstructor;
|
||||
friend class ::vl_workflow_global::__vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||
friend class ::vl_workflow_global::__vwsnc2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||
friend class ::vl_workflow_global::__vwsnc3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||
friend class ::vl_workflow_global::__vwsnc4_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription;
|
||||
friend struct ::vl_workflow_global::__vwsnf3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
friend struct ::vl_workflow_global::__vwsnf4_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
friend struct ::vl_workflow_global::__vwsnf5_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
friend struct ::vl_workflow_global::__vwsnf6_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
friend struct ::vl_workflow_global::__vwsnf7_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
friend struct ::vl_workflow_global::__vwsnf8_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
friend struct ::vl_workflow_global::__vwsnf9_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__;
|
||||
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<MainWindow>;
|
||||
#endif
|
||||
private:
|
||||
static ::vl::Ptr<::vl::presentation::controls::IGuiAnimation> BallAnimation(::vl::presentation::compositions::GuiBoundsComposition* container, ::vl::presentation::compositions::GuiBoundsComposition* ball);
|
||||
static ::vl::Ptr<::vl::presentation::controls::IGuiAnimation> BallAnimationWithDelay(::vl::presentation::compositions::GuiBoundsComposition* container, ::vl::presentation::compositions::GuiBoundsComposition* ball, ::vl::vint delay);
|
||||
static ::vl::Ptr<::vl::presentation::controls::IGuiAnimation> WaitingAnimation(::vl::presentation::compositions::GuiBoundsComposition* container);
|
||||
::vl::Ptr<::demo::ColorAnimation> gradientColorDef;
|
||||
::vl::Ptr<::vl::presentation::controls::IGuiAnimation> lastGradientAnimation;
|
||||
public:
|
||||
void PerformGradientAnimation(::vl::Ptr<::demo::ColorDef> target);
|
||||
::vl::vint counter;
|
||||
MainWindow();
|
||||
void __vwsn_instance_ctor_();
|
||||
~MainWindow();
|
||||
};
|
||||
|
||||
class ColorDef : public ::vl::Object, public ::vl::reflection::Description<ColorDef>
|
||||
{
|
||||
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||
friend struct ::vl::reflection::description::CustomTypeDescriptorSelector<ColorDef>;
|
||||
#endif
|
||||
private:
|
||||
::vl::presentation::Color __vwsn_prop_Top;
|
||||
public:
|
||||
::vl::presentation::Color GetTop();
|
||||
void SetTop(::vl::presentation::Color __vwsn_value_);
|
||||
::vl::Event<void()> TopChanged;
|
||||
private:
|
||||
::vl::presentation::Color __vwsn_prop_Bottom;
|
||||
public:
|
||||
::vl::presentation::Color GetBottom();
|
||||
void SetBottom(::vl::presentation::Color __vwsn_value_);
|
||||
::vl::Event<void()> BottomChanged;
|
||||
private:
|
||||
::vl::presentation::Color __vwsn_prop_Shadow;
|
||||
public:
|
||||
::vl::presentation::Color GetShadow();
|
||||
void SetShadow(::vl::presentation::Color __vwsn_value_);
|
||||
::vl::Event<void()> ShadowChanged;
|
||||
private:
|
||||
::vl::vint __vwsn_prop_Thickness;
|
||||
public:
|
||||
::vl::vint GetThickness();
|
||||
void SetThickness(::vl::vint __vwsn_value_);
|
||||
::vl::Event<void()> ThicknessChanged;
|
||||
static ::vl::Ptr<::demo::ColorDef> Dark();
|
||||
static ::vl::Ptr<::demo::ColorDef> Light();
|
||||
static ::vl::Ptr<::demo::ColorDef> Sink();
|
||||
ColorDef();
|
||||
};
|
||||
|
||||
}
|
||||
/***********************************************************************
|
||||
Global Variables and Functions
|
||||
***********************************************************************/
|
||||
|
||||
namespace vl_workflow_global
|
||||
{
|
||||
class Demo
|
||||
{
|
||||
public:
|
||||
|
||||
double F(double x);
|
||||
double G(double x);
|
||||
|
||||
static Demo& Instance();
|
||||
};
|
||||
|
||||
/***********************************************************************
|
||||
Closures
|
||||
***********************************************************************/
|
||||
|
||||
struct __vwsnf10_Demo_demo_MainWindow_BallAnimation_
|
||||
{
|
||||
::vl::presentation::compositions::GuiBoundsComposition* ball;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* container;
|
||||
|
||||
__vwsnf10_Demo_demo_MainWindow_BallAnimation_(::vl::presentation::compositions::GuiBoundsComposition* __vwsnctor_ball, ::vl::presentation::compositions::GuiBoundsComposition* __vwsnctor_container);
|
||||
|
||||
void operator()(::vl::vuint64_t time) const;
|
||||
};
|
||||
|
||||
struct __vwsnf11_Demo_demo_MainWindow_BallAnimationWithDelay_
|
||||
{
|
||||
::vl::presentation::compositions::GuiBoundsComposition* ball;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* container;
|
||||
::vl::vint delay;
|
||||
|
||||
__vwsnf11_Demo_demo_MainWindow_BallAnimationWithDelay_(::vl::presentation::compositions::GuiBoundsComposition* __vwsnctor_ball, ::vl::presentation::compositions::GuiBoundsComposition* __vwsnctor_container, ::vl::vint __vwsnctor_delay);
|
||||
|
||||
::vl::Ptr<::vl::reflection::description::ICoroutine> operator()(::vl::presentation::controls::IGuiAnimationCoroutine::IImpl* __vwsn_co_impl_) const;
|
||||
};
|
||||
|
||||
struct __vwsnf12_Demo_demo_MainWindow_WaitingAnimation_
|
||||
{
|
||||
::vl::presentation::compositions::GuiBoundsComposition* container;
|
||||
|
||||
__vwsnf12_Demo_demo_MainWindow_WaitingAnimation_(::vl::presentation::compositions::GuiBoundsComposition* __vwsnctor_container);
|
||||
|
||||
::vl::Ptr<::vl::reflection::description::ICoroutine> operator()(::vl::presentation::controls::IGuiAnimationCoroutine::IImpl* __vwsn_co_impl_) const;
|
||||
};
|
||||
|
||||
struct __vwsnf2_Demo_demo_ColorAnimation_CreateAnimation_
|
||||
{
|
||||
::vl::vuint64_t __vwsn_ani_time;
|
||||
::demo::ColorAnimation* __vwsnthis_0;
|
||||
|
||||
__vwsnf2_Demo_demo_ColorAnimation_CreateAnimation_(::vl::vuint64_t __vwsnctor___vwsn_ani_time, ::demo::ColorAnimation* __vwsnctorthis_0);
|
||||
|
||||
void operator()(::vl::vuint64_t __vwsn_ani_currentTime) const;
|
||||
};
|
||||
|
||||
struct __vwsnf3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__
|
||||
{
|
||||
::demo::MainWindowConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnf3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__(::demo::MainWindowConstructor* __vwsnctorthis_0);
|
||||
|
||||
void operator()(const ::vl::reflection::description::Value& __vwsn_value_) const;
|
||||
};
|
||||
|
||||
struct __vwsnf4_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__
|
||||
{
|
||||
::demo::MainWindowConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnf4_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__(::demo::MainWindowConstructor* __vwsnctorthis_0);
|
||||
|
||||
void operator()(const ::vl::reflection::description::Value& __vwsn_value_) const;
|
||||
};
|
||||
|
||||
struct __vwsnf5_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__
|
||||
{
|
||||
::demo::MainWindowConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnf5_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__(::demo::MainWindowConstructor* __vwsnctorthis_0);
|
||||
|
||||
void operator()(const ::vl::reflection::description::Value& __vwsn_value_) const;
|
||||
};
|
||||
|
||||
struct __vwsnf6_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__
|
||||
{
|
||||
::demo::MainWindowConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnf6_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__(::demo::MainWindowConstructor* __vwsnctorthis_0);
|
||||
|
||||
void operator()(const ::vl::reflection::description::Value& __vwsn_value_) const;
|
||||
};
|
||||
|
||||
struct __vwsnf7_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__
|
||||
{
|
||||
::demo::MainWindowConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnf7_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__(::demo::MainWindowConstructor* __vwsnctorthis_0);
|
||||
|
||||
void operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const;
|
||||
};
|
||||
|
||||
struct __vwsnf8_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__
|
||||
{
|
||||
::demo::MainWindowConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnf8_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__(::demo::MainWindowConstructor* __vwsnctorthis_0);
|
||||
|
||||
void operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const;
|
||||
};
|
||||
|
||||
struct __vwsnf9_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__
|
||||
{
|
||||
::demo::MainWindowConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnf9_Demo_demo_MainWindowConstructor___vwsn_initialize_instance__(::demo::MainWindowConstructor* __vwsnctorthis_0);
|
||||
|
||||
void operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const;
|
||||
};
|
||||
|
||||
struct __vwsno1_Demo_demo_ColorAnimation_
|
||||
{
|
||||
__vwsno1_Demo_demo_ColorAnimation_();
|
||||
|
||||
double operator()(double __vwsno_1) const;
|
||||
};
|
||||
|
||||
class __vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription : public ::vl::Object, public virtual ::vl::reflection::description::IValueSubscription
|
||||
{
|
||||
public:
|
||||
::demo::MainWindowConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription(::demo::MainWindowConstructor* __vwsnctorthis_0);
|
||||
|
||||
::vl::Ptr<::demo::ColorAnimation> __vwsn_bind_cache_0;
|
||||
::vl::Ptr<::demo::ColorDef> __vwsn_bind_cache_1;
|
||||
::vl::Ptr<::vl::reflection::description::IEventHandler> __vwsn_bind_handler_0_0;
|
||||
::vl::Ptr<::vl::reflection::description::IEventHandler> __vwsn_bind_handler_1_0;
|
||||
bool __vwsn_bind_opened_ = false;
|
||||
bool __vwsn_bind_closed_ = false;
|
||||
void __vwsn_bind_activator_();
|
||||
void __vwsn_bind_callback_0_0();
|
||||
void __vwsn_bind_callback_1_0();
|
||||
bool Open() override;
|
||||
bool Update() override;
|
||||
bool Close() override;
|
||||
};
|
||||
|
||||
class __vwsnc2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription : public ::vl::Object, public virtual ::vl::reflection::description::IValueSubscription
|
||||
{
|
||||
public:
|
||||
::demo::MainWindowConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnc2_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription(::demo::MainWindowConstructor* __vwsnctorthis_0);
|
||||
|
||||
::vl::Ptr<::demo::ColorAnimation> __vwsn_bind_cache_0;
|
||||
::vl::Ptr<::demo::ColorDef> __vwsn_bind_cache_1;
|
||||
::vl::Ptr<::vl::reflection::description::IEventHandler> __vwsn_bind_handler_0_0;
|
||||
::vl::Ptr<::vl::reflection::description::IEventHandler> __vwsn_bind_handler_1_0;
|
||||
bool __vwsn_bind_opened_ = false;
|
||||
bool __vwsn_bind_closed_ = false;
|
||||
void __vwsn_bind_activator_();
|
||||
void __vwsn_bind_callback_0_0();
|
||||
void __vwsn_bind_callback_1_0();
|
||||
bool Open() override;
|
||||
bool Update() override;
|
||||
bool Close() override;
|
||||
};
|
||||
|
||||
class __vwsnc3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription : public ::vl::Object, public virtual ::vl::reflection::description::IValueSubscription
|
||||
{
|
||||
public:
|
||||
::demo::MainWindowConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnc3_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription(::demo::MainWindowConstructor* __vwsnctorthis_0);
|
||||
|
||||
::vl::Ptr<::demo::ColorAnimation> __vwsn_bind_cache_0;
|
||||
::vl::Ptr<::demo::ColorDef> __vwsn_bind_cache_1;
|
||||
::vl::Ptr<::vl::reflection::description::IEventHandler> __vwsn_bind_handler_0_0;
|
||||
::vl::Ptr<::vl::reflection::description::IEventHandler> __vwsn_bind_handler_1_0;
|
||||
bool __vwsn_bind_opened_ = false;
|
||||
bool __vwsn_bind_closed_ = false;
|
||||
void __vwsn_bind_activator_();
|
||||
void __vwsn_bind_callback_0_0();
|
||||
void __vwsn_bind_callback_1_0();
|
||||
bool Open() override;
|
||||
bool Update() override;
|
||||
bool Close() override;
|
||||
};
|
||||
|
||||
class __vwsnc4_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription : public ::vl::Object, public virtual ::vl::reflection::description::IValueSubscription
|
||||
{
|
||||
public:
|
||||
::demo::MainWindowConstructor* __vwsnthis_0;
|
||||
|
||||
__vwsnc4_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription(::demo::MainWindowConstructor* __vwsnctorthis_0);
|
||||
|
||||
::vl::Ptr<::demo::ColorAnimation> __vwsn_bind_cache_0;
|
||||
::vl::Ptr<::demo::ColorDef> __vwsn_bind_cache_1;
|
||||
::vl::Ptr<::vl::reflection::description::IEventHandler> __vwsn_bind_handler_0_0;
|
||||
::vl::Ptr<::vl::reflection::description::IEventHandler> __vwsn_bind_handler_1_0;
|
||||
bool __vwsn_bind_opened_ = false;
|
||||
bool __vwsn_bind_closed_ = false;
|
||||
void __vwsn_bind_activator_();
|
||||
void __vwsn_bind_callback_0_0();
|
||||
void __vwsn_bind_callback_1_0();
|
||||
bool Open() override;
|
||||
bool Update() override;
|
||||
bool Close() override;
|
||||
};
|
||||
|
||||
class __vwsnc5_Demo_demo_MainWindow_BallAnimationWithDelay___vl_reflection_description_ICoroutine : public ::vl::Object, public virtual ::vl::reflection::description::ICoroutine
|
||||
{
|
||||
public:
|
||||
::vl::presentation::controls::IGuiAnimationCoroutine::IImpl* __vwsn_co_impl_;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* ball;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* container;
|
||||
::vl::vint delay;
|
||||
|
||||
__vwsnc5_Demo_demo_MainWindow_BallAnimationWithDelay___vl_reflection_description_ICoroutine(::vl::presentation::controls::IGuiAnimationCoroutine::IImpl* __vwsnctor___vwsn_co_impl_, ::vl::presentation::compositions::GuiBoundsComposition* __vwsnctor_ball, ::vl::presentation::compositions::GuiBoundsComposition* __vwsnctor_container, ::vl::vint __vwsnctor_delay);
|
||||
|
||||
::vl::vint __vwsn_co_state_ = 0;
|
||||
::vl::vint __vwsn_co_state_before_pause_ = 0;
|
||||
::vl::Ptr<::vl::reflection::description::IValueException> __vwsn_prop_Failure;
|
||||
::vl::Ptr<::vl::reflection::description::IValueException> GetFailure() override;
|
||||
void SetFailure(::vl::Ptr<::vl::reflection::description::IValueException> __vwsn_value_);
|
||||
::vl::reflection::description::CoroutineStatus __vwsn_prop_Status = static_cast<::vl::reflection::description::CoroutineStatus>(0);
|
||||
::vl::reflection::description::CoroutineStatus GetStatus() override;
|
||||
void SetStatus(::vl::reflection::description::CoroutineStatus __vwsn_value_);
|
||||
void Resume(bool __vwsn_raise_exception_, ::vl::Ptr<::vl::reflection::description::CoroutineResult> __vwsn_co_result_) override;
|
||||
};
|
||||
|
||||
class __vwsnc6_Demo_demo_MainWindow_WaitingAnimation___vl_reflection_description_ICoroutine : public ::vl::Object, public virtual ::vl::reflection::description::ICoroutine
|
||||
{
|
||||
public:
|
||||
::vl::presentation::controls::IGuiAnimationCoroutine::IImpl* __vwsn_co_impl_;
|
||||
::vl::presentation::compositions::GuiBoundsComposition* container;
|
||||
|
||||
__vwsnc6_Demo_demo_MainWindow_WaitingAnimation___vl_reflection_description_ICoroutine(::vl::presentation::controls::IGuiAnimationCoroutine::IImpl* __vwsnctor___vwsn_co_impl_, ::vl::presentation::compositions::GuiBoundsComposition* __vwsnctor_container);
|
||||
|
||||
::vl::vint __vwsn_co0_for_begin_i = 0;
|
||||
::vl::vint __vwsn_co1_for_end_i = 0;
|
||||
::vl::vint __vwsn_co2_i = 0;
|
||||
::vl::Ptr<::vl::reflection::description::IValueList> __vwsn_co3_balls;
|
||||
::vl::vint __vwsn_co_state_ = 0;
|
||||
::vl::vint __vwsn_co_state_before_pause_ = 0;
|
||||
::vl::Ptr<::vl::reflection::description::IValueException> __vwsn_prop_Failure;
|
||||
::vl::Ptr<::vl::reflection::description::IValueException> GetFailure() override;
|
||||
void SetFailure(::vl::Ptr<::vl::reflection::description::IValueException> __vwsn_value_);
|
||||
::vl::reflection::description::CoroutineStatus __vwsn_prop_Status = static_cast<::vl::reflection::description::CoroutineStatus>(0);
|
||||
::vl::reflection::description::CoroutineStatus GetStatus() override;
|
||||
void SetStatus(::vl::reflection::description::CoroutineStatus __vwsn_value_);
|
||||
void Resume(bool __vwsn_raise_exception_, ::vl::Ptr<::vl::reflection::description::CoroutineResult> __vwsn_co_result_) override;
|
||||
};
|
||||
}
|
||||
|
||||
#if defined( _MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#elif defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,170 @@
|
||||
/***********************************************************************
|
||||
!!!!!! DO NOT MODIFY !!!!!!
|
||||
|
||||
GacGen.exe Resource.xml
|
||||
|
||||
This file is generated by Workflow compiler
|
||||
https://github.com/vczh-libraries
|
||||
***********************************************************************/
|
||||
|
||||
#include "DemoReflection.h"
|
||||
|
||||
#if defined( _MSC_VER)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4250)
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wparentheses-equality"
|
||||
#elif defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wparentheses-equality"
|
||||
#endif
|
||||
|
||||
/***********************************************************************
|
||||
Reflection
|
||||
***********************************************************************/
|
||||
|
||||
namespace vl
|
||||
{
|
||||
namespace reflection
|
||||
{
|
||||
namespace description
|
||||
{
|
||||
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||
IMPL_CPP_TYPE_INFO(demo::ColorAnimation)
|
||||
IMPL_CPP_TYPE_INFO(demo::ColorDef)
|
||||
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
||||
IMPL_CPP_TYPE_INFO(demo::MainWindowConstructor)
|
||||
|
||||
#define _ ,
|
||||
BEGIN_CLASS_MEMBER(::demo::ColorAnimation)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::vl::Ptr<::demo::ColorAnimation>(::vl::Ptr<::demo::ColorDef>), { L"__vwsn_ani_current" })
|
||||
CLASS_MEMBER_METHOD(CreateAnimation, { L"__vwsn_ani_target" _ L"__vwsn_ani_time" })
|
||||
CLASS_MEMBER_METHOD(GetBegin, NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(GetCurrent, NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(GetEnd, NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(GetTimeScale, { L"__vwsn_ani_begin" _ L"__vwsn_ani_end" _ L"__vwsn_ani_current" })
|
||||
CLASS_MEMBER_METHOD_OVERLOAD(Interpolate, { L"__vwsn_ani_begin" _ L"__vwsn_ani_end" _ L"__vwsn_ani_current" _ L"__vwsn_ani_ratio" }, void(::demo::ColorAnimation::*)(::vl::Ptr<::demo::ColorDef>, ::vl::Ptr<::demo::ColorDef>, ::vl::Ptr<::demo::ColorDef>, double))
|
||||
CLASS_MEMBER_METHOD_OVERLOAD(Interpolate, { L"__vwsn_ani_ratio" }, void(::demo::ColorAnimation::*)(double))
|
||||
CLASS_MEMBER_METHOD(SetBegin, { L"__vwsn_value_" })
|
||||
CLASS_MEMBER_METHOD(SetCurrent, { L"__vwsn_value_" })
|
||||
CLASS_MEMBER_METHOD(SetEnd, { L"__vwsn_value_" })
|
||||
CLASS_MEMBER_EVENT(BeginChanged)
|
||||
CLASS_MEMBER_EVENT(CurrentChanged)
|
||||
CLASS_MEMBER_EVENT(EndChanged)
|
||||
CLASS_MEMBER_FIELD(__vwsn_ani_int_)
|
||||
CLASS_MEMBER_FIELD(__vwsn_ani_int_Thickness)
|
||||
CLASS_MEMBER_FIELD(__vwsn_prop_Begin)
|
||||
CLASS_MEMBER_FIELD(__vwsn_prop_Current)
|
||||
CLASS_MEMBER_FIELD(__vwsn_prop_End)
|
||||
CLASS_MEMBER_PROPERTY_EVENT(Begin, GetBegin, SetBegin, BeginChanged)
|
||||
CLASS_MEMBER_PROPERTY_EVENT(Current, GetCurrent, SetCurrent, CurrentChanged)
|
||||
CLASS_MEMBER_PROPERTY_EVENT(End, GetEnd, SetEnd, EndChanged)
|
||||
END_CLASS_MEMBER(::demo::ColorAnimation)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::ColorDef)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::vl::Ptr<::demo::ColorDef>(), NO_PARAMETER)
|
||||
CLASS_MEMBER_STATIC_METHOD(Dark, NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(GetBottom, NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(GetShadow, NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(GetThickness, NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(GetTop, NO_PARAMETER)
|
||||
CLASS_MEMBER_STATIC_METHOD(Light, NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(SetBottom, { L"__vwsn_value_" })
|
||||
CLASS_MEMBER_METHOD(SetShadow, { L"__vwsn_value_" })
|
||||
CLASS_MEMBER_METHOD(SetThickness, { L"__vwsn_value_" })
|
||||
CLASS_MEMBER_METHOD(SetTop, { L"__vwsn_value_" })
|
||||
CLASS_MEMBER_STATIC_METHOD(Sink, NO_PARAMETER)
|
||||
CLASS_MEMBER_EVENT(BottomChanged)
|
||||
CLASS_MEMBER_EVENT(ShadowChanged)
|
||||
CLASS_MEMBER_EVENT(ThicknessChanged)
|
||||
CLASS_MEMBER_EVENT(TopChanged)
|
||||
CLASS_MEMBER_FIELD(__vwsn_prop_Bottom)
|
||||
CLASS_MEMBER_FIELD(__vwsn_prop_Shadow)
|
||||
CLASS_MEMBER_FIELD(__vwsn_prop_Thickness)
|
||||
CLASS_MEMBER_FIELD(__vwsn_prop_Top)
|
||||
CLASS_MEMBER_PROPERTY_EVENT(Bottom, GetBottom, SetBottom, BottomChanged)
|
||||
CLASS_MEMBER_PROPERTY_EVENT(Shadow, GetShadow, SetShadow, ShadowChanged)
|
||||
CLASS_MEMBER_PROPERTY_EVENT(Thickness, GetThickness, SetThickness, ThicknessChanged)
|
||||
CLASS_MEMBER_PROPERTY_EVENT(Top, GetTop, SetTop, TopChanged)
|
||||
END_CLASS_MEMBER(::demo::ColorDef)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::MainWindow)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::demo::MainWindow*(), NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(__vwsn_instance_ctor_, NO_PARAMETER)
|
||||
CLASS_MEMBER_STATIC_METHOD(BallAnimation, { L"container" _ L"ball" })
|
||||
CLASS_MEMBER_STATIC_METHOD(BallAnimationWithDelay, { L"container" _ L"ball" _ L"delay" })
|
||||
CLASS_MEMBER_METHOD(PerformGradientAnimation, { L"target" })
|
||||
CLASS_MEMBER_STATIC_METHOD(WaitingAnimation, { L"container" })
|
||||
CLASS_MEMBER_FIELD(counter)
|
||||
CLASS_MEMBER_FIELD(gradientColorDef)
|
||||
CLASS_MEMBER_FIELD(lastGradientAnimation)
|
||||
END_CLASS_MEMBER(::demo::MainWindow)
|
||||
|
||||
BEGIN_CLASS_MEMBER(::demo::MainWindowConstructor)
|
||||
CLASS_MEMBER_CONSTRUCTOR(::vl::Ptr<::demo::MainWindowConstructor>(), NO_PARAMETER)
|
||||
CLASS_MEMBER_METHOD(__vwsn_initialize_instance_, { L"__vwsn_this_" })
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_0)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_1)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_10)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_11)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_12)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_13)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_14)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_15)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_16)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_17)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_18)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_19)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_2)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_20)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_3)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_4)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_5)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_6)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_7)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_8)
|
||||
CLASS_MEMBER_FIELD(__vwsn_precompile_9)
|
||||
CLASS_MEMBER_FIELD(animationBackground)
|
||||
CLASS_MEMBER_FIELD(self)
|
||||
END_CLASS_MEMBER(::demo::MainWindowConstructor)
|
||||
|
||||
#undef _
|
||||
class DemoTypeLoader : public Object, public ITypeLoader
|
||||
{
|
||||
public:
|
||||
void Load(ITypeManager* manager)
|
||||
{
|
||||
ADD_TYPE_INFO(::demo::ColorAnimation)
|
||||
ADD_TYPE_INFO(::demo::ColorDef)
|
||||
ADD_TYPE_INFO(::demo::MainWindow)
|
||||
ADD_TYPE_INFO(::demo::MainWindowConstructor)
|
||||
}
|
||||
|
||||
void Unload(ITypeManager* manager)
|
||||
{
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
bool LoadDemoTypes()
|
||||
{
|
||||
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||
if (auto manager = GetGlobalTypeManager())
|
||||
{
|
||||
return manager->AddTypeLoader(MakePtr<DemoTypeLoader>());
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if defined( _MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#elif defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
@@ -0,0 +1,59 @@
|
||||
/***********************************************************************
|
||||
!!!!!! DO NOT MODIFY !!!!!!
|
||||
|
||||
GacGen.exe Resource.xml
|
||||
|
||||
This file is generated by Workflow compiler
|
||||
https://github.com/vczh-libraries
|
||||
***********************************************************************/
|
||||
|
||||
#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMOREFLECTION
|
||||
#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMOREFLECTION
|
||||
|
||||
#include "Demo.h"
|
||||
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||
#include "GacUIReflection.h"
|
||||
#endif
|
||||
|
||||
#if defined( _MSC_VER)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4250)
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wparentheses-equality"
|
||||
#elif defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wparentheses-equality"
|
||||
#endif
|
||||
|
||||
/***********************************************************************
|
||||
Reflection
|
||||
***********************************************************************/
|
||||
|
||||
namespace vl
|
||||
{
|
||||
namespace reflection
|
||||
{
|
||||
namespace description
|
||||
{
|
||||
#ifndef VCZH_DEBUG_NO_REFLECTION
|
||||
DECL_TYPE_INFO(::demo::ColorAnimation)
|
||||
DECL_TYPE_INFO(::demo::ColorDef)
|
||||
DECL_TYPE_INFO(::demo::MainWindow)
|
||||
DECL_TYPE_INFO(::demo::MainWindowConstructor)
|
||||
#endif
|
||||
|
||||
extern bool LoadDemoTypes();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if defined( _MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#elif defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.27130.2027
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ContainersAndButtons", "ContainersAndButtons\ContainersAndButtons.vcxproj", "{0C211930-C5DA-4567-A752-1D847CADEC1C}"
|
||||
EndProject
|
||||
@@ -25,6 +25,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DocumentEditor", "DocumentE
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CalculatorAndStateMachine", "CalculatorAndStateMachine\CalculatorAndStateMachine.vcxproj", "{7A1792BE-F866-44EE-83BF-E686BDA54B37}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Animation", "Animation\Animation.vcxproj", "{2D3277A7-05CC-4F4C-B12D-DAEDA13B4E5E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
@@ -103,6 +105,14 @@ Global
|
||||
{7A1792BE-F866-44EE-83BF-E686BDA54B37}.Release|Win32.Build.0 = Release|Win32
|
||||
{7A1792BE-F866-44EE-83BF-E686BDA54B37}.Release|x64.ActiveCfg = Release|x64
|
||||
{7A1792BE-F866-44EE-83BF-E686BDA54B37}.Release|x64.Build.0 = Release|x64
|
||||
{2D3277A7-05CC-4F4C-B12D-DAEDA13B4E5E}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{2D3277A7-05CC-4F4C-B12D-DAEDA13B4E5E}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{2D3277A7-05CC-4F4C-B12D-DAEDA13B4E5E}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{2D3277A7-05CC-4F4C-B12D-DAEDA13B4E5E}.Debug|x64.Build.0 = Debug|x64
|
||||
{2D3277A7-05CC-4F4C-B12D-DAEDA13B4E5E}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{2D3277A7-05CC-4F4C-B12D-DAEDA13B4E5E}.Release|Win32.Build.0 = Release|Win32
|
||||
{2D3277A7-05CC-4F4C-B12D-DAEDA13B4E5E}.Release|x64.ActiveCfg = Release|x64
|
||||
{2D3277A7-05CC-4F4C-B12D-DAEDA13B4E5E}.Release|x64.Build.0 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
@@ -110,4 +120,7 @@ Global
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{96C559CA-9718-4BEC-A053-28A0AB6A8CA2} = {739DADD1-5B91-464A-B477-7581D6323E2B}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {7905D32D-3D44-4C67-B616-778937E189F9}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user