⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 natgtktoolkit.cc

📁 this gcc-g++-3.3.1.tar.gz is a source file of gcc, you can learn more about gcc through this codes f
💻 CC
字号:
// This file was created by `gcjh -stubs'. -*- c++ -*-//// This file is intended to give you a head start on implementing native// methods using CNI.// Be aware: running `gcjh -stubs ' once more for this class may// overwrite any edits you have made to this file.#include <java/awt/Dimension.h>#include <gnu/awt/gtk/GtkToolkit.h>#include <gcj/cni.h>#include <gtk/gtk.h>// GTK requires the program's argc and argv variables.extern char **_Jv_argv;extern int _Jv_argc;// Call gtk_init.  It is very important that this happen before any other// gtk calls.voidgnu::awt::gtk::GtkToolkit::gtkInit (){  // Initialize GLib in thread-safe mode. We assume that GLib is using the  // same native threads library as libgcj. Refer to comments in   // GtkComponentPeer constructor.  g_thread_init (NULL);  gtk_init (&_Jv_argc, &_Jv_argv);}voidgnu::awt::gtk::GtkToolkit::beep (){  GDK_THREADS_ENTER ();  gdk_beep ();  GDK_THREADS_LEAVE ();}jintgnu::awt::gtk::GtkToolkit::getScreenResolution (){  jint res;  GDK_THREADS_ENTER ();  res = (int) (gdk_screen_width () / (gdk_screen_width_mm () / 25.4));  GDK_THREADS_LEAVE ();  return res;}::java::awt::Dimension *gnu::awt::gtk::GtkToolkit::getScreenSize (){  ::java::awt::Dimension *dim = new ::java::awt::Dimension ();    GDK_THREADS_ENTER ();  dim->width = gdk_screen_width ();  dim->height = gdk_screen_height ();  GDK_THREADS_LEAVE ();  return dim;}voidgnu::awt::gtk::GtkToolkit::sync (){  GDK_THREADS_ENTER ();  gdk_flush ();  GDK_THREADS_LEAVE ();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -