set_size


Description:

public bool set_size (int width, int height)

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));

Parameters:

this

a Canvas

width

the width of the canvas, in pixels

height

the height of the canvas, in pixels

Returns:

this function returns true if the size change caused a content invalidation, and false otherwise