| 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.Structs.ExpressionWatch
Description
An opaque structure representing a watched GtkExpression.
The contents of GtkExpressionWatch should only be accessed through the
provided API.
Synopsis
- newtype ExpressionWatch = ExpressionWatch (ManagedPtr ExpressionWatch)
- expressionWatchEvaluate :: (HasCallStack, MonadIO m) => ExpressionWatch -> GValue -> m Bool
- expressionWatchRef :: (HasCallStack, MonadIO m) => ExpressionWatch -> m ExpressionWatch
- expressionWatchUnref :: (HasCallStack, MonadIO m) => ExpressionWatch -> m ()
- expressionWatchUnwatch :: (HasCallStack, MonadIO m) => ExpressionWatch -> m ()
Exported types
newtype ExpressionWatch Source #
Memory-managed wrapper type.
Constructors
| ExpressionWatch (ManagedPtr ExpressionWatch) |
Instances
| Eq ExpressionWatch Source # | |
Defined in GI.Gtk.Structs.ExpressionWatch Methods (==) :: ExpressionWatch -> ExpressionWatch -> Bool # (/=) :: ExpressionWatch -> ExpressionWatch -> Bool # | |
| GBoxed ExpressionWatch Source # | |
Defined in GI.Gtk.Structs.ExpressionWatch | |
| ManagedPtrNewtype ExpressionWatch Source # | |
Defined in GI.Gtk.Structs.ExpressionWatch Methods toManagedPtr :: ExpressionWatch -> ManagedPtr ExpressionWatch | |
| TypedObject ExpressionWatch Source # | |
Defined in GI.Gtk.Structs.ExpressionWatch | |
| HasParentTypes ExpressionWatch Source # | |
Defined in GI.Gtk.Structs.ExpressionWatch | |
| IsGValue (Maybe ExpressionWatch) Source # | Convert |
Defined in GI.Gtk.Structs.ExpressionWatch Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ExpressionWatch -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ExpressionWatch) | |
| type ParentTypes ExpressionWatch Source # | |
Defined in GI.Gtk.Structs.ExpressionWatch | |
Methods
Click to display all available methods, including inherited ones
evaluate
expressionWatchEvaluate Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ExpressionWatch |
|
| -> GValue |
|
| -> m Bool | Returns: |
Evaluates the watched expression and on success stores the result
in value.
This is equivalent to calling expressionEvaluate with the
expression and this pointer originally used to create watch.
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ExpressionWatch |
|
| -> m ExpressionWatch | Returns: the |
Acquires a reference on the given GtkExpressionWatch.
unref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ExpressionWatch |
|
| -> m () |
Releases a reference on the given GtkExpressionWatch.
If the reference was the last, the resources associated to self are
freed.
unwatch
expressionWatchUnwatch Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ExpressionWatch |
|
| -> m () |
Stops watching an expression.
See expressionWatch for how the watch
was established.