Gtk2::ClutterTexture.3pm

Langue: en

Version: 2008-07-23 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Gtk2::ClutterTexture

DESCRIPTION

A set of utility calls for using Clutter::Texture with GTK+ stock icons, icons from themes and Gtk2::Gdk::Pixbuf objects.

METHODS


actor = Gtk2::ClutterTexture->new_from_icon_name ($widget, $icon_name, $size=-1)


actor = Gtk2::ClutterTexture->new_from_icon_name ($widget, $icon_name, $size=-1)

$widget (Gtk2::Widget or undef)
$icon_name (string)
$size (Gtk2::IconSize)

actor = Gtk2::ClutterTexture->new_from_pixbuf ($pixbuf)

$pixbuf (Gtk2::Gdk::Pixbuf)

actor = Gtk2::ClutterTexture->new_from_stock ($widget, $stock_id, $size=-1)


actor = Gtk2::ClutterTexture->new_from_stock ($widget, $stock_id, $size=-1)

$widget (Gtk2::Widget)
$stock_id (string)
$size (Gtk2::IconSize)

$texture->set_from_icon_name ($widget, $icon_name, $size=-1)


$texture->set_from_icon_name ($widget, $icon_name, $size=-1)

$widget (Gtk2::Widget or undef)
$icon_name (string)
$size (Gtk2::IconSize)

$texture->set_from_pixbuf ($pixbuf)


$texture->set_from_pixbuf ($pixbuf)

$pixbuf (Gtk2::Gdk::Pixbuf)

$texture->set_from_stock ($widget, $stock_id, $size=-1)


$texture->set_from_stock ($widget, $stock_id, $size=-1)

$widget (Gtk2::Widget)
$stock_id (string)
$size (Gtk2::IconSize)

ENUMS AND FLAGS


enum Gtk2::IconSize

'invalid' / 'GTK_ICON_SIZE_INVALID'
'menu' / 'GTK_ICON_SIZE_MENU'
'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
'button' / 'GTK_ICON_SIZE_BUTTON'
'dnd' / 'GTK_ICON_SIZE_DND'
'dialog' / 'GTK_ICON_SIZE_DIALOG'

SEE ALSO

Clutter Copyright (C) 2006 OpenedHand Ltd.

This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Library version 2.1, or under the terms of the Artistic License. See Clutter for the full copyright notice.