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.Content
structure is an opaque type whose members cannot be acccessed directly.New in version 1.10.
- get_preferred_size()¶
- Returns:
True
if the content has a preferred size, andFalse
otherwise- 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.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.New in version 1.10.
- invalidate()¶
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.New in version 1.10.
- do_attached(actor) virtual¶
- Parameters:
actor (
Clutter.Actor
) –
- do_detached(actor) virtual¶
- Parameters:
actor (
Clutter.Actor
) –
- do_get_preferred_size() virtual¶
- Returns:
True
if the content has a preferred size, andFalse
otherwise- 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.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.New in version 1.10.
- do_invalidate() virtual¶
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.New in version 1.10.
- do_paint_content(actor, node) virtual¶
- Parameters:
actor (
Clutter.Actor
) –node (
Clutter.PaintNode
) –
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.Content
implementation 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.Content
implementation is removed from aClutter.Actor
.New in version 1.10.