| 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.ObjectExpression
Contents
Description
A GObject value in a GtkExpression.
Synopsis
- newtype ObjectExpression = ObjectExpression (ManagedPtr ObjectExpression)
- class (BoxedPtr o, TypedObject o, IsDescendantOf ObjectExpression o) => IsObjectExpression o
- toObjectExpression :: (MonadIO m, IsObjectExpression o) => o -> m ObjectExpression
- objectExpressionGetObject :: (HasCallStack, MonadIO m, IsObjectExpression a) => a -> m (Maybe Object)
- objectExpressionNew :: (HasCallStack, MonadIO m, IsObject a) => a -> m ObjectExpression
Exported types
newtype ObjectExpression Source #
Memory-managed wrapper type.
Constructors
| ObjectExpression (ManagedPtr ObjectExpression) |
Instances
| Eq ObjectExpression Source # | |
Defined in GI.Gtk.Objects.ObjectExpression Methods (==) :: ObjectExpression -> ObjectExpression -> Bool # (/=) :: ObjectExpression -> ObjectExpression -> Bool # | |
| BoxedPtr ObjectExpression Source # | |
Defined in GI.Gtk.Objects.ObjectExpression Methods boxedPtrCopy :: ObjectExpression -> IO ObjectExpression boxedPtrFree :: ObjectExpression -> IO () | |
| ManagedPtrNewtype ObjectExpression Source # | |
Defined in GI.Gtk.Objects.ObjectExpression Methods toManagedPtr :: ObjectExpression -> ManagedPtr ObjectExpression | |
| TypedObject ObjectExpression Source # | |
Defined in GI.Gtk.Objects.ObjectExpression | |
| HasParentTypes ObjectExpression Source # | |
Defined in GI.Gtk.Objects.ObjectExpression | |
| type ParentTypes ObjectExpression Source # | |
Defined in GI.Gtk.Objects.ObjectExpression | |
class (BoxedPtr o, TypedObject o, IsDescendantOf ObjectExpression o) => IsObjectExpression o Source #
Type class for types which can be safely cast to ObjectExpression, for instance with toObjectExpression.
Instances
| (BoxedPtr o, TypedObject o, IsDescendantOf ObjectExpression o) => IsObjectExpression o Source # | |
Defined in GI.Gtk.Objects.ObjectExpression | |
toObjectExpression :: (MonadIO m, IsObjectExpression o) => o -> m ObjectExpression Source #
Cast to ObjectExpression, 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
getObject
objectExpressionGetObject Source #
Arguments
| :: (HasCallStack, MonadIO m, IsObjectExpression a) | |
| => a |
|
| -> m (Maybe Object) | Returns: the object, or |
Gets the object that the expression evaluates to.
new
Arguments
| :: (HasCallStack, MonadIO m, IsObject a) | |
| => a |
|
| -> m ObjectExpression | Returns: a new |
Creates an expression evaluating to the given object with a weak reference.
Once the object is disposed, it will fail to evaluate.
This expression is meant to break reference cycles.
If you want to keep a reference to object, use ConstantExpression.new().