mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
doc: minor capi doc correction
This commit is contained in:
parent
ce3f0a75e2
commit
2e35f4eabb
2 changed files with 5 additions and 5 deletions
|
@ -1970,14 +1970,14 @@ TVG_API Tvg_Paint* tvg_scene_new(void);
|
|||
* This function appends a paint object to the scene.
|
||||
*
|
||||
* @param[in] scene A Tvg_Paint pointer to the scene object.
|
||||
* @param[in] target A pointer to the Paint object to be added into the scene.
|
||||
* @param[in] paint A pointer to the Paint object to be added into the scene.
|
||||
*
|
||||
* @note The ownership of the @p paint object is transferred to the scene upon addition.
|
||||
*
|
||||
* @see tvg_scene_remove()
|
||||
* @see tvg_scene_push_at()
|
||||
*/
|
||||
TVG_API Tvg_Result tvg_scene_push(Tvg_Paint* scene, Tvg_Paint* target);
|
||||
TVG_API Tvg_Result tvg_scene_push(Tvg_Paint* scene, Tvg_Paint* paint);
|
||||
|
||||
/**
|
||||
* @brief Adds a paint object to the scene.
|
||||
|
|
|
@ -123,10 +123,10 @@ TVG_API Tvg_Result tvg_canvas_push(Tvg_Canvas* canvas, Tvg_Paint* paint)
|
|||
}
|
||||
|
||||
|
||||
TVG_API Tvg_Result tvg_canvas_push_at(Tvg_Canvas* canvas, Tvg_Paint* paint, Tvg_Paint* at)
|
||||
TVG_API Tvg_Result tvg_canvas_push_at(Tvg_Canvas* canvas, Tvg_Paint* target, Tvg_Paint* at)
|
||||
{
|
||||
if (!canvas || !paint || !at) return TVG_RESULT_INVALID_ARGUMENT;
|
||||
return (Tvg_Result) reinterpret_cast<Canvas*>(canvas)->push((Paint*)paint, (Paint*) at);
|
||||
if (!canvas || !target || !at) return TVG_RESULT_INVALID_ARGUMENT;
|
||||
return (Tvg_Result) reinterpret_cast<Canvas*>(canvas)->push((Paint*)target, (Paint*) at);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue