Skip to content

How to use rsvg_handle_render from lua #1262

Answered by brndnmtthws
elusian asked this question in Q&A
Discussion options

You must be logged in to vote

This should resolve it: #1263

When I updated this, I forgot to add the necessary methods.

Now you'll be able to create/destroy:

rect = RsvgRectangle::create() -- creates rectangle
rect:destroy();                -- destroys rectangle


-- alternatively, let Lua manage the memory:
rect = RsvgRectangle::create()
tolua.takeownership(rect)
-- now Lua will free the object when it goes out of scope

It's my bad for forgetting to add those methods.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@elusian
Comment options

Answer selected by elusian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants