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 |
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.
Instances
Eq ExpressionWatch Source # | |
Defined in GI.Gtk.Structs.ExpressionWatch (==) :: ExpressionWatch -> ExpressionWatch -> Bool # (/=) :: ExpressionWatch -> ExpressionWatch -> Bool # | |
GBoxed ExpressionWatch Source # | |
Defined in GI.Gtk.Structs.ExpressionWatch | |
ManagedPtrNewtype ExpressionWatch Source # | |
Defined in GI.Gtk.Structs.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 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 #
:: (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 GtkExpressionWatch
.
unref
:: (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 #
:: (HasCallStack, MonadIO m) | |
=> ExpressionWatch |
|
-> m () |
Stops watching an expression.
See expressionWatch
for how the watch
was established.