set_icon


Description:

public void set_icon (Paintable? paintable, int hot_x, int hot_y)

Sets a paintable to use as icon during DND operations.

The hotspot coordinates determine the point on the icon that gets aligned with the hotspot of the cursor.

If paintable is null, a default icon is used.

This function can be called before a drag is started, or in a [[email protected]:GtkDragSource:prepare] or [ [email protected]:GtkDragSource:drag-begin] signal handler.

Parameters:

this

a `GtkDragSource`

paintable

the `GdkPaintable` to use as icon

hot_x

the hotspot X coordinate on the icon

hot_y

the hotspot Y coordinate on the icon




2022 vala-language.org