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 |
Scriptable
is an opaque structure whose members cannot be directly
accessed
Since: 0.6
Synopsis
- newtype Scriptable = Scriptable (ManagedPtr Scriptable)
- class (GObject o, IsDescendantOf Scriptable o) => IsScriptable o
- toScriptable :: (MonadIO m, IsScriptable o) => o -> m Scriptable
- scriptableGetId :: (HasCallStack, MonadIO m, IsScriptable a) => a -> m Text
- scriptableParseCustomNode :: (HasCallStack, MonadIO m, IsScriptable a, IsScript b) => a -> b -> GValue -> Text -> Node -> m Bool
- scriptableSetCustomProperty :: (HasCallStack, MonadIO m, IsScriptable a, IsScript b) => a -> b -> Text -> GValue -> m ()
- scriptableSetId :: (HasCallStack, MonadIO m, IsScriptable a) => a -> Text -> m ()
Exported types
newtype Scriptable Source #
Memory-managed wrapper type.
Scriptable (ManagedPtr Scriptable) |
Instances
Eq Scriptable Source # | |
Defined in GI.Clutter.Interfaces.Scriptable (==) :: Scriptable -> Scriptable -> Bool # (/=) :: Scriptable -> Scriptable -> Bool # | |
GObject Scriptable Source # | |
Defined in GI.Clutter.Interfaces.Scriptable | |
ManagedPtrNewtype Scriptable Source # | |
Defined in GI.Clutter.Interfaces.Scriptable toManagedPtr :: Scriptable -> ManagedPtr Scriptable | |
TypedObject Scriptable Source # | |
Defined in GI.Clutter.Interfaces.Scriptable | |
HasParentTypes Scriptable Source # | |
Defined in GI.Clutter.Interfaces.Scriptable | |
IsGValue (Maybe Scriptable) Source # | Convert |
Defined in GI.Clutter.Interfaces.Scriptable gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Scriptable -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Scriptable) | |
type ParentTypes Scriptable Source # | |
Defined in GI.Clutter.Interfaces.Scriptable type ParentTypes Scriptable = '[Object] |
class (GObject o, IsDescendantOf Scriptable o) => IsScriptable o Source #
Type class for types which can be safely cast to Scriptable
, for instance with toScriptable
.
Instances
(GObject o, IsDescendantOf Scriptable o) => IsScriptable o Source # | |
Defined in GI.Clutter.Interfaces.Scriptable |
toScriptable :: (MonadIO m, IsScriptable o) => o -> m Scriptable Source #
Cast to Scriptable
, 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
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, parseCustomNode, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getId, getProperty, getQdata.
Setters
setCustomProperty, setData, setDataFull, setId, setProperty.
getId
:: (HasCallStack, MonadIO m, IsScriptable a) | |
=> a |
|
-> m Text | Returns: the id of the object. The returned string is owned by the scriptable object and should never be modified of freed |
Retrieves the id of scriptable
set using scriptableSetId
.
Since: 0.6
parseCustomNode
scriptableParseCustomNode Source #
:: (HasCallStack, MonadIO m, IsScriptable a, IsScript b) | |
=> a |
|
-> b |
|
-> GValue |
|
-> Text |
|
-> Node |
|
-> m Bool | Returns: |
setCustomProperty
scriptableSetCustomProperty Source #
:: (HasCallStack, MonadIO m, IsScriptable a, IsScript b) | |
=> a |
|
-> b |
|
-> Text |
|
-> GValue |
|
-> m () |
Overrides the common properties setting. The underlying virtual function should be used when implementing custom properties.
Since: 0.6
setId
:: (HasCallStack, MonadIO m, IsScriptable a) | |
=> a |
|
-> Text |
|
-> m () |
Sets id_
as the unique Clutter script it for this instance of
ScriptableIface
.
This name can be used by user interface designer applications to
define a unique name for an object constructable using the UI
definition language parsed by Script
.
Since: 0.6