Reference Codebot.Animation.pas
Part of the Codebot package
The Codebot.Animation unit provides the tools needed to animate values over time. TEasing is a function that describes how a value changes over time, the Easings function gives access to the default easings by name, and Interpolate applies an easing to a value.
The unit also defines TVec1Prop, TVec2Prop, TVec3Prop, and TVec4Prop, which are vector properties that can be animated independently of the objects that own them, and IPropertyResolver, which finds one of these properties by name. TAnimationTimer is a timer that runs at a fixed 60 frames per second, and the shared Animator moves properties toward their target values over time using an easing.
Items 104 items
| Name | Kind | Line |
|---|---|---|
| Animator | function | 459 |
| DependencyLink | procedure | 347 |
| DependencyUnlink | procedure | 349 |
| Easings | function | 89 |
| IDependencyProperty | interface | 97 |
| GetValue | function | 102 |
| SetValue | procedure | 104 |
| Count | property | 106 |
| Interpolate | function | 85, 87 |
| IPropertyResolver | interface | 377 |
| Resolve | function | 380 |
| TAnimationTimer | class | 392 |
| Create | constructor | 400 |
| Destroy | destructor | 402 |
| Enabled | property | 405 |
| OnTimer | property | 407 |
| TAnimator | class | 416 |
| Animate | procedure | 440, 441, 444, 445 |
| Step | procedure | 449 |
| Stop | procedure | 447 |
| Animated | property | 451 |
| OnStart | property | 453 |
| OnStop | property | 455 |
| TDependencyChangeNotify | procedural | 112 |
| TEasing | procedural | 30 |
| TEasingDefaults | record | 39 |
| Boing | function | 64 |
| Bounce | function | 56 |
| Bouncy | function | 58 |
| Drop | function | 50 |
| DropSlow | function | 52 |
| Easy | function | 44 |
| EasySlow | function | 46 |
| Extend | function | 48 |
| Linear | function | 42 |
| Rubber | function | 60 |
| Snap | function | 54 |
| Spring | function | 62 |
| TEasingKeyValue | alias | 82 |
| TEasings | class | 71 |
| TVec1Prop | record | 118 |
| Equals | function | 151 |
| Link | procedure | 143, 145 |
| Linked | function | 149 |
| Same | function | 153 |
| Unlink | procedure | 147 |
| Value | property | 157 |
| Vec | property | 159 |
| X | property | 155 |
| TVec2Prop | record | 173 |
| Link | procedure | 197, 199 |
| Linked | function | 203 |
| Unlink | procedure | 201 |
| AsVec1 | property | 208 |
| Value | property | 210 |
| Vec | property | 212 |
| X | property | 205 |
| Y | property | 206 |
| TVec3Prop | record | 226 |
| Link | procedure | 246, 248 |
| Linked | function | 252 |
| Unlink | procedure | 250 |
| AsVec1 | property | 264 |
| AsVec2 | property | 265 |
| Heading | property | 259 |
| Pitch | property | 258 |
| Roll | property | 260 |
| Value | property | 267 |
| Vec | property | 269 |
| X | property | 254 |
| XY | property | 262 |
| Y | property | 255 |
| Z | property | 256 |
| TVec4Prop | record | 283 |
| Link | procedure | 304, 306 |
| Linked | function | 310 |
| Unlink | procedure | 308 |
| Alpha | property | 320 |
| AsVec1 | property | 330 |
| AsVec2 | property | 331 |
| AsVec3 | property | 332 |
| Blue | property | 319 |
| Green | property | 318 |
| Red | property | 317 |
| RGB | property | 329 |
| S0 | property | 322 |
| S1 | property | 324 |
| T0 | property | 323 |
| T1 | property | 325 |
| Value | property | 334 |
| Vec | property | 336 |
| W | property | 315 |
| X | property | 312 |
| XY | property | 327 |
| XYZ | property | 328 |
| Y | property | 313 |
| Z | property | 314 |
| TVectorProperty | record | 359 |
| Resolver | field | 369 |
| Vec1Prop | field | 361 |
| Vec2Prop | field | 363 |
| Vec3Prop | field | 365 |
| Vec4Prop | field | 367 |
| VectorPropertyEmpty | function | 385 |