Clutter.Content¶
- Implementations:
Methods¶
|
Virtual Methods¶
|
|
|
|
|
Properties¶
None
Signals¶
Name |
Short Description |
|---|---|
This signal is emitted each time a |
|
This signal is emitted each time a |
Fields¶
None
Class Details¶
- class Clutter.Content¶
- Bases:
- Structure:
The
Clutter.Contentstructure is an opaque type whose members cannot be acccessed directly.New in version 1.10.
- get_preferred_size()¶
- Returns:
Trueif the content has a preferred size, andFalseotherwise- width:
return location for the natural width of the content
- height:
return location for the natural height of the content
- Return type:
Retrieves the natural size of the self, if any.
The natural size of a
Clutter.Contentis 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.New in version 1.10.
- invalidate()¶
Invalidates a
Clutter.Content.This function should be called by
Clutter.Contentimplementations when they change the way a the content should be painted regardless of the actor state.New in version 1.10.
- do_attached(actor) virtual¶
- Parameters:
actor (
Clutter.Actor) –
virtual function; called each time a
Clutter.Contentis attached to aClutter.Actor.
- do_detached(actor) virtual¶
- Parameters:
actor (
Clutter.Actor) –
virtual function; called each time a
Clutter.Contentis detached from aClutter.Actor.
- do_get_preferred_size() virtual¶
- Returns:
Trueif the content has a preferred size, andFalseotherwise- width:
return location for the natural width of the content
- height:
return location for the natural height of the content
- Return type:
Retrieves the natural size of the content, if any.
The natural size of a
Clutter.Contentis 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.New in version 1.10.
- do_invalidate() virtual¶
Invalidates a
Clutter.Content.This function should be called by
Clutter.Contentimplementations when they change the way a the content should be painted regardless of the actor state.New in version 1.10.
- do_paint_content(actor, node) virtual¶
- Parameters:
actor (
Clutter.Actor) –node (
Clutter.PaintNode) –
virtual function; called each time the content needs to paint itself
Signal Details¶
- Clutter.Content.signals.attached(content, actor)¶
- Signal Name:
attached- Flags:
- Parameters:
content (
Clutter.Content) – The object which received the signalactor (
Clutter.Actor) – aClutter.Actor
This signal is emitted each time a
Clutter.Contentimplementation is assigned to aClutter.Actor.New in version 1.10.
- Clutter.Content.signals.detached(content, actor)¶
- Signal Name:
detached- Flags:
- Parameters:
content (
Clutter.Content) – The object which received the signalactor (
Clutter.Actor) – aClutter.Actor
This signal is emitted each time a
Clutter.Contentimplementation is removed from aClutter.Actor.New in version 1.10.