File: GtkClock.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 (55 lines) | stat: -rw-r--r-- 782 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
54
55

#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::Clock		PACKAGE = Gtk::Clock		PREFIX = gtk_clock_

#ifdef GTK_CLOCK

Gtk::Clock_Sink
new(Class, type)
	SV *	Class
	Gtk::ClockType	type
	CODE:
	RETVAL = GTK_CLOCK(gtk_clock_new(type));
	OUTPUT:
	RETVAL

void
gtk_clock_set_format(clock, fmt)
	Gtk::Clock	clock
	char *	fmt

void
gtk_clock_set_seconds(clock, seconds)
	Gtk::Clock	clock
	long	seconds

void
gtk_clock_set_update_interval(clock, seconds)
	Gtk::Clock	clock
	gint	seconds

void
gtk_clock_start(clock)
	Gtk::Clock	clock

void
gtk_clock_stop(clock)
	Gtk::Clock	clock

#endif