Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved artboard classes #43

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Improved artboard classes #43

wants to merge 9 commits into from

Conversation

kunitoki
Copy link
Owner

@kunitoki kunitoki commented Mar 22, 2025

This pull request introduces several significant changes to the examples/render/source/main.cpp and modules/yup_gui files, focusing on refactoring the Artboard class and related functionalities. The most important changes include the introduction of the ArtboardFile class, refactoring the Artboard class to use ArtboardFile, and adding new input handling methods.

Changes to Artboard and ArtboardFile:

  • Introduced the ArtboardFile class to encapsulate the handling of artboard files, including methods for loading from files and streams.
  • Refactored the Artboard class to use ArtboardFile instead of directly handling rive::File. This includes adding a constructor and setFile method that accept ArtboardFile.
  • Removed old methods loadFromFile and loadFromStream from Artboard and replaced them with setFile and clear methods.

Input Handling Enhancements:

  • Added new methods to the Artboard class for handling boolean, number, and trigger inputs, including hasBoolInput, setBoolInput, hasNumberInput, setNumberInput, hasTriggerInput, and triggerInput.
  • Implemented methods to get and set all inputs, and to set individual inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants