Method Cairo.XCBSurface()->set_size()
- Method
set_size
void
set_size(int
width
,int
height
)- Description
Informs cairo of the new size of the XCB drawable underlying the surface. For a surface created for a window (rather than a pixmap), this function must be called each time the size of the window changes. (For a subwindow, you are normally resizing the window yourself, but for a toplevel window, it is necessary to listen for ConfigureNotify events.)
A pixmap can never change size, so it is never necessary to call this function on a surface created for a pixmap.
If flush() wasn't called, some pending operations might be discarded.
- Parameter
width
the new width of the surface
- Parameter
height
the new height of the surface