thorvg/examples
Hermet Park ed01ef717e api: revise the spec
Remove the requirement for unique_ptr in the function prototypes.
This change will simplify the API usage, making it more streamlined
and user-friendly. However, memory management will now be the
responsibility of the user.

C++ API Modification:
- Result Paint::mask(std::unique_ptr<Paint> target, MaskMethod method) -> Result Paint::mask(Paint* target, MaskMethod method)
- Result Paint::clip(std::unique_ptr<Paint> clipper) -> Result Paint::clip(Paint* clipper)
- virtual Result Canvas::push(std::unique_ptr<Paint> paint) -> virtual Result Canvas::push(Paint* paint)
- std::unique_ptr<LinearGradient> LinearGradient::gen() -> LinearGradient* LinearGradient::gen()
- std::unique_ptr<RadialGradient> RadialGradient::gen() -> RadialGradient* RadialGradient::gen()
- Result Shape::strokeFill(std::unique_ptr<Fill> f) -> Result Shape::strokeFill(Fill* f)
- Result Shape::fill(std::unique_ptr<Fill> f) -> Result Shape::fill(Fill* f)
- std::unique_ptr<Shape> Shape::gen() -> Shape* Shape::gen()
- std::unique_ptr<Picture> Picture::gen() -> Result Picture::push(Paint* paint)
- std::unique_ptr<Scene> Scene::gen() -> Scene* Scene::gen()
- Result Text::fill(std::unique_ptr<Fill> f) -> Result Text::fill(Fill* f)
- std::unique_ptr<Text> Text::gen() -> Text* Text::gen()
- std::unique_ptr<SwCanvas> SwCanvas::gen() -> SwCanvas* SwCanvas::gen()
- std::unique_ptr<GlCanvas> GlCanvas::gen() -> GlCanvas* GlCanvas::gen()
- std::unique_ptr<Animation> Animation::gen() -> Animation* Animation::gen()
- Result Saver::background(std::unique_ptr<Paint> paint) -> Result Saver::background(Paint* paint)
- Result Saver::save(std::unique_ptr<Paint> paint, const char* filename, uint32_t quality = 100) -> Result Saver::save(Paint* paint, const char* filename, uint32_t quality = 100)
- std::unique_ptr<Saver> Saver::gen() -> Saver* Saver::gen()
- std::unique_ptr<Accessor> Accessor::gen() -> Accessor* Accessor::gen()

C++ API removal:
- template<typename T = tvg::Paint> std::unique_ptr<T> cast(Paint* paint)
- template<typename T = tvg::Paint> std::unique_ptr<T> cast(Paint* paint)

issue: https://github.com/thorvg/thorvg/issues
2024-11-09 12:29:15 +09:00
..
resources examples: updated svg resources 2024-11-04 16:22:10 +09:00
Accessor.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
all.sh infra: move the examples folder outside of the source directory. 2024-04-01 10:52:22 +09:00
AnimateMasking.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Animation.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Blending.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Capi.cpp api: add focal parameters to the radial apis 2024-10-23 11:10:14 +09:00
Clipping.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
CustomTransform.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
DataLoad.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
DirectUpdate.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Duplicate.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
EffectDropShadow.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
EffectGaussianBlur.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Example.h api: revise the spec 2024-11-09 12:29:15 +09:00
FillRule.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
FillSpread.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
GifSaver.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
GradientMasking.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
GradientStroke.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
GradientTransform.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
ImageRotation.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
ImageScaleDown.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
ImageScaleUp.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Interaction.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
InvLumaMasking.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
InvMasking.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
LinearGradient.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Lottie.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
LottieExpressions.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
LottieExtension.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
LumaMasking.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Masking.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
MaskingMethods.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
meson.build example: added DropShadow sample 2024-11-06 00:56:11 +09:00
MultiCanvas.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Opacity.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Path.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Performance.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
PictureJpg.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
PicturePng.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
PictureRaw.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
PictureSvg.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
PictureWebp.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
RadialGradient.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Retaining.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Scene.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
SceneBlending.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
SceneTransform.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Shapes.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Stroke.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
StrokeLine.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
StrokeMiterlimit.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
StrokeTrim.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Svg.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Text.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Transform.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Update.cpp api: revise the spec 2024-11-09 12:29:15 +09:00
Viewport.cpp api: revise the spec 2024-11-09 12:29:15 +09:00