| 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.CClosureExpression
Contents
Description
A variant of GtkClosureExpression using a C closure.
Synopsis
- newtype CClosureExpression = CClosureExpression (ManagedPtr CClosureExpression)
- class (BoxedPtr o, TypedObject o, IsDescendantOf CClosureExpression o) => IsCClosureExpression o
- toCClosureExpression :: (MonadIO m, IsCClosureExpression o) => o -> m CClosureExpression
- cClosureExpressionNew :: (HasCallStack, MonadIO m) => GType -> Maybe ClosureMarshal -> [Expression] -> Callback -> m CClosureExpression
Exported types
newtype CClosureExpression Source #
Memory-managed wrapper type.
Constructors
| CClosureExpression (ManagedPtr CClosureExpression) |
Instances
| Eq CClosureExpression Source # | |
Defined in GI.Gtk.Objects.CClosureExpression Methods (==) :: CClosureExpression -> CClosureExpression -> Bool # (/=) :: CClosureExpression -> CClosureExpression -> Bool # | |
| BoxedPtr CClosureExpression Source # | |
Defined in GI.Gtk.Objects.CClosureExpression Methods boxedPtrCopy :: CClosureExpression -> IO CClosureExpression boxedPtrFree :: CClosureExpression -> IO () | |
| ManagedPtrNewtype CClosureExpression Source # | |
Defined in GI.Gtk.Objects.CClosureExpression Methods toManagedPtr :: CClosureExpression -> ManagedPtr CClosureExpression | |
| TypedObject CClosureExpression Source # | |
Defined in GI.Gtk.Objects.CClosureExpression | |
| HasParentTypes CClosureExpression Source # | |
Defined in GI.Gtk.Objects.CClosureExpression | |
| type ParentTypes CClosureExpression Source # | |
Defined in GI.Gtk.Objects.CClosureExpression | |
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
| (BoxedPtr o, TypedObject o, IsDescendantOf CClosureExpression o) => IsCClosureExpression o Source # | |
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
new
cClosureExpressionNew Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => GType |
|
| -> Maybe ClosureMarshal |
|
| -> [Expression] |
|
| -> Callback |
|
| -> m CClosureExpression | Returns: a new |
Creates a GtkExpression that calls callback_func when it is evaluated.
This function is a variant of closureExpressionNew that
creates a GClosure by calling g_cclosure_new() with the given
callback_func, user_data and user_destroy.