< prev index next >

src/java.desktop/unix/native/libawt_xawt/awt/gtk2_interface.h

Print this page




 253   GTK_TEXT_DIR_LTR,
 254   GTK_TEXT_DIR_RTL
 255 } GtkTextDirection;
 256 
 257 typedef enum
 258 {
 259   GTK_WINDOW_TOPLEVEL,
 260   GTK_WINDOW_POPUP
 261 } GtkWindowType;
 262 
 263 typedef enum
 264 {
 265   G_PARAM_READABLE            = 1 << 0,
 266   G_PARAM_WRITABLE            = 1 << 1,
 267   G_PARAM_CONSTRUCT           = 1 << 2,
 268   G_PARAM_CONSTRUCT_ONLY      = 1 << 3,
 269   G_PARAM_LAX_VALIDATION      = 1 << 4,
 270   G_PARAM_PRIVATE             = 1 << 5
 271 } GParamFlags;
 272 







 273 /* We define all structure pointers to be void* */
 274 typedef void GError;
 275 typedef void GMainContext;
 276 typedef void GVfs;
 277 
 278 typedef struct _GSList GSList;
 279 struct _GSList
 280 {
 281   gpointer data;
 282   GSList *next;
 283 };
 284 
 285 typedef void GdkColormap;
 286 typedef void GdkDrawable;
 287 typedef void GdkGC;
 288 typedef void GdkScreen;
 289 typedef void GdkPixbuf;
 290 typedef void GdkPixmap;
 291 typedef void GdkWindow;
 292 


 770 void gtk2_set_range_value(WidgetType widget_type, jdouble value,
 771                           jdouble min, jdouble max, jdouble visible);
 772 
 773 void (*fp_g_free)(gpointer mem);
 774 void (*fp_g_object_unref)(gpointer object);
 775 GdkWindow *(*fp_gdk_get_default_root_window) (void);
 776 
 777 int (*fp_gdk_pixbuf_get_bits_per_sample)(const GdkPixbuf *pixbuf);
 778 guchar *(*fp_gdk_pixbuf_get_pixels)(const GdkPixbuf *pixbuf);
 779 gboolean (*fp_gdk_pixbuf_get_has_alpha)(const GdkPixbuf *pixbuf);
 780 int (*fp_gdk_pixbuf_get_height)(const GdkPixbuf *pixbuf);
 781 int (*fp_gdk_pixbuf_get_n_channels)(const GdkPixbuf *pixbuf);
 782 int (*fp_gdk_pixbuf_get_rowstride)(const GdkPixbuf *pixbuf);
 783 int (*fp_gdk_pixbuf_get_width)(const GdkPixbuf *pixbuf);
 784 GdkPixbuf *(*fp_gdk_pixbuf_new_from_file)(const char *filename, GError **error);
 785 GdkColorspace (*fp_gdk_pixbuf_get_colorspace)(const GdkPixbuf *pixbuf);
 786 
 787 GdkPixbuf *(*fp_gdk_pixbuf_get_from_drawable)(GdkPixbuf *dest,
 788         GdkDrawable *src, GdkColormap *cmap, int src_x, int src_y,
 789         int dest_x, int dest_y, int width, int height);


 790 
 791 
 792 void (*fp_gtk_widget_destroy)(GtkWidget *widget);
 793 void (*fp_gtk_window_present)(GtkWindow *window);
 794 void (*fp_gtk_window_move)(GtkWindow *window, gint x, gint y);
 795 void (*fp_gtk_window_resize)(GtkWindow *window, gint width, gint height);
 796 
 797 /**
 798  * Function Pointers for GtkFileChooser
 799  */
 800 gchar* (*fp_gtk_file_chooser_get_filename)(GtkFileChooser *chooser);
 801 void (*fp_gtk_widget_hide)(GtkWidget *widget);
 802 void (*fp_gtk_main_quit)(void);
 803 GtkWidget* (*fp_gtk_file_chooser_dialog_new)(const gchar *title,
 804     GtkWindow *parent, GtkFileChooserAction action,
 805     const gchar *first_button_text, ...);
 806 gboolean (*fp_gtk_file_chooser_set_current_folder)(GtkFileChooser *chooser,
 807     const gchar *filename);
 808 gboolean (*fp_gtk_file_chooser_set_filename)(GtkFileChooser *chooser,
 809     const char *filename);




 253   GTK_TEXT_DIR_LTR,
 254   GTK_TEXT_DIR_RTL
 255 } GtkTextDirection;
 256 
 257 typedef enum
 258 {
 259   GTK_WINDOW_TOPLEVEL,
 260   GTK_WINDOW_POPUP
 261 } GtkWindowType;
 262 
 263 typedef enum
 264 {
 265   G_PARAM_READABLE            = 1 << 0,
 266   G_PARAM_WRITABLE            = 1 << 1,
 267   G_PARAM_CONSTRUCT           = 1 << 2,
 268   G_PARAM_CONSTRUCT_ONLY      = 1 << 3,
 269   G_PARAM_LAX_VALIDATION      = 1 << 4,
 270   G_PARAM_PRIVATE             = 1 << 5
 271 } GParamFlags;
 272 
 273 typedef enum {
 274     GDK_INTERP_NEAREST,
 275     GDK_INTERP_TILES,
 276     GDK_INTERP_BILINEAR,
 277     GDK_INTERP_HYPER          
 278 } GdkInterpType;
 279 
 280 /* We define all structure pointers to be void* */
 281 typedef void GError;
 282 typedef void GMainContext;
 283 typedef void GVfs;
 284 
 285 typedef struct _GSList GSList;
 286 struct _GSList
 287 {
 288   gpointer data;
 289   GSList *next;
 290 };
 291 
 292 typedef void GdkColormap;
 293 typedef void GdkDrawable;
 294 typedef void GdkGC;
 295 typedef void GdkScreen;
 296 typedef void GdkPixbuf;
 297 typedef void GdkPixmap;
 298 typedef void GdkWindow;
 299 


 777 void gtk2_set_range_value(WidgetType widget_type, jdouble value,
 778                           jdouble min, jdouble max, jdouble visible);
 779 
 780 void (*fp_g_free)(gpointer mem);
 781 void (*fp_g_object_unref)(gpointer object);
 782 GdkWindow *(*fp_gdk_get_default_root_window) (void);
 783 
 784 int (*fp_gdk_pixbuf_get_bits_per_sample)(const GdkPixbuf *pixbuf);
 785 guchar *(*fp_gdk_pixbuf_get_pixels)(const GdkPixbuf *pixbuf);
 786 gboolean (*fp_gdk_pixbuf_get_has_alpha)(const GdkPixbuf *pixbuf);
 787 int (*fp_gdk_pixbuf_get_height)(const GdkPixbuf *pixbuf);
 788 int (*fp_gdk_pixbuf_get_n_channels)(const GdkPixbuf *pixbuf);
 789 int (*fp_gdk_pixbuf_get_rowstride)(const GdkPixbuf *pixbuf);
 790 int (*fp_gdk_pixbuf_get_width)(const GdkPixbuf *pixbuf);
 791 GdkPixbuf *(*fp_gdk_pixbuf_new_from_file)(const char *filename, GError **error);
 792 GdkColorspace (*fp_gdk_pixbuf_get_colorspace)(const GdkPixbuf *pixbuf);
 793 
 794 GdkPixbuf *(*fp_gdk_pixbuf_get_from_drawable)(GdkPixbuf *dest,
 795         GdkDrawable *src, GdkColormap *cmap, int src_x, int src_y,
 796         int dest_x, int dest_y, int width, int height);
 797 GdkPixbuf *(*fp_gdk_pixbuf_scale_simple)(GdkPixbuf *src,
 798         int dest_width, int dest_heigh, GdkInterpType interp_type);
 799 
 800 
 801 void (*fp_gtk_widget_destroy)(GtkWidget *widget);
 802 void (*fp_gtk_window_present)(GtkWindow *window);
 803 void (*fp_gtk_window_move)(GtkWindow *window, gint x, gint y);
 804 void (*fp_gtk_window_resize)(GtkWindow *window, gint width, gint height);
 805 
 806 /**
 807  * Function Pointers for GtkFileChooser
 808  */
 809 gchar* (*fp_gtk_file_chooser_get_filename)(GtkFileChooser *chooser);
 810 void (*fp_gtk_widget_hide)(GtkWidget *widget);
 811 void (*fp_gtk_main_quit)(void);
 812 GtkWidget* (*fp_gtk_file_chooser_dialog_new)(const gchar *title,
 813     GtkWindow *parent, GtkFileChooserAction action,
 814     const gchar *first_button_text, ...);
 815 gboolean (*fp_gtk_file_chooser_set_current_folder)(GtkFileChooser *chooser,
 816     const gchar *filename);
 817 gboolean (*fp_gtk_file_chooser_set_filename)(GtkFileChooser *chooser,
 818     const char *filename);


< prev index next >