begin_resize_drag_for_device


Description:

[ Version ( since = "3.4" ) ]
public void begin_resize_drag_for_device (WindowEdge edge, Device device, int button, int root_x, int root_y, uint32 timestamp)

Begins a window resize operation (for a toplevel window).

You might use this function to implement a “window resize grip,” for example; in fact GtkStatusbar uses it. The function works best with window managers that support the Extended Window Manager Hints but has a fallback implementation for other window managers.

Parameters:

this

a toplevel Window

edge

the edge or corner from which the drag is started

device

the device used for the operation

button

the button being used to drag, or 0 for a keyboard-initiated drag

root_x

root window X coordinate of mouse click that began the drag

root_y

root window Y coordinate of mouse click that began the drag

timestamp

timestamp of mouse click that began the drag (use get_time)




2022 vala-language.org