3 /* the next line is not mandatory, but if gob finds an include in one of
4 the %{ %} sections above the class definitions, it will not put it in
5 the file itself. So you can this way select where the include file is
7 #include "gtk-weird-button.h"
8 #include "gtk-weird-button-private.h"
10 static void jjjj(void);
17 class Gtk:Weird:Button from Gtk:Button {
19 argument INT i set { self->i = ARG; } get { ARG = self->i; } ;
23 public double array[23][18];
24 protected unsigned long int wagawaga;
25 public int wagawaga_should_be_after_this_in_the_header;
31 public GtkWidget * new(int j (check > 0)) {
33 ret = GTK_WIDGET (GET_NEW);
35 GTK_WEIRD_BUTTON(ret)->_priv->j = j;
39 private int blah(self, Gtk:Widget * wid (check null type),
40 int h (check > 0)) onerror -1 {
41 gtk_container_add(GTK_CONTAINER(self),wid);
44 signal last INT (POINTER, INT)
45 int bleh(self, Gtk:Widget * wid (check null type),
47 return blah(self,wid,h);
49 signal last INT (POINTER, INT)
50 int bleh2(self, Gtk:Widget * wid (check null type),
52 /* testing multiple marshaller support */
55 signal first NONE (NONE)
57 virtual void * bah(self, int h (check > 0)) onerror NULL {
61 virtual int beh(self, int h (check > 0));
62 override(Gtk:Container) void add(Gtk:Container * self (check null type),
63 Gtk:Widget * wid (check null type)) {
64 PARENT_HANDLER(self,wid);
66 public int consttest(self, const gchar *text, ...)
70 signal private first NONE (NONE)
71 void googlegoogle(self)
76 signal first private NONE (NONE)
77 void googlegoogle2(self)
79 int array[5][8][9]={{{0}}};
81 testprivvirtual(self,array);
83 private signal first NONE (NONE)
84 void googlegoogle3(self)
88 protected signal first NONE (NONE)
89 void googlegoogle4(self)
94 void testprivvirtual(self, int some_array[5][8][9])
100 void testprivvirtual2(self, int some_array[5][8][9])
105 void testpublicvirtual(self, int some_array[5][8][9])
110 void testprotectedvirtual(self, int some_array[5][8][9])
114 signal first NONE (POINTER)
115 void testarrsignal(self, long arr[8])
120 /* testing empty func */
121 public void foofoofoo(self) {}
122 /* testing empty func 2 */
123 public void foofoofoo2(self);
124 /* testing empty func 3 */
125 public void foofoofoo3(self) { }
126 /* testing empty func 4 */
127 public void foofoofoo4(self)
131 override (Gtk:Widget)
132 int event(Gtk:Widget *self (check null type),
133 GdkEvent *event (check null)) onerror FALSE
137 ret = PARENT_HANDLER(self,event);
141 override(Gtk:Container)
143 remove(Gtk:Container * self (check null type),
144 Gtk:Widget * wid (check null type));
148 /* just an empty function */
152 signal last NONE(CHAR,UCHAR,BOOL,INT,UINT,LONG,ULONG,FLOAT,DOUBLE,
153 STRING,ENUM,FLAGS,BOXED,POINTER,OBJECT)
155 testargs(self, gchar a, guchar b, gboolean c, gint d, guint e, glong f,
156 gulong g, gfloat h, gdouble i, gchar * j, gint k,
157 guint l, gpointer m, gpointer o, GtkObject *p)
159 /* ugh, testing casting */