gi-gdk-4.0.5: Gdk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gdk.Interfaces.DragSurface

Description

A GdkDragSurface is an interface for surfaces used during DND.

Synopsis

Exported types

newtype DragSurface Source #

Memory-managed wrapper type.

Constructors

DragSurface (ManagedPtr DragSurface) 

Instances

Instances details
Eq DragSurface Source # 
Instance details

Defined in GI.Gdk.Interfaces.DragSurface

GObject DragSurface Source # 
Instance details

Defined in GI.Gdk.Interfaces.DragSurface

ManagedPtrNewtype DragSurface Source # 
Instance details

Defined in GI.Gdk.Interfaces.DragSurface

Methods

toManagedPtr :: DragSurface -> ManagedPtr DragSurface

TypedObject DragSurface Source # 
Instance details

Defined in GI.Gdk.Interfaces.DragSurface

Methods

glibType :: IO GType

HasParentTypes DragSurface Source # 
Instance details

Defined in GI.Gdk.Interfaces.DragSurface

IsGValue (Maybe DragSurface) Source #

Convert DragSurface to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gdk.Interfaces.DragSurface

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe DragSurface -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe DragSurface)

type ParentTypes DragSurface Source # 
Instance details

Defined in GI.Gdk.Interfaces.DragSurface

type ParentTypes DragSurface = '[Surface, Object]

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

present

dragSurfacePresent Source #

Arguments

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

dragSurface: the GdkDragSurface 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.