Creates an Xlib surface that draws to the given drawable.
The way that colors are represented in the drawable
is specified by the provided visual.
Note: If drawable is a Window, then the function
setSize() must be called
whenever the size of the window changes.
When drawable is a Window containing child windows then
drawing to the created surface will be clipped by
those child windows. When the created surface is
used as a source, the contents of the children
will be included.
Creates an Xlib surface that draws to the given drawable. The way that colors are represented in the drawable is specified by the provided visual.
Note: If drawable is a Window, then the function setSize() must be called whenever the size of the window changes.
When drawable is a Window containing child windows then drawing to the created surface will be clipped by those child windows. When the created surface is used as a source, the contents of the children will be included.