Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
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.
ExpressionWatch (ManagedPtr ExpressionWatch) |
Instances
Eq ExpressionWatch Source # | |
Defined in GI.Gtk.Structs.ExpressionWatch (==) :: ExpressionWatch -> ExpressionWatch -> Bool # (/=) :: ExpressionWatch -> ExpressionWatch -> Bool # | |
BoxedPtr ExpressionWatch Source # | |
Defined in GI.Gtk.Structs.ExpressionWatch boxedPtrCopy :: ExpressionWatch -> IO ExpressionWatch boxedPtrFree :: ExpressionWatch -> IO () | |
ManagedPtrNewtype ExpressionWatch Source # | |
Defined in GI.Gtk.Structs.ExpressionWatch toManagedPtr :: ExpressionWatch -> ManagedPtr ExpressionWatch |
Methods
Click to display all available methods, including inherited ones
evaluate
expressionWatchEvaluate Source #
:: (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
:: (HasCallStack, MonadIO m) | |
=> ExpressionWatch |
|
-> m ExpressionWatch | Returns: the |
Acquires a reference on the given ExpressionWatch
.
unref
:: (HasCallStack, MonadIO m) | |
=> ExpressionWatch |
|
-> m () |
Releases a reference on the given ExpressionWatch
.
If the reference was the last, the resources associated to self
are
freed.
unwatch
expressionWatchUnwatch Source #
:: (HasCallStack, MonadIO m) | |
=> ExpressionWatch |
|
-> m () |
Stops watching an expression that was established via expressionWatch
.