1 // This file was created by `gcjh -stubs'. -*- c++ -*-
3 // This file is intended to give you a head start on implementing native
5 // Be aware: running `gcjh -stubs ' once more for this class may
6 // overwrite any edits you have made to this file.
8 #include <java/awt/Dimension.h>
10 #include <gnu/awt/gtk/GtkToolkit.h>
16 // GTK requires the program's argc and argv variables.
17 extern char **_Jv_argv
;
20 // Call gtk_init. It is very important that this happen before any other
23 gnu::awt::gtk::GtkToolkit::gtkInit ()
25 // Initialize GLib in thread-safe mode. We assume that GLib is using the
26 // same native threads library as libgcj. Refer to comments in
27 // GtkComponentPeer constructor.
29 gtk_init (&_Jv_argc
, &_Jv_argv
);
33 gnu::awt::gtk::GtkToolkit::beep ()
41 gnu::awt::gtk::GtkToolkit::getScreenResolution ()
47 res
= (int) (gdk_screen_width () / (gdk_screen_width_mm () / 25.4));
53 ::java::awt::Dimension
*
54 gnu::awt::gtk::GtkToolkit::getScreenSize ()
56 ::java::awt::Dimension
*dim
= new ::java::awt::Dimension ();
60 dim
->width
= gdk_screen_width ();
61 dim
->height
= gdk_screen_height ();
68 gnu::awt::gtk::GtkToolkit::sync ()