cluttermm  1.17.3
Public Member Functions | Static Public Member Functions | Protected Member Functions | Related Functions | List of all members
Clutter::Content Class Reference
Inheritance diagram for Clutter::Content:
Inheritance graph
[legend]
Collaboration diagram for Clutter::Content:
Collaboration graph
[legend]

Public Member Functions

virtual ~Content ()
 
ClutterContent* gobj ()
 Provides access to the underlying C GObject. More...
 
const ClutterContent* gobj () const
 Provides access to the underlying C GObject. More...
 
bool get_preferred_size (float& width, float& height) const
 Retrieves the natural size of the content, if any. 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

 Content ()
 You should derive from this class to use it. More...
 
void invalidate ()
 Invalidates a Clutter::Content. More...
 
virtual bool get_preferred_size_vfunc (float& width, float& height) const
 
virtual void attached_vfunc (const Glib::RefPtr< Actor >& actor)
 
virtual void detached_vfunc (const Glib::RefPtr< Actor >& actor)
 
virtual void invalidate_vfunc ()
 

Related Functions

(Note that these are not member functions.)

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

Constructor & Destructor Documentation

Clutter::Content::Content ( )
protected

You should derive from this class to use it.

virtual Clutter::Content::~Content ( )
virtual

Member Function Documentation

static void Clutter::Content::add_interface ( GType  gtype_implementer)
static
virtual void Clutter::Content::attached_vfunc ( const Glib::RefPtr< Actor >&  actor)
protectedvirtual
virtual void Clutter::Content::detached_vfunc ( const Glib::RefPtr< Actor >&  actor)
protectedvirtual
bool Clutter::Content::get_preferred_size ( float &  width,
float &  height 
) const

Retrieves the natural size of the content, if any.

The natural size of a Clutter::Content is defined as the size the content would have regardless of the allocation of the actor that is painting it, for instance the size of an image data.

Since cluttermm 1.10:
Parameters
widthReturn location for the natural width of the content.
heightReturn location for the natural height of the content.
Returns
true if the content has a preferred size, and false otherwise.
virtual bool Clutter::Content::get_preferred_size_vfunc ( float &  width,
float &  height 
) const
protectedvirtual
static GType Clutter::Content::get_type ( )
static

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

ClutterContent* Clutter::Content::gobj ( )
inline

Provides access to the underlying C GObject.

const ClutterContent* Clutter::Content::gobj ( ) const
inline

Provides access to the underlying C GObject.

void Clutter::Content::invalidate ( )
protected

Invalidates a Clutter::Content.

This function should be called by Clutter::Content implementations when they change the way a the content should be painted regardless of the actor state.

Since cluttermm 1.10:
virtual void Clutter::Content::invalidate_vfunc ( )
protectedvirtual

Friends And Related Function Documentation

Glib::RefPtr< Clutter::Content > wrap ( ClutterContent *  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: