Grx.user_set_window

function user_set_window(x1: Number(gint), y1: Number(gint), x2: Number(gint), y2: Number(gint)): void {
    // Gjs wrapper for grx_user_set_window()
}
  

Specifies the user window.

A call to this function it in fact specifies the virtual coordinate limits which will be mapped onto the current context regardless of the size of the context. For example, the call: |[<!-- language="C" --> GrSetUserWindow(0,0,11999,8999); ]| tells the library that the program will perform its drawing operations in a coordinate system X:0...11999 (width = 12000) and Y:0...8999 (height = 9000). This coordinate range will be mapped onto the total area of the current context. The virtual coordinate system can also be shifted. For example: |[<!-- language="C" --> GrSetUserWindow(5000,2000,16999,10999); ]| The user coordinates can even be used to turn the usual left-handed coordinate system (0:0 corresponds to the upper left corner) to a right handed one (0:0 corresponds to the bottom left corner) by calling: |[<!-- language="C" --> GrSetUserWindow(0,8999,11999,0); ]|

x1

the left X coordinate

y1

the top Y coordinate

x2

the right X coordinate

y2

the bottom Y coordinate