set_geometry


Description:

[ Version ( since = "2.16" ) ]
public void set_geometry (WindowGravity gravity, WindowMoveResizeMask geometry_mask, int x, int y, int width, int height)

Sets the size and position of this.

The X and Y coordinates should be relative to the root window.

Note that the new size and position apply to this with its frame added by the window manager. Therefore, using set_geometry with the values returned by get_geometry should be a no-op, while using set_geometry with the values returned by get_client_window_geometry should reduce the size of this and move it.

Parameters:

this

a Window.

gravity

the gravity point to use as a reference for the new position.

geometry_mask

a bitmask containing flags for what should be set.

x

new X coordinate in pixels of this.

y

new Y coordinate in pixels of this.

width

new width in pixels of this.

height

new height in pixels of this.