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 |
No description available in the introspection data.
Synopsis
- newtype WeakValue = WeakValue (ManagedPtr WeakValue)
- class (GObject o, IsDescendantOf WeakValue o) => IsWeakValue o
- toWeakValue :: (MonadIO m, IsWeakValue o) => o -> m WeakValue
- weakValueGetValue :: (HasCallStack, MonadIO m, IsWeakValue a) => a -> m Value
- weakValueNew :: (HasCallStack, MonadIO m, IsValue a) => a -> m WeakValue
- constructWeakValueValue :: (IsWeakValue o, MonadIO m, IsValue a) => a -> m (GValueConstruct o)
- type WeakValueClearedCallback = IO ()
- afterWeakValueCleared :: (IsWeakValue a, MonadIO m) => a -> ((?self :: a) => WeakValueClearedCallback) -> m SignalHandlerId
- onWeakValueCleared :: (IsWeakValue a, MonadIO m) => a -> ((?self :: a) => WeakValueClearedCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq WeakValue Source # | |
GObject WeakValue Source # | |
Defined in GI.JavaScriptCore.Objects.WeakValue | |
ManagedPtrNewtype WeakValue Source # | |
Defined in GI.JavaScriptCore.Objects.WeakValue | |
TypedObject WeakValue Source # | |
Defined in GI.JavaScriptCore.Objects.WeakValue | |
HasParentTypes WeakValue Source # | |
Defined in GI.JavaScriptCore.Objects.WeakValue | |
IsGValue (Maybe WeakValue) Source # | Convert |
Defined in GI.JavaScriptCore.Objects.WeakValue | |
type ParentTypes WeakValue Source # | |
Defined in GI.JavaScriptCore.Objects.WeakValue |
class (GObject o, IsDescendantOf WeakValue o) => IsWeakValue o Source #
Type class for types which can be safely cast to WeakValue
, for instance with toWeakValue
.
Instances
(GObject o, IsDescendantOf WeakValue o) => IsWeakValue o Source # | |
Defined in GI.JavaScriptCore.Objects.WeakValue |
toWeakValue :: (MonadIO m, IsWeakValue o) => o -> m WeakValue Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata, getValue.
Setters
getValue
:: (HasCallStack, MonadIO m, IsWeakValue a) | |
=> a |
|
-> m Value |
Get a Value
referencing the JavaScript value of weakValue
.
new
Create a new WeakValue
for the JavaScript value referenced by value
.
Properties
value
The Value
referencing the JavaScript value.
constructWeakValueValue :: (IsWeakValue o, MonadIO m, IsValue a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “value
” property. This is rarely needed directly, but it is used by new
.
Signals
cleared
type WeakValueClearedCallback = IO () Source #
This signal is emitted when the JavaScript value is destroyed.
afterWeakValueCleared :: (IsWeakValue a, MonadIO m) => a -> ((?self :: a) => WeakValueClearedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the cleared signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
weakValue #cleared callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onWeakValueCleared :: (IsWeakValue a, MonadIO m) => a -> ((?self :: a) => WeakValueClearedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the cleared signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
weakValue #cleared callback