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 <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::Button PACKAGE = Gtk::Button PREFIX = gtk_button_
#ifdef GTK_BUTTON
Gtk::Button_Sink
new(Class, label=0)
SV * Class
char * label
CODE:
if (!label)
RETVAL = GTK_BUTTON(gtk_button_new());
else
RETVAL = GTK_BUTTON(gtk_button_new_with_label(label));
OUTPUT:
RETVAL
Gtk::Button_Sink
new_with_label(Class, label)
SV * Class
char * label
CODE:
RETVAL = GTK_BUTTON(gtk_button_new_with_label(label));
OUTPUT:
RETVAL
void
gtk_button_pressed(button)
Gtk::Button button
void
gtk_button_released(button)
Gtk::Button button
void
gtk_button_clicked(button)
Gtk::Button button
void
gtk_button_enter(button)
Gtk::Button button
void
gtk_button_leave(button)
Gtk::Button button
#endif
|