src/swipl-devel/packages/xpce/man/refmanual/md/resize_gesture.md

class resize_gesture {#class-resize_gesture}

A resize_gesture allows for resizing objects by dragging the corners or sides (for constrained resize) of the objects. While dragging, the direction/constraints are indicated by showing an appropriate cursor.

The resize_gesture only responds to events the happen close the the edges/corners of the graphical. The class-variables resize_gesture.margin_fraction and resize_gesture.margin_width determine these areas: the gesture responds if the down event occurs between the edge and 1/margin_fraction of the size or margin_width (whoever is the least).

Bugs: Does not deal properly with negative areas.

@see class resize_outline_gesture

Instance variables {#class-resize_gesture-instvars}

Send methods {#class-resize_gesture-send}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.