Grx.Context.prototype.resize_subcontext
function resize_subcontext(x1: Number(gint), y1: Number(gint), x2: Number(gint), y2: Number(gint)): void { // Gjs wrapper for grx_context_resize_subcontext() }
Sub-contexts can be resized, but not their parents (i.e. anything returned by Grx.Context.new or set up by Grx.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.
- x1
the new left bounds
- y1
the new top bounds
- x2
the new right bounds
- y2
the new bottom bounds