GtkClutter.Texture¶
- Subclasses:
None
Methods¶
- Inherited:
Clutter.Texture (28), Clutter.Actor (238), GObject.Object (37), Clutter.Animatable (5), Clutter.Container (17), Clutter.Scriptable (4)
- Structs:
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GtkClutter.Texture(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
GtkClutter.Texture
structure contains only private data and should be accessed using the provided API.New in version 1.0.
- classmethod new()¶
- Returns:
the newly created
GtkClutter.Texture
instance- Return type:
Creates a new
GtkClutter.Texture
actor.New in version 1.0.
- set_from_icon_name(widget, icon_name, icon_size)¶
- Parameters:
widget (
Gtk.Widget
orNone
) – aGtk.Widget
orNone
icon_name (
str
) – the name of the iconicon_size (
Gtk.IconSize
) – the icon size or -1
- Raises:
- Returns:
- Return type:
Sets the contents of self using the icon_name from the current icon theme.
New in version 1.0.
- set_from_pixbuf(pixbuf)¶
- Parameters:
pixbuf (
GdkPixbuf.Pixbuf
) – aGdkPixbuf.Pixbuf
- Raises:
- Returns:
- Return type:
Sets the contents of self with a copy of pixbuf.
- set_from_stock(widget, stock_id, icon_size)¶
- Parameters:
widget (
Gtk.Widget
) – aGtk.Widget
stock_id (
str
) – the stock id of the iconicon_size (
Gtk.IconSize
) – the size of the icon, or -1
- Raises:
- Returns:
- Return type:
Sets the contents of self using the stock icon stock_id, as rendered by widget.