mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
fix: 🐛 missing binding for tvg_canvas_set_viewport c api
This commit is contained in:
parent
86afc0e8e5
commit
5d3db6d7bb
1 changed files with 7 additions and 0 deletions
|
@ -139,6 +139,13 @@ TVG_API Tvg_Result tvg_canvas_sync(Tvg_Canvas* canvas)
|
|||
}
|
||||
|
||||
|
||||
TVG_API Tvg_Result tvg_canvas_set_viewport(Tvg_Canvas* canvas, int32_t x, int32_t y, int32_t w, int32_t h)
|
||||
{
|
||||
if (!canvas) return TVG_RESULT_INVALID_ARGUMENT;
|
||||
return (Tvg_Result) reinterpret_cast<Canvas*>(canvas)->viewport(x, y, w, h);
|
||||
}
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* Paint API */
|
||||
/************************************************************************/
|
||||
|
|
Loading…
Add table
Reference in a new issue