Sets the size of the this, and invalidates the content.
This function will cause the this to be invalidated only if the size of the canvas surface has changed.
If you want to invalidate the contents of the this when setting the size, you can use the return value of the function to conditionally call invalidate:
if (!clutter_canvas_set_size (canvas, width, height))
clutter_content_invalidate (CLUTTER_CONTENT (canvas));
this |
a Canvas |
width |
the width of the canvas, in pixels |
height |
the height of the canvas, in pixels |
this function returns |