File: GtkLabel.xs

package info (click to toggle)
libgtk-perl 0.7009-12
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,956 kB
  • ctags: 2,260
  • sloc: perl: 13,998; xml: 9,919; ansic: 2,894; makefile: 64; cpp: 45
file content (63 lines) | stat: -rw-r--r-- 958 bytes parent folder | download | duplicates (3)
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

#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

#include "GtkDefs.h"

MODULE = Gtk::Label		PACKAGE = Gtk::Label		PREFIX = gtk_label_

#ifdef GTK_LABEL

Gtk::Label_Sink
new(Class, string="")
	SV *	Class
	char *	string
	CODE:
	RETVAL = (GtkLabel*)(gtk_label_new(string));
	OUTPUT:
	RETVAL

void
gtk_label_set(label, string)
	Gtk::Label	label
	char *	string
	ALIAS:
		Gtk::Label::set = 0
		Gtk::Label::set_text = 1
		Gtk::Label::set_pattern = 2
	CODE:
	if (ix <= 1)
		gtk_label_set_text(label, string);
	else if (ix == 2)
		gtk_label_set_pattern(label, string);

void
gtk_label_set_line_wrap(label, wrap)
	Gtk::Label 	label
	bool wrap

void
gtk_label_set_justify(label, jtype)
	Gtk::Label	label
	Gtk::Justification	jtype

char *
gtk_label_get(label)
	Gtk::Label	label
	CODE:
	gtk_label_get(label, &RETVAL);
	OUTPUT:
	RETVAL

#if GTK_HVER >= 0x010101

unsigned int
gtk_label_parse_uline(label, string)
	Gtk::Label	label
	char *	string


#endif

#endif