2.2 <GdkDragSurface>

Interface: <GdkDragSurface>

A surface that is used during DND.

Procedures

Method: drag-surface:present? self width height ⇒ %return
Method: present? self width height ⇒ %return

Present self.

self

Passed: a <GdkDragSurface>.

the <GdkDragSurface> to show

width

Passed: a 32-bit integer.

the unconstrained drag_surface width to layout

height

Passed: a 32-bit integer.

the unconstrained drag_surface height to layout

%return

Returned: a boolean.

#f if it failed to be presented, otherwise #t.

Signals

Signal: drag-surface:compute-size

Connect a handler with (connect object drag-surface:compute-size handler). It is called as (handler self size).

Emitted when the size for the surface needs to be computed, when it is present.

This signal will normally be emitted during the native surface layout cycle when the surface size needs to be recomputed.

It is the responsibility of the drag surface user to handle this signal and compute the desired size of the surface, storing the computed size in the <GdkDragSurfaceSize> object that is passed to the signal handler, using drag-surface-size:set-size.

Failing to set a size so will result in an arbitrary size being used as a result.

self

Passed: a <GdkDragSurface>.

size

Passed: a <GdkDragSurfaceSize>.

the size of the drag surface