File: GtkFrame.xs

package info (click to toggle)
libgtk-perl 0.3-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,592 kB
  • ctags: 402
  • sloc: perl: 7,778; ansic: 1,385; makefile: 92
file content (52 lines) | stat: -rw-r--r-- 773 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

#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::Frame		PACKAGE = Gtk::Frame		PREFIX = gtk_frame_

#ifdef GTK_FRAME

Gtk::Frame_Sink
new(Class, label=&sv_undef)
	SV *	Class
	SV *	label
	CODE:
	{
		char * l = SvOK(label) ? SvPV(label, na) : 0;
		RETVAL = GTK_FRAME(gtk_frame_new(l));
	}
	OUTPUT:
	RETVAL

void
gtk_frame_set_label(self, label)
	Gtk::Frame	self
	char *	label

void
gtk_frame_set_label_align(self, xalign, yalign)
	Gtk::Frame	self
	double	xalign
	double	yalign

void
gtk_frame_set_shadow_type(self, shadow)
	Gtk::Frame	self
	Gtk::ShadowType	shadow

#endif