mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-22 07:01:23 +08:00
demo: GacUI_Windows\Direct2DClock
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
#pragma once
|
||||
|
||||
#include <GacUI.h>
|
||||
|
||||
namespace vl
|
||||
{
|
||||
namespace presentation
|
||||
{
|
||||
namespace elements
|
||||
{
|
||||
struct GuiDirect2DElementEventArgs;
|
||||
class GuiDirect2DElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace demo
|
||||
{
|
||||
struct AnimationControlMembers;
|
||||
|
||||
class AnimationControl
|
||||
: public vl::presentation::controls::GuiControl
|
||||
, protected vl::presentation::INativeControllerListener
|
||||
{
|
||||
using D2DElement = vl::presentation::elements::GuiDirect2DElement;
|
||||
using D2DEventArgs = vl::presentation::elements::GuiDirect2DElementEventArgs;
|
||||
using GuiGraphicsComposition = vl::presentation::compositions::GuiGraphicsComposition;
|
||||
|
||||
protected:
|
||||
vl::Ptr<AnimationControlMembers> members;
|
||||
D2DElement* element;
|
||||
|
||||
void GlobalTimer()override;
|
||||
void OnBeforeRenderTargetChanged(GuiGraphicsComposition* sender, D2DEventArgs& arguments);
|
||||
void OnAfterRenderTargetChanged(GuiGraphicsComposition* sender, D2DEventArgs& arguments);
|
||||
void OnRendering(GuiGraphicsComposition* sender, D2DEventArgs& arguments);
|
||||
public:
|
||||
AnimationControl();
|
||||
~AnimationControl();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user