File: ClutterLabel.xs

package info (click to toggle)
clutter-perl 0.8.0.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 652 kB
  • ctags: 42
  • sloc: perl: 645; ansic: 30; makefile: 3
file content (118 lines) | stat: -rw-r--r-- 3,261 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/* Clutter.
 *
 * Perl bindings for the OpenGL based 'interactive canvas' library.
 *
 * Clutter Authored By Matthew Allum  <mallum@openedhand.com>
 * Perl bindings by Emmanuele Bassi  <ebassi@openedhand.com>
 * 
 * Copyright (C) 2006 OpenedHand
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#include "clutterperl.h"

MODULE = Clutter::Label		PACKAGE = Clutter::Label	PREFIX = clutter_label_


ClutterActor_noinc *
clutter_label_new (class, font_name=NULL, text=NULL, color=NULL)
	const gchar_ornull *font_name
	const gchar_ornull *text
        ClutterColor_ornull *color;
    CODE:
        RETVAL = clutter_label_new ();
	if (font_name) {
		clutter_label_set_font_name (CLUTTER_LABEL (RETVAL), font_name);
	}
	if (text) {
		clutter_label_set_text (CLUTTER_LABEL (RETVAL), text);
	}
        if (color) {
                clutter_label_set_color (CLUTTER_LABEL (RETVAL), color);
        }
    OUTPUT:
    	RETVAL

void
clutter_label_set_text (ClutterLabel *label, const gchar_ornull *text)

const gchar_ornull *
clutter_label_get_text (ClutterLabel *label)

void
clutter_label_set_font_name (ClutterLabel *label, const gchar *font_name)

const gchar_ornull *
clutter_label_get_font_name (ClutterLabel *label)

void
clutter_label_set_color (ClutterLabel *label, ClutterColor *color)

ClutterColor_copy *
clutter_label_get_color (ClutterLabel *label)
    PREINIT:
        ClutterColor color;
    CODE:
        clutter_label_get_color (label, &color);
	RETVAL = &color;
    OUTPUT:
        RETVAL

void
clutter_label_set_ellipsize (ClutterLabel *label, PangoEllipsizeMode mode)

PangoEllipsizeMode
clutter_label_get_ellipsize (ClutterLabel *label)

void
clutter_label_set_line_wrap (ClutterLabel *label, gboolean line_wrap)

gboolean
clutter_label_get_line_wrap (ClutterLabel *label)

void
clutter_label_set_line_wrap_mode (ClutterLabel *label, PangoWrapMode wrap_mode)

PangoWrapMode
clutter_label_get_line_wrap_mode (ClutterLabel *label)

PangoLayout *
clutter_label_get_layout (ClutterLabel *label)

void
clutter_label_set_attributes (ClutterLabel *label, PangoAttrList *attrs)

PangoAttrList *
clutter_label_get_attributes (ClutterLabel *label)

void
clutter_label_set_use_markup (ClutterLabel *label, gboolean use_markup)

gboolean
clutter_label_get_use_markup (ClutterLabel *label)

void
clutter_label_set_alignment (ClutterLabel *label, PangoAlignment alignment)

PangoAlignment
clutter_label_get_alignment (ClutterLabel *label)

void
clutter_label_set_justify (ClutterLabel *label, gboolean justify)

gboolean
clutter_label_get_justify (ClutterLabel *label)