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

Description

No description available in the introspection data.

Synopsis

Exported types

newtype ClosureExpression Source #

Memory-managed wrapper type.

Constructors

ClosureExpression (ManagedPtr ClosureExpression) 

Instances

Instances details
Eq ClosureExpression Source # 
Instance details

Defined in GI.Gtk.Objects.ClosureExpression

BoxedPtr ClosureExpression Source # 
Instance details

Defined in GI.Gtk.Objects.ClosureExpression

ManagedPtrNewtype ClosureExpression Source # 
Instance details

Defined in GI.Gtk.Objects.ClosureExpression

TypedObject ClosureExpression Source # 
Instance details

Defined in GI.Gtk.Objects.ClosureExpression

Methods

glibType :: IO GType

HasParentTypes ClosureExpression Source # 
Instance details

Defined in GI.Gtk.Objects.ClosureExpression

type ParentTypes ClosureExpression Source # 
Instance details

Defined in GI.Gtk.Objects.ClosureExpression

type ParentTypes ClosureExpression = '[Expression]

class (BoxedPtr o, TypedObject o, IsDescendantOf ClosureExpression o) => IsClosureExpression o Source #

Type class for types which can be safely cast to ClosureExpression, for instance with toClosureExpression.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf ClosureExpression o) => IsClosureExpression o Source # 
Instance details

Defined in GI.Gtk.Objects.ClosureExpression

toClosureExpression :: (MonadIO m, IsClosureExpression o) => o -> m ClosureExpression Source #

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

closureExpressionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GType

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

-> GClosure a

closure: closure to call when evaluating this expression. If closure is floating, it is adopted

-> Maybe [Expression]

params: expressions for each parameter

-> m Expression

Returns: a new Expression

Creates a GtkExpression that calls closure when it is evaluated. closure is called with the this object and the results of evaluating the params expressions.