File: GtkTed.xs

package info (click to toggle)
libgtk-perl 0.1.17-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,352 kB
  • ctags: 1,100
  • sloc: ansic: 4,393; perl: 3,463; makefile: 36
file content (53 lines) | stat: -rw-r--r-- 789 bytes parent folder | download | duplicates (2)
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

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

#include <gtk/gtk.h>

#include "GtkTypes.h"
#include "GdkTypes.h"
#include "MiscTypes.h"

#include "GtkDefs.h"

#ifndef boolSV
# define boolSV(b) ((b) ? &sv_yes : &sv_no)
#endif

MODULE = Gtk::Ted		PACKAGE = Gtk::Ted		PREFIX = gtk_ted_

#ifdef GTK_TED

Gtk::Ted_Sink
new(Class, dialog_name, layout=0)
	SV *	Class
	char *	dialog_name
	char *	layout
	CODE:
	if (!layout)
		RETVAL = GTK_TED(gtk_ted_new(dialog_name));
	else
		RETVAL = GTK_TED(gtk_ted_new_layout(dialog_name, layout));
	OUTPUT:
	RETVAL

void
gtk_ted_prepare(ted)
	Gtk::Ted	ted

void
gtk_ted_add(ted, widget, name)
	Gtk::Ted	ted
	Gtk::Widget	widget
	char *	name

void
gtk_ted_set_app_name(Class, str)
	SV * Class
	char *	str
	CODE:
	gtk_ted_set_app_name(str);

#endif