File: GtkTooltips.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 (53 lines) | stat: -rw-r--r-- 1,002 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

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

#include "GtkDefs.h"

MODULE = Gtk::Tooltips		PACKAGE = Gtk::Tooltips		PREFIX = gtk_tooltips_

#ifdef GTK_TOOLTIPS

Gtk::Tooltips_Sink
new(Class)
	SV * Class
	CODE:
	RETVAL = (GtkTooltips*)(gtk_tooltips_new());
	OUTPUT:
	RETVAL

void
gtk_tooltips_enable(tooltips)
	Gtk::Tooltips tooltips
	ALIAS:
		Gtk::Tooltips::enable = 0
		Gtk::Tooltips::disable = 1
		Gtk::Tooltips::force_window = 2
	CODE:
	switch (ix) {
	case 0: gtk_tooltips_enable(tooltips); break;
	case 1: gtk_tooltips_disable(tooltips); break;
	case 2: gtk_tooltips_force_window(tooltips); break;
	}

void
gtk_tooltips_set_delay(tooltips, delay)
	Gtk::Tooltips tooltips
	int delay

void
gtk_tooltips_set_tip(tooltips, widget, tip_text, tip_private="")
	Gtk::Tooltips tooltips
	Gtk::Widget widget
	char* tip_text
	char* tip_private

void
gtk_tooltips_set_colors(tooltips, background, foreground)
	Gtk::Tooltips tooltips
	Gtk::Gdk::Color background
	Gtk::Gdk::Color foreground

#endif