cluttermm: Clutter::Scriptable Class Reference

Inheritance diagram for Clutter::Scriptable:
Collaboration diagram for Clutter::Scriptable:

Public Member Functions

virtual ~Scriptable ()
 
ClutterScriptable* gobj ()
 Provides access to the underlying C GObject. More...

 
const ClutterScriptable* gobj () const
 Provides access to the underlying C GObject. More...

 
void set_id (const std::string& id)
 Sets id as the unique Clutter script it for this instance of Clutter::ScriptableIface. More...

 
std::string get_id () const
 Retrieves the id of scriptable set using set_id(). More...

 
bool parse_custom_node (const Glib::RefPtr< Script >& script, Glib::ValueBase& value, const Glib::ustring& name, JsonNode* node)
 Parses the passed JSON node. More...

 
void set_custom_property (const Glib::RefPtr< Script >& script, const Glib::ustring& name, const Glib::ValueBase& value)
 Overrides the common properties setting. More...

 

Static Public Member Functions

static void add_interface (GType gtype_implementer)
 
static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system. More...

 

Protected Member Functions

 Scriptable ()
 You should derive from this class to use it. More...

 
virtual void set_id_vfunc (const std::string& id)
 
virtual const char* get_id_vfunc () const
 
virtual void set_custom_property_vfunc (const Glib::RefPtr< Script >& script, const Glib::ustring& name, const Glib::ValueBase& value)
 

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Clutter::Scriptablewrap (ClutterScriptable* object, bool take_copy=false)
 A Glib::wrap() method for this object. More...

 

Constructor & Destructor Documentation

Clutter::Scriptable::Scriptable ( )
protected

You should derive from this class to use it.

virtual Clutter::Scriptable::~Scriptable ( )
virtual

Member Function Documentation

static void Clutter::Scriptable::add_interface ( GType  gtype_implementer)
static
std::string Clutter::Scriptable::get_id ( ) const

Retrieves the id of scriptable set using set_id().

Since cluttermm 0.6:
Returns
The id of the object. The returned string is owned by the scriptable object and should never be modified of freed.
virtual const char* Clutter::Scriptable::get_id_vfunc ( ) const
protectedvirtual
static GType Clutter::Scriptable::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

ClutterScriptable* Clutter::Scriptable::gobj ( )
inline

Provides access to the underlying C GObject.

const ClutterScriptable* Clutter::Scriptable::gobj ( ) const
inline

Provides access to the underlying C GObject.

bool Clutter::Scriptable::parse_custom_node ( const Glib::RefPtr< Script >&  script,
Glib::ValueBase value,
const Glib::ustring name,
JsonNode *  node 
)

Parses the passed JSON node.

The implementation must set the type of the passed Value pointer using Glib::value_init().

Since cluttermm 0.6:
Parameters
scriptThe Clutter::Script creating the scriptable instance.
valueThe generic value to be set.
nameThe name of the node.
nodeThe JSON node to be parsed.
Returns
true if the node was successfully parsed, false otherwise.
void Clutter::Scriptable::set_custom_property ( const Glib::RefPtr< Script >&  script,
const Glib::ustring name,
const Glib::ValueBase value 
)

Overrides the common properties setting.

The underlying virtual function should be used when implementing custom properties.

Since cluttermm 0.6:
Parameters
scriptThe Clutter::Script creating the scriptable instance.
nameThe name of the property.
valueThe value of the property.
virtual void Clutter::Scriptable::set_custom_property_vfunc ( const Glib::RefPtr< Script >&  script,
const Glib::ustring name,
const Glib::ValueBase value 
)
protectedvirtual
void Clutter::Scriptable::set_id ( const std::string id)

Sets id as the unique Clutter script it for this instance of Clutter::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 Clutter::Script.

Since cluttermm 0.6:
Parameters
idThe Clutter::Script id of the object.
virtual void Clutter::Scriptable::set_id_vfunc ( const std::string id)
protectedvirtual

Friends And Related Function Documentation

Glib::RefPtr< Clutter::Scriptable > wrap ( ClutterScriptable *  object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.

The documentation for this class was generated from the following file:
  • cluttermm/scriptable.h