gi-gdk-4.0.2: Gdk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Interfaces.DragSurface

Description

A DragSurface is an interface implemented by GdkSurfaces used during a DND operation.

Synopsis

Exported types

newtype DragSurface Source #

Memory-managed wrapper type.

class (GObject o, IsDescendantOf DragSurface o) => IsDragSurface o Source #

Type class for types which can be safely cast to DragSurface, for instance with toDragSurface.

Instances

Instances details
(GObject o, IsDescendantOf DragSurface o) => IsDragSurface o Source # 
Instance details

Defined in GI.Gdk.Interfaces.DragSurface

toDragSurface :: (MonadIO m, IsDragSurface o) => o -> m DragSurface Source #

Cast to DragSurface, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

present

dragSurfacePresent Source #

Arguments

:: (HasCallStack, MonadIO m, IsDragSurface a) 
=> a

dragSurface: the DragSurface to show

-> Int32

width: the unconstrained drag_surface width to layout

-> Int32

height: the unconstrained drag_surface height to layout

-> m Bool

Returns: False if it failed to be presented, otherwise True.

Present dragSurface.