gi-gtk-4.0.4: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Objects.CClosureExpression

Description

No description available in the introspection data.

Synopsis

Exported types

newtype CClosureExpression Source #

Memory-managed wrapper type.

Constructors

CClosureExpression (ManagedPtr CClosureExpression) 

Instances

Instances details
Eq CClosureExpression Source # 
Instance details

Defined in GI.Gtk.Objects.CClosureExpression

BoxedPtr CClosureExpression Source # 
Instance details

Defined in GI.Gtk.Objects.CClosureExpression

ManagedPtrNewtype CClosureExpression Source # 
Instance details

Defined in GI.Gtk.Objects.CClosureExpression

TypedObject CClosureExpression Source # 
Instance details

Defined in GI.Gtk.Objects.CClosureExpression

Methods

glibType :: IO GType

HasParentTypes CClosureExpression Source # 
Instance details

Defined in GI.Gtk.Objects.CClosureExpression

type ParentTypes CClosureExpression Source # 
Instance details

Defined in GI.Gtk.Objects.CClosureExpression

type ParentTypes CClosureExpression = '[Expression]

class (BoxedPtr o, TypedObject o, IsDescendantOf CClosureExpression o) => IsCClosureExpression o Source #

Type class for types which can be safely cast to CClosureExpression, for instance with toCClosureExpression.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf CClosureExpression o) => IsCClosureExpression o Source # 
Instance details

Defined in GI.Gtk.Objects.CClosureExpression

toCClosureExpression :: (MonadIO m, IsCClosureExpression o) => o -> m CClosureExpression Source #

Cast to CClosureExpression, 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

bind, evaluate, isStatic, ref, unref, watch.

Getters

getValueType.

Setters

None.

new

cClosureExpressionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GType

valueType: the type of the value that this expression evaluates to

-> Maybe ClosureMarshal

marshal: marshaller used for creating a closure

-> [Expression]

params: expressions for each parameter

-> Callback

callbackFunc: callback used for creating a closure

-> m Expression

Returns: a new Expression

This function is a variant of closureExpressionNew that creates a Closure by calling g_cclosure_new() with the given callbackFunc, userData and userDestroy.