-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLibraryIcon.h
More file actions
125 lines (104 loc) · 4.98 KB
/
LibraryIcon.h
File metadata and controls
125 lines (104 loc) · 4.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#pragma once
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// LottieGen version:
// 8.0.280224.1+42b1fb4fd6
//
// Command:
// LottieGen -GenerateColorBindings -Language Cppwinrt -Namespace SuiteInstaller
// -WinUIVersion 3.0 -InputFile libraryIcon.json
//
// Input file:
// libraryIcon.json (14508 bytes created 11:43+02:00 Nov 22 2024)
//
// LottieGen source:
// http://aka.ms/Lottie
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#include "LibraryIcon.g.h"
namespace winrt::SuiteInstaller
{
// Name: libraryIcon_sameColor
// Frame rate: 30 fps
// Frame count: 60
// Duration: 2000.0 mS
// _____________________________________________________________________________________
// | Marker | Constant | Frame | mS | Progress |
// |________________________|__________________________|_______|________|______________|
// | NormalToSelected_Start | M_NormalToSelected_Start | 0 | 0.0 | 0.0F |
// | NormalToSelected_End | M_NormalToSelected_End | 30 | 1000.0 | 0.500833333F |
// | SelectedToNormal_Start | M_SelectedToNormal_Start | 46 | 1533.3 | 0.767499983F |
// | SelectedToNormal_End | M_SelectedToNormal_End | 60 | 2000.0 | 1.0F |
// -------------------------------------------------------------------------------------
// __________________________________________________________
// | Theme property | Accessor | Type | Default value |
// |________________|______________|_______|________________|
// | #0000FF | Foreground | Color | #FF0000FF Blue |
// | #FF0000 | AccentColor | Color | #FFFF0000 Red |
// ----------------------------------------------------------
namespace implementation
{
class LibraryIcon : public LibraryIconT<LibraryIcon>
{
winrt::Microsoft::UI::Composition::CompositionPropertySet _themeProperties{ nullptr };
winrt::Windows::UI::Color _themeForeground{ 0xFF, 0x00, 0x00, 0xFF };
winrt::Windows::UI::Color _themeAccentColor{ 0xFF, 0xFF, 0x00, 0x00 };
winrt::Microsoft::UI::Composition::CompositionPropertySet EnsureThemeProperties(
winrt::Microsoft::UI::Composition::Compositor compositor);
static winrt::Windows::Foundation::Numerics::float4 ColorAsVector4(
winrt::Windows::UI::Color color);
public:
// Animation duration: 2.000 seconds.
static constexpr int64_t c_durationTicks{ 20000000L };
// Marker: NormalToSelected_Start.
static constexpr float M_NormalToSelected_Start{ 0.0F };
// Marker: NormalToSelected_End.
static constexpr float M_NormalToSelected_End{ 0.500833333F };
// Marker: SelectedToNormal_Start.
static constexpr float M_SelectedToNormal_Start{ 0.767499983F };
// Marker: SelectedToNormal_End.
static constexpr float M_SelectedToNormal_End{ 1.0F };
// Theme property: Foreground.
static inline const winrt::Windows::UI::Color c_themeForeground{ 0xFF, 0x00, 0x00, 0xFF };
// Theme property: AccentColor.
static inline const winrt::Windows::UI::Color c_themeAccentColor{ 0xFF, 0xFF, 0x00, 0x00 };
winrt::Windows::UI::Color Foreground();
void Foreground(winrt::Windows::UI::Color value);
winrt::Windows::UI::Color AccentColor();
void AccentColor(winrt::Windows::UI::Color value);
winrt::Microsoft::UI::Xaml::Controls::IAnimatedVisual TryCreateAnimatedVisual(
winrt::Microsoft::UI::Composition::Compositor const & compositor);
winrt::Microsoft::UI::Xaml::Controls::IAnimatedVisual TryCreateAnimatedVisual(
winrt::Microsoft::UI::Composition::Compositor const & compositor,
winrt::Windows::Foundation::IInspectable & diagnostics);
// Gets the number of frames in the animation.
double FrameCount();
// Gets the framerate of the animation.
double Framerate();
// Gets the duration of the animation.
winrt::Windows::Foundation::TimeSpan Duration();
// Converts a zero-based frame number to the corresponding progress value denoting the
// start of the frame.
double FrameToProgress(double frameNumber);
// Returns a map from marker names to corresponding progress values.
winrt::Windows::Foundation::Collections::IMapView<hstring, double> Markers();
// Sets the color property with the given name, or does nothing if no such property
// exists.
void SetColorProperty(hstring const & propertyName, winrt::Windows::UI::Color value);
// Sets the scalar property with the given name, or does nothing if no such property
// exists.
void SetScalarProperty(hstring const & propertyName, double value);
};
} // namespace implementation
namespace factory_implementation
{
struct LibraryIcon : LibraryIconT<LibraryIcon, implementation::LibraryIcon>
{
};
} // namespace factory_implementation
} // namespace winrt::SuiteInstaller