Sub-contexts can be resized, but not their parents (i.
e. anything returned by @new or set up by set_mode cannot be resized – because this could lead to irrecoverable "loss" of drawing memory.
The coordinate arguments (x1 through y2) are interpreted relative to the parent context's limits.
this |
the context |
x1 |
the new left bounds |
y1 |
the new top bounds |
x2 |
the new right bounds |
y2 |
the new bottom bounds |