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.IsolationNode

Description

A render node that isolates its child from surrounding rendernodes.

Since: 4.22

Synopsis

Exported types

class (BoxedPtr o, TypedObject o, IsDescendantOf IsolationNode o) => IsIsolationNode o Source #

Type class for types which can be safely cast to IsolationNode, for instance with toIsolationNode.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf IsolationNode o) => IsIsolationNode o Source # 
Instance details

Defined in GI.Gsk.Objects.IsolationNode

toIsolationNode :: (MonadIO m, IsIsolationNode o) => o -> m IsolationNode Source #

Cast to IsolationNode, 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, getChild, getIsolations, getNodeType, getOpaqueRect.

Setters

None.

getChild

isolationNodeGetChild Source #

Arguments

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

node: an isolation GskRenderNode

-> m RenderNode

Returns: the child GskRenderNode

Gets the child node that is getting drawn by the given node.

Since: 4.22

getIsolations

isolationNodeGetIsolations Source #

Arguments

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

node: an isolation GskRenderNode

-> m [Isolation]

Returns: the isolation features

Gets the isolation features that are enforced by this node.

Since: 4.22

new

isolationNodeNew Source #

Arguments

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

child: The child

-> [Isolation]

isolations: features to isolate

-> m IsolationNode

Returns: A new GskRenderNode

Creates a GskRenderNode that isolates the drawing operations of the child from surrounding ones.

You can express "everything but these flags" in a forward compatible way by using bit math: GSK_ISOLATION_ALL & ~(GSK_ISOLATION_BACKGROUND | GSK_ISOLATION_COPY_PASTE) will isolate everything but background and copy/paste.

For the available isolations, see [flagsgsk.Isolation].

Since: 4.22