gi-clutter-1.0.3: clutter GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Clutter.Interfaces.Scriptable

Description

Scriptable is an opaque structure whose members cannot be directly accessed

Since: 0.6

Synopsis

Exported types

newtype Scriptable Source #

Memory-managed wrapper type.

Constructors

Scriptable (ManagedPtr Scriptable) 

Instances

Instances details
Eq Scriptable Source # 
Instance details

Defined in GI.Clutter.Interfaces.Scriptable

GObject Scriptable Source # 
Instance details

Defined in GI.Clutter.Interfaces.Scriptable

ManagedPtrNewtype Scriptable Source # 
Instance details

Defined in GI.Clutter.Interfaces.Scriptable

Methods

toManagedPtr :: Scriptable -> ManagedPtr Scriptable

TypedObject Scriptable Source # 
Instance details

Defined in GI.Clutter.Interfaces.Scriptable

Methods

glibType :: IO GType

HasParentTypes Scriptable Source # 
Instance details

Defined in GI.Clutter.Interfaces.Scriptable

IsGValue (Maybe Scriptable) Source #

Convert Scriptable to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Clutter.Interfaces.Scriptable

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Scriptable -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Scriptable)

type ParentTypes Scriptable Source # 
Instance details

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

Instances details
(GObject o, IsDescendantOf Scriptable o) => IsScriptable o Source # 
Instance details

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

getId

scriptableGetId Source #

Arguments

:: (HasCallStack, MonadIO m, IsScriptable a) 
=> a

scriptable: a Scriptable

-> 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 #

Arguments

:: (HasCallStack, MonadIO m, IsScriptable a, IsScript b) 
=> a

scriptable: a Scriptable

-> b

script: the Script creating the scriptable instance

-> GValue

value: the generic value to be set

-> Text

name: the name of the node

-> Node

node: the JSON node to be parsed

-> m Bool

Returns: True if the node was successfully parsed, False otherwise.

Parses the passed JSON node. The implementation must set the type of the passed Value pointer using valueInit.

Since: 0.6

setCustomProperty

scriptableSetCustomProperty Source #

Arguments

:: (HasCallStack, MonadIO m, IsScriptable a, IsScript b) 
=> a

scriptable: a Scriptable

-> b

script: the Script creating the scriptable instance

-> Text

name: the name of the property

-> GValue

value: the value of the property

-> m () 

Overrides the common properties setting. The underlying virtual function should be used when implementing custom properties.

Since: 0.6

setId

scriptableSetId Source #

Arguments

:: (HasCallStack, MonadIO m, IsScriptable a) 
=> a

scriptable: a Scriptable

-> Text

id_: the Script id of the object

-> 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