gi-gsk-4.0.9: Gsk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gsk.Objects.PasteNode

Description

A render node for a paste.

Since: 4.22

Synopsis

Exported types

newtype PasteNode Source #

Memory-managed wrapper type.

class (BoxedPtr o, TypedObject o, IsDescendantOf PasteNode o) => IsPasteNode o Source #

Type class for types which can be safely cast to PasteNode, for instance with toPasteNode.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf PasteNode o) => IsPasteNode o Source # 
Instance details

Defined in GI.Gsk.Objects.PasteNode

toPasteNode :: (MonadIO m, IsPasteNode o) => o -> m PasteNode Source #

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

Methods

Click to display all available methods, including inherited ones

Expand

Methods

draw, ref, serialize, unref, writeToFile.

Getters

getBounds, getDepth, getNodeType, getOpaqueRect.

Setters

None.

getDepth

pasteNodeGetDepth Source #

Arguments

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

node: a GskRenderNode

-> m CSize

Returns: the index of the copy to paste.

Retrieves the index of the copy that should be pasted.

Since: 4.22

new

pasteNodeNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Rect

bounds: the rectangle to render the paste into

-> CSize

depth: the index of which copy to paste. This will usually be 0.

-> m PasteNode

Returns: A new GskRenderNode

Creates a GskRenderNode that will paste copied contents.

Since: 4.22