Grx.get_max_x

function get_max_x(): Number(gint) {
    // Gjs wrapper for grx_get_max_x()
}
  

Gets the index of the last pixel of the current context in the X direction.

In other words, this is Grx.get_width -1.

Returns

the index