| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Gtk.Objects.ClosureExpression
Contents
Description
An expression using a custom GClosure to compute the value from
its parameters.
Synopsis
- newtype ClosureExpression = ClosureExpression (ManagedPtr ClosureExpression)
- class (BoxedPtr o, TypedObject o, IsDescendantOf ClosureExpression o) => IsClosureExpression o
- toClosureExpression :: (MonadIO m, IsClosureExpression o) => o -> m ClosureExpression
- closureExpressionNew :: (HasCallStack, MonadIO m) => GType -> GClosure a -> Maybe [Expression] -> m ClosureExpression
Exported types
newtype ClosureExpression Source #
Memory-managed wrapper type.
Constructors
| ClosureExpression (ManagedPtr ClosureExpression) |
Instances
| Eq ClosureExpression Source # | |
Defined in GI.Gtk.Objects.ClosureExpression Methods (==) :: ClosureExpression -> ClosureExpression -> Bool # (/=) :: ClosureExpression -> ClosureExpression -> Bool # | |
| BoxedPtr ClosureExpression Source # | |
Defined in GI.Gtk.Objects.ClosureExpression Methods boxedPtrCopy :: ClosureExpression -> IO ClosureExpression boxedPtrFree :: ClosureExpression -> IO () | |
| ManagedPtrNewtype ClosureExpression Source # | |
Defined in GI.Gtk.Objects.ClosureExpression Methods toManagedPtr :: ClosureExpression -> ManagedPtr ClosureExpression | |
| TypedObject ClosureExpression Source # | |
Defined in GI.Gtk.Objects.ClosureExpression | |
| HasParentTypes ClosureExpression Source # | |
Defined in GI.Gtk.Objects.ClosureExpression | |
| type ParentTypes ClosureExpression Source # | |
Defined in GI.Gtk.Objects.ClosureExpression | |
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
| (BoxedPtr o, TypedObject o, IsDescendantOf ClosureExpression o) => IsClosureExpression o Source # | |
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
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => GType |
|
| -> GClosure a |
|
| -> Maybe [Expression] |
|
| -> m ClosureExpression | Returns: a new |
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.