mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
[PR #228] [MERGED] Ctrl geometry animation functions and docs #248
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#248
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ultimatepp/ultimatepp/pull/228
Author: @ismail-yilmaz
Created: 1/30/2025
Status: ✅ Merged
Merged: 1/30/2025
Merged by: @mirek-fidler
Base:
master← Head:ctrl_geometry_animation📝 Commits (3)
e267f1cCtrlLib: Ctrl batch animation function is added and animation functions are documented.4f495b3reference: AnimateCtrlGeometry example added.432109eCtrlCore: Ctrl animation docs are updated.📊 Changes
5 files changed (+122 additions, -0 deletions)
View changed files
➕
reference/AnimateCtrlGeometry/AnimateCtrlGeometry.upp(+11 -0)➕
reference/AnimateCtrlGeometry/main.cpp(+35 -0)➕
uppsrc/CtrlCore/src.tpp/Animation_en-us.tpp(+44 -0)📝
uppsrc/CtrlLib/CtrlUtil.cpp(+31 -0)📝
uppsrc/CtrlLib/CtrlUtil.h(+1 -0)📄 Description
GUI animations, whether simple or complex, are now part of the modern UI frameworks.
In this regard, this set of patches introduces:
A "batch" ctrl animation function:
void Animate(Vector<Ptr<Ctrl>>& ctrls, const Vector<Rect>& targets, int duration = 100)This function animates the transition of multiple ctrls from their current positions to the target positions specified by the targets parameter, over a given duration.A reference example
reference/AnimateCtrlGeometry, which demonstrates the batch animation function by animating ("spreading") eight color pushers evenly in a top window.Documentation of
Animatefunction and its two overloads:Please review.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.