~ubuntu-branches/ubuntu/natty/clutter-perl/natty

« back to all changes in this revision

Viewing changes to xs/GtkClutterUtil.xs

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2009-09-25 14:21:14 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090925142114-r1uvxq7zytn04s0p
Tags: 1.0.1-0ubuntu1
* New upstream release.
* Clutter 0.8 -> 1.0 transition. (LP: #364630)
* debian/control:
 - Bump libclutter build dep,
 - Drop deprecated clutter-gst, clutter-gtk, and 
   clutter-cairo build deps.
* debian/patches/10_notify-osd_by_default.patch:
 - Disable POD generation to fix FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "clutterperl.h"
2
 
 
3
 
MODULE = Gtk2::ClutterUtil     PACKAGE = Gtk2::ClutterUtil    PREFIX = gtk_clutter_
4
 
 
5
 
=for position DESCRIPTION
6
 
 
7
 
=head1 DESCRIPTION
8
 
 
9
 
A set of utility calls for retrieving theme colors from a L<Gtk2::Widget>
10
 
in a form understandable by Clutter.
11
 
 
12
 
=cut
13
 
 
14
 
ClutterColor_copy *
15
 
get_fg_clutter_color (GtkWidget *widget, GtkStateType state)
16
 
    ALIAS:
17
 
        Gtk2::ClutterUtil::get_bg_clutter_color   = 1
18
 
        Gtk2::ClutterUtil::get_text_clutter_color = 2
19
 
        Gtk2::ClutterUtil::get_base_clutter_color = 3
20
 
    PREINIT:
21
 
        ClutterColor color = { 0, };
22
 
    CODE:
23
 
        switch (ix) {
24
 
          case 0: gtk_clutter_get_fg_color   (widget, state, &color); break;
25
 
          case 1: gtk_clutter_get_bg_color   (widget, state, &color); break;
26
 
          case 2: gtk_clutter_get_text_color (widget, state, &color); break;
27
 
          case 3: gtk_clutter_get_base_color (widget, state, &color); break;
28
 
          default:
29
 
                g_assert_not_reached ();
30
 
                break;
31
 
        }
32
 
        RETVAL = &color;
33
 
    OUTPUT:
34
 
        RETVAL
35
 
 
36
 
MODULE = Gtk2::ClutterUtil      PACKAGE = Gtk2::ClutterTexture  PREFIX = gtk_clutter_texture_
37
 
 
38
 
=for position DESCRIPTION
39
 
 
40
 
=head1 DESCRIPTION
41
 
 
42
 
A set of utility calls for using L<Clutter::Texture> with GTK+ stock icons,
43
 
icons from themes and L<Gtk2::Gdk::Pixbuf> objects.
44
 
 
45
 
=cut
46
 
 
47
 
ClutterActor_noinc *
48
 
gtk_clutter_texture_new_from_pixbuf (class, GdkPixbuf *pixbuf)
49
 
    C_ARGS:
50
 
        pixbuf
51
 
 
52
 
ClutterActor_noinc *
53
 
gtk_clutter_texture_new_from_stock (class, GtkWidget *widget, const gchar *stock_id, GtkIconSize size=-1)
54
 
    C_ARGS:
55
 
        widget, stock_id, size
56
 
 
57
 
ClutterActor_noinc *
58
 
gtk_clutter_texture_new_from_icon_name (class, GtkWidget_ornull *widget, const gchar *icon_name, GtkIconSize size=-1)
59
 
    C_ARGS:
60
 
        widget, icon_name, size
61
 
 
62
 
void
63
 
gtk_clutter_texture_set_from_pixbuf (ClutterTexture *texture, GdkPixbuf *pixbuf)
64
 
 
65
 
void
66
 
gtk_clutter_texture_set_from_stock (ClutterTexture *texture, GtkWidget *widget, const gchar *stock_id, GtkIconSize size=-1)
67
 
 
68
 
void
69
 
gtk_clutter_texture_set_from_icon_name (ClutterTexture *texture, GtkWidget_ornull *widget, const gchar *icon_name, GtkIconSize size=-1)