src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.h
author chegar
Thu, 17 Oct 2019 20:54:25 +0100
branchdatagramsocketimpl-branch
changeset 58679 9c3209ff7550
parent 58678 9cf78a70fa4f
parent 55668 7b11ce080798
permissions -rw-r--r--
datagramsocketimpl-branch: merge with default
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37711
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
     1
/*
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
     2
 * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
     4
 *
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    10
 *
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    15
 * accompanied this code).
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    16
 *
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    20
 *
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    23
 * questions.
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    24
 */
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    25
#ifndef _GTK3_INTERFACE_H
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    26
#define _GTK3_INTERFACE_H
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    27
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    28
#include <stdlib.h>
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    29
#include <jni.h>
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    30
#include <X11/X.h>
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    31
#include "gtk_interface.h"
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    32
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    33
#define LIGHTNESS_MULT  1.3
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    34
#define DARKNESS_MULT   0.7
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    35
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    36
#define G_PI    3.1415926535897932384626433832795028841971693993751
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    37
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    38
typedef enum
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    39
{
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    40
  GTK_STATE_FLAG_NORMAL       = 0,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    41
  GTK_STATE_FLAG_ACTIVE       = 1 << 0,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    42
  GTK_STATE_FLAG_PRELIGHT     = 1 << 1,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    43
  GTK_STATE_FLAG_SELECTED     = 1 << 2,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    44
  GTK_STATE_FLAG_INSENSITIVE  = 1 << 3,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    45
  GTK_STATE_FLAG_INCONSISTENT = 1 << 4,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    46
  GTK_STATE_FLAG_FOCUSED      = 1 << 5,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    47
  GTK_STATE_FLAG_BACKDROP     = 1 << 6,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    48
  GTK_STATE_FLAG_DIR_LTR      = 1 << 7,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    49
  GTK_STATE_FLAG_DIR_RTL      = 1 << 8,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    50
  GTK_STATE_FLAG_LINK         = 1 << 9,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    51
  GTK_STATE_FLAG_VISITED      = 1 << 10,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    52
  GTK_STATE_FLAG_CHECKED      = 1 << 11
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    53
} GtkStateFlags;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    54
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    55
typedef enum {
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    56
  GTK_JUNCTION_NONE = 0,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    57
  GTK_JUNCTION_CORNER_TOPLEFT = 1 << 0,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    58
  GTK_JUNCTION_CORNER_TOPRIGHT = 1 << 1,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    59
  GTK_JUNCTION_CORNER_BOTTOMLEFT = 1 << 2,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    60
  GTK_JUNCTION_CORNER_BOTTOMRIGHT = 1 << 3,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    61
  GTK_JUNCTION_TOP =
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    62
                   (GTK_JUNCTION_CORNER_TOPLEFT | GTK_JUNCTION_CORNER_TOPRIGHT),
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    63
  GTK_JUNCTION_BOTTOM =
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    64
             (GTK_JUNCTION_CORNER_BOTTOMLEFT | GTK_JUNCTION_CORNER_BOTTOMRIGHT),
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    65
  GTK_JUNCTION_LEFT =
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    66
                 (GTK_JUNCTION_CORNER_TOPLEFT | GTK_JUNCTION_CORNER_BOTTOMLEFT),
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    67
  GTK_JUNCTION_RIGHT =
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    68
               (GTK_JUNCTION_CORNER_TOPRIGHT | GTK_JUNCTION_CORNER_BOTTOMRIGHT)
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    69
} GtkJunctionSides;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    70
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    71
typedef enum {
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    72
  GTK_REGION_EVEN    = 1 << 0,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    73
  GTK_REGION_ODD     = 1 << 1,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    74
  GTK_REGION_FIRST   = 1 << 2,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    75
  GTK_REGION_LAST    = 1 << 3,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    76
  GTK_REGION_ONLY    = 1 << 4,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    77
  GTK_REGION_SORTED  = 1 << 5
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    78
} GtkRegionFlags;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    79
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    80
typedef enum
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    81
{
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    82
  GTK_WINDOW_TOPLEVEL,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    83
  GTK_WINDOW_POPUP
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    84
} GtkWindowType;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    85
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    86
typedef enum
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    87
{
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    88
  G_PARAM_READABLE            = 1 << 0,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    89
  G_PARAM_WRITABLE            = 1 << 1,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    90
  G_PARAM_CONSTRUCT           = 1 << 2,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    91
  G_PARAM_CONSTRUCT_ONLY      = 1 << 3,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    92
  G_PARAM_LAX_VALIDATION      = 1 << 4,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    93
  G_PARAM_STATIC_NAME         = 1 << 5
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    94
} GParamFlags;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    95
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    96
typedef enum
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    97
{
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    98
  GTK_ICON_LOOKUP_NO_SVG           = 1 << 0,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
    99
  GTK_ICON_LOOKUP_FORCE_SVG        = 1 << 1,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   100
  GTK_ICON_LOOKUP_USE_BUILTIN      = 1 << 2,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   101
  GTK_ICON_LOOKUP_GENERIC_FALLBACK = 1 << 3,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   102
  GTK_ICON_LOOKUP_FORCE_SIZE       = 1 << 4
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   103
} GtkIconLookupFlags;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   104
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   105
typedef enum
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   106
{
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   107
  GTK_UPDATE_CONTINUOUS,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   108
  GTK_UPDATE_DISCONTINUOUS,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   109
  GTK_UPDATE_DELAYED
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   110
} GtkUpdateType;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   111
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   112
typedef enum
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   113
{
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   114
  GTK_PROGRESS_CONTINUOUS,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   115
  GTK_PROGRESS_DISCRETE
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   116
} GtkProgressBarStyle;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   117
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   118
typedef enum
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   119
{
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   120
  GTK_PROGRESS_LEFT_TO_RIGHT,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   121
  GTK_PROGRESS_RIGHT_TO_LEFT,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   122
  GTK_PROGRESS_BOTTOM_TO_TOP,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   123
  GTK_PROGRESS_TOP_TO_BOTTOM
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   124
} GtkProgressBarOrientation;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   125
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   126
typedef enum {
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   127
    CAIRO_FORMAT_INVALID   = -1,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   128
    CAIRO_FORMAT_ARGB32    = 0,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   129
    CAIRO_FORMAT_RGB24     = 1,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   130
    CAIRO_FORMAT_A8        = 2,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   131
    CAIRO_FORMAT_A1        = 3,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   132
    CAIRO_FORMAT_RGB16_565 = 4
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   133
} cairo_format_t;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   134
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   135
/* We define all structure pointers to be void* */
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   136
typedef void GdkPixbuf;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   137
typedef void GMainContext;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   138
typedef void GVfs;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   139
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   140
typedef void GdkColormap;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   141
typedef void GdkDrawable;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   142
typedef void GdkGC;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   143
typedef void GdkPixmap;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   144
typedef void GtkStyleContext;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   145
typedef void GtkFixed;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   146
typedef void GtkMenuItem;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   147
typedef void GtkMenuShell;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   148
typedef void GtkWidgetClass;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   149
typedef void PangoFontDescription;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   150
typedef void GtkSettings;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   151
typedef void GtkStyleProvider;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   152
typedef void cairo_pattern_t;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   153
typedef void cairo_t;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   154
typedef void cairo_surface_t;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   155
typedef void GtkScrolledWindow;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   156
typedef void GtkIconTheme;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   157
typedef void GtkWidget;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   158
typedef void GtkMisc;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   159
typedef void GtkContainer;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   160
typedef void GtkBin;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   161
typedef void GtkAdjustment;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   162
typedef void GtkRange;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   163
typedef void GtkProgressBar;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   164
typedef void GtkProgress;
53800
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   165
typedef void GtkWidgetPath;
55668
7b11ce080798 8225423: GTK L&F: JSplitPane: There is no divider shown
psadhukhan
parents: 55362
diff changeset
   166
typedef void GtkPaned;
37711
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   167
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   168
/* Some real structures */
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   169
typedef struct
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   170
{
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   171
  guint32 pixel;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   172
  guint16 red;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   173
  guint16 green;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   174
  guint16 blue;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   175
} GdkColor;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   176
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   177
typedef struct
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   178
{
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   179
  gdouble red;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   180
  gdouble green;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   181
  gdouble blue;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   182
  gdouble alpha;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   183
} GdkRGBA;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   184
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   185
typedef struct {
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   186
  gint      fd;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   187
  gushort   events;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   188
  gushort   revents;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   189
} GPollFD;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   190
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   191
typedef struct {
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   192
  gint x;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   193
  gint y;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   194
  gint width;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   195
  gint height;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   196
} GdkRectangle;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   197
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   198
typedef struct {
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   199
    int x, y;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   200
    int width, height;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   201
} GtkAllocation;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   202
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   203
typedef struct {
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   204
  gint width;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   205
  gint height;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   206
} GtkRequisition;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   207
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   208
typedef struct {
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   209
  GtkWidgetClass *g_class;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   210
} GTypeInstance;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   211
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   212
typedef struct {
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   213
  gint16 left;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   214
  gint16 right;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   215
  gint16 top;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   216
  gint16 bottom;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   217
} GtkBorder;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   218
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   219
typedef struct
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   220
{
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   221
  GType         g_type;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   222
  union {
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   223
    gint        v_int;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   224
    guint       v_uint;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   225
    glong       v_long;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   226
    gulong      v_ulong;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   227
    gint64      v_int64;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   228
    guint64     v_uint64;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   229
    gfloat      v_float;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   230
    gdouble     v_double;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   231
    gpointer    v_pointer;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   232
  } data[2];
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   233
} GValue;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   234
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   235
typedef struct {
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   236
  GTypeInstance  g_type_instance;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   237
  const gchar   *name;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   238
  GParamFlags    flags;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   239
  GType    value_type;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   240
  GType    owner_type;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   241
} GParamSpec;
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   242
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   243
static gchar* (*fp_glib_check_version)(guint required_major,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   244
                           guint required_minor, guint required_micro);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   245
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   246
/**
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   247
 * Returns :
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   248
 * NULL if the GTK+ library is compatible with the given version, or a string
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   249
 * describing the version mismatch.
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   250
 */
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   251
static gchar* (*fp_gtk_check_version)(guint required_major, guint
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   252
                           required_minor, guint required_micro);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   253
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   254
static void (*fp_g_free)(gpointer mem);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   255
static void (*fp_g_object_unref)(gpointer object);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   256
static GdkWindow *(*fp_gdk_get_default_root_window) (void);
55362
37819ad0ac6f 8225118: Robot.createScreenCapture() returns black image on HiDPI linux with gtk3
ant
parents: 53800
diff changeset
   257
static int (*fp_gdk_window_get_scale_factor) (GdkWindow *window);
37711
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   258
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   259
static int (*fp_gdk_pixbuf_get_bits_per_sample)(const GdkPixbuf *pixbuf);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   260
static guchar *(*fp_gdk_pixbuf_get_pixels)(const GdkPixbuf *pixbuf);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   261
static gboolean (*fp_gdk_pixbuf_get_has_alpha)(const GdkPixbuf *pixbuf);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   262
static int (*fp_gdk_pixbuf_get_height)(const GdkPixbuf *pixbuf);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   263
static int (*fp_gdk_pixbuf_get_n_channels)(const GdkPixbuf *pixbuf);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   264
static int (*fp_gdk_pixbuf_get_rowstride)(const GdkPixbuf *pixbuf);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   265
static int (*fp_gdk_pixbuf_get_width)(const GdkPixbuf *pixbuf);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   266
static GdkPixbuf *(*fp_gdk_pixbuf_new_from_file)(const char *filename,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   267
                                                              GError **error);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   268
static GdkColorspace (*fp_gdk_pixbuf_get_colorspace)(const GdkPixbuf *pixbuf);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   269
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   270
static GdkPixbuf *(*fp_gdk_pixbuf_get_from_drawable)(GdkWindow *window,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   271
        int src_x, int src_y, int width, int height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   272
static GdkPixbuf *(*fp_gdk_pixbuf_scale_simple)(GdkPixbuf *src,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   273
        int dest_width, int dest_heigh, GdkInterpType interp_type);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   274
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   275
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   276
static void (*fp_gtk_widget_destroy)(void *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   277
static void (*fp_gtk_window_present)(GtkWindow *window);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   278
static void (*fp_gtk_window_move)(GtkWindow *window, gint x, gint y);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   279
static void (*fp_gtk_window_resize)(GtkWindow *window, gint width, gint height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   280
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   281
/**
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   282
 * Function Pointers for GtkFileChooser
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   283
 */
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   284
static gchar* (*fp_gtk_file_chooser_get_filename)(GtkFileChooser *chooser);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   285
static void (*fp_gtk_widget_hide)(void *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   286
static void (*fp_gtk_main_quit)(void);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   287
static void* (*fp_gtk_file_chooser_dialog_new)(const gchar *title,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   288
    GtkWindow *parent, GtkFileChooserAction action,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   289
    const gchar *first_button_text, ...);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   290
static gboolean (*fp_gtk_file_chooser_set_current_folder)
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   291
                              (GtkFileChooser *chooser, const gchar *filename);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   292
static gboolean (*fp_gtk_file_chooser_set_filename)(GtkFileChooser *chooser,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   293
    const char *filename);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   294
static void (*fp_gtk_file_chooser_set_current_name)(GtkFileChooser *chooser,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   295
    const gchar *name);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   296
static void (*fp_gtk_file_filter_add_custom)(GtkFileFilter *filter,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   297
    GtkFileFilterFlags needed, GtkFileFilterFunc func, gpointer data,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   298
    GDestroyNotify notify);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   299
static void (*fp_gtk_file_chooser_set_filter)(GtkFileChooser *chooser,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   300
    GtkFileFilter *filter);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   301
static GType (*fp_gtk_file_chooser_get_type)(void);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   302
static GtkFileFilter* (*fp_gtk_file_filter_new)(void);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   303
static void (*fp_gtk_file_chooser_set_do_overwrite_confirmation)(
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   304
    GtkFileChooser *chooser, gboolean do_overwrite_confirmation);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   305
static void (*fp_gtk_file_chooser_set_select_multiple)(
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   306
    GtkFileChooser *chooser, gboolean select_multiple);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   307
static gchar* (*fp_gtk_file_chooser_get_current_folder)
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   308
                                                      (GtkFileChooser *chooser);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   309
static GSList* (*fp_gtk_file_chooser_get_filenames)(GtkFileChooser *chooser);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   310
static guint (*fp_gtk_g_slist_length)(GSList *list);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   311
static gulong (*fp_g_signal_connect_data)(gpointer instance,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   312
    const gchar *detailed_signal, GCallback c_handler, gpointer data,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   313
    GClosureNotify destroy_data, GConnectFlags connect_flags);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   314
static void (*fp_gtk_widget_show)(void *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   315
static void (*fp_gtk_main)(void);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   316
static guint (*fp_gtk_main_level)(void);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   317
static gchar* (*fp_g_path_get_dirname) (const gchar *file_name);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   318
static XID (*fp_gdk_x11_drawable_get_xid) (GdkWindow *drawable);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   319
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   320
static GList* (*fp_g_list_append) (GList *list, gpointer data);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   321
static void (*fp_g_list_free) (GList *list);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   322
static void (*fp_g_list_free_full) (GList *list, GDestroyNotify free_func);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   323
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   324
static void (*fp_gdk_threads_enter)(void);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   325
static void (*fp_gdk_threads_leave)(void);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   326
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   327
static gboolean (*fp_gtk_show_uri)(GdkScreen *screen, const gchar *uri,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   328
    guint32 timestamp, GError **error);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   329
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   330
// Implementation functions prototypes
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   331
static void gtk3_init(GtkApi* gtk);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   332
static GValue*      (*fp_g_value_init)(GValue *value, GType g_type);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   333
static gboolean     (*fp_g_type_is_a)(GType type, GType is_a_type);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   334
static gboolean     (*fp_g_value_get_boolean)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   335
static gchar        (*fp_g_value_get_char)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   336
static guchar       (*fp_g_value_get_uchar)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   337
static gint         (*fp_g_value_get_int)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   338
static guint        (*fp_g_value_get_uint)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   339
static glong        (*fp_g_value_get_long)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   340
static gulong       (*fp_g_value_get_ulong)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   341
static gint64       (*fp_g_value_get_int64)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   342
static guint64      (*fp_g_value_get_uint64)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   343
static gfloat       (*fp_g_value_get_float)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   344
static gdouble      (*fp_g_value_get_double)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   345
static const gchar* (*fp_g_value_get_string)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   346
static gint         (*fp_g_value_get_enum)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   347
static guint        (*fp_g_value_get_flags)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   348
static GParamSpec*  (*fp_g_value_get_param)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   349
static gpointer*    (*fp_g_value_get_boxed)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   350
static gpointer*    (*fp_g_value_get_pointer)(const GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   351
static void         (*fp_g_object_get)(gpointer object,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   352
                                       const gchar* fpn, ...);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   353
static void         (*fp_g_object_set)(gpointer object,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   354
                                       const gchar *first_property_name,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   355
                                       ...);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   356
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   357
static gboolean (*fp_g_main_context_iteration)(GMainContext *context);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   358
static gboolean (*fp_g_str_has_prefix)(const gchar *str, const gchar *prefix);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   359
static gchar** (*fp_g_strsplit)(const gchar *string, const gchar *delimiter,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   360
           gint max_tokens);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   361
static void (*fp_g_strfreev)(gchar **str_array);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   362
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   363
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   364
static cairo_surface_t* (*fp_cairo_image_surface_create)(cairo_format_t format,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   365
                               int width, int height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   366
static void (*fp_cairo_surface_destroy)(cairo_surface_t *surface);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   367
static cairo_t* (*fp_cairo_create)(cairo_surface_t *target);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   368
static void (*fp_cairo_destroy)(cairo_t *cr);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   369
static void (*fp_cairo_fill)(cairo_t *cr);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   370
static void (*fp_cairo_surface_flush)(cairo_surface_t *surface);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   371
static void (*fp_cairo_rectangle)(cairo_t *cr, double x, double y, double width,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   372
                double height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   373
static void (*fp_cairo_set_source_rgb)(cairo_t *cr, double red, double green,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   374
                double blue);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   375
static void (*fp_cairo_set_source_rgba)(cairo_t *cr, double red, double green,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   376
                double blue, double alpha);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   377
static void (*fp_cairo_paint)(cairo_t *cr);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   378
static void (*fp_cairo_clip)(cairo_t *cr);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   379
static unsigned char* (*fp_cairo_image_surface_get_data)(
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   380
                                                 cairo_surface_t *surface);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   381
static int (*fp_cairo_image_surface_get_stride) (cairo_surface_t *surface);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   382
static GdkPixbuf* (*fp_gdk_pixbuf_get_from_surface)(cairo_surface_t *surface,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   383
                            gint src_x, gint src_y, gint width, gint height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   384
static GtkStateType (*fp_gtk_widget_get_state)(GtkWidget *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   385
static void (*fp_gtk_widget_set_state)(GtkWidget *widget, GtkStateType state);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   386
static gboolean (*fp_gtk_widget_is_focus)(GtkWidget *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   387
static void (*fp_gtk_widget_set_allocation)(GtkWidget *widget,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   388
                                            const GtkAllocation *allocation);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   389
static GtkWidget* (*fp_gtk_widget_get_parent)(GtkWidget *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   390
static GtkStyleContext* (*fp_gtk_widget_get_style_context)(GtkWidget *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   391
static void (*fp_gtk_style_context_get_color)(GtkStyleContext *context,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   392
                                           GtkStateFlags state, GdkRGBA *color);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   393
static void (*fp_gtk_style_context_get_background_color)
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   394
                (GtkStyleContext *context, GtkStateFlags state, GdkRGBA *color);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   395
static void (*fp_gtk_style_context_get)(GtkStyleContext *context,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   396
                                                      GtkStateFlags state, ...);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   397
static GtkStateFlags (*fp_gtk_widget_get_state_flags)(GtkWidget* widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   398
static void (*fp_gtk_style_context_set_state)(GtkStyleContext* style,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   399
                                              GtkStateFlags flags);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   400
static void (*fp_gtk_style_context_add_class)(GtkStyleContext *context,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   401
                                                 const gchar *class_name);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   402
static void (*fp_gtk_style_context_save)(GtkStyleContext *context);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   403
static void (*fp_gtk_style_context_restore)(GtkStyleContext *context);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   404
static void (*fp_gtk_render_check)(GtkStyleContext *context, cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   405
                     gdouble x, gdouble y, gdouble width, gdouble height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   406
static void (*fp_gtk_render_option)(GtkStyleContext *context, cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   407
                     gdouble x, gdouble y, gdouble width, gdouble height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   408
static void (*fp_gtk_render_extension)(GtkStyleContext *context, cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   409
                     gdouble x, gdouble y, gdouble width, gdouble height,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   410
                     GtkPositionType gap_side);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   411
static void (*fp_gtk_render_expander)(GtkStyleContext *context, cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   412
                     gdouble x, gdouble y, gdouble width, gdouble height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   413
static void (*fp_gtk_render_frame_gap)(GtkStyleContext *context, cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   414
                     gdouble x, gdouble y, gdouble width, gdouble height,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   415
                     GtkPositionType gap_side, gdouble xy0_gap,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   416
                     gdouble xy1_gap);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   417
static void (*fp_gtk_render_line)(GtkStyleContext *context, cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   418
                     gdouble x0, gdouble y0, gdouble x1, gdouble y1);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   419
static GdkPixbuf* (*fp_gtk_widget_render_icon_pixbuf)(GtkWidget *widget,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   420
                     const gchar *stock_id, GtkIconSize size);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   421
static cairo_surface_t* (*fp_gdk_window_create_similar_image_surface)(
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   422
                     GdkWindow *window, cairo_format_t format, int width,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   423
                     int height, int scale);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   424
static cairo_surface_t* (*fp_gdk_window_create_similar_surface)(
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   425
                     GdkWindow *window, cairo_format_t format,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   426
                     int width, int height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   427
static GdkWindow* (*fp_gtk_widget_get_window)(GtkWidget *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   428
static GtkSettings *(*fp_gtk_settings_get_for_screen)(GdkScreen *screen);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   429
static GdkScreen *(*fp_gtk_widget_get_screen)(GtkWidget *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   430
static GtkStyleProvider* (*fp_gtk_css_provider_get_named)(const gchar *name,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   431
                     const gchar *variant);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   432
static void (*fp_gtk_style_context_add_provider)(GtkStyleContext *context,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   433
                     GtkStyleProvider *provider, guint priority);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   434
static void (*fp_gtk_render_frame)(GtkStyleContext *context,cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   435
                     gdouble x, gdouble y, gdouble width, gdouble height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   436
static void (*fp_gtk_render_focus)(GtkStyleContext *context,cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   437
                     gdouble x, gdouble y, gdouble width, gdouble height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   438
static void (*fp_gtk_render_handle)(GtkStyleContext *context,cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   439
                     gdouble x, gdouble y, gdouble width, gdouble height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   440
static void (*fp_gtk_style_context_get_property)(GtkStyleContext *context,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   441
                     const gchar *property, GtkStateFlags state, GValue *value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   442
static void (*fp_gtk_render_activity)(GtkStyleContext *context, cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   443
                     gdouble x, gdouble y, gdouble width, gdouble height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   444
static void (*fp_gtk_render_background)(GtkStyleContext *context, cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   445
                     gdouble x, gdouble y, gdouble width, gdouble height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   446
static gboolean (*fp_gtk_style_context_has_class)(GtkStyleContext *context,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   447
                     const gchar *class_name);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   448
static void transform_detail_string (const gchar *detail,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   449
                     GtkStyleContext *context);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   450
void (*fp_gtk_style_context_set_junction_sides)(GtkStyleContext  *context,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   451
                     GtkJunctionSides  sides);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   452
void (*fp_gtk_style_context_add_region)(GtkStyleContext *context,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   453
                     const gchar *region_name, GtkRegionFlags flags);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   454
void (*fp_gtk_render_arrow)(GtkStyleContext *context, cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   455
                     gdouble angle, gdouble x, gdouble y, gdouble size);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   456
void (*fp_gtk_bin_set_child)(GtkBin *bin, GtkWidget *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   457
void (*fp_gtk_scrolled_window_set_shadow_type)(
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   458
                     GtkScrolledWindow *scrolled_window, GtkShadowType type);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   459
static void (*fp_gtk_render_slider)(GtkStyleContext *context, cairo_t *cr,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   460
                     gdouble x, gdouble y, gdouble width, gdouble height,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   461
                     GtkOrientation orientation);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   462
static void (*fp_gtk_style_context_get_padding)(GtkStyleContext *self,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   463
                     GtkStateFlags state, GtkBorder* padding);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   464
static void (*fp_gtk_range_set_inverted)(GtkRange *range, gboolean  setting);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   465
static PangoFontDescription* (*fp_gtk_style_context_get_font)(
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   466
                     GtkStyleContext *context, GtkStateFlags state);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   467
static int (*fp_gtk_widget_get_allocated_width)(GtkWidget *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   468
static int (*fp_gtk_widget_get_allocated_height)(GtkWidget *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   469
static GtkIconTheme* (*fp_gtk_icon_theme_get_default)(void);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   470
static GdkPixbuf* (*fp_gtk_icon_theme_load_icon)(GtkIconTheme *icon_theme,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   471
                     const gchar *icon_name, gint size,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   472
                     GtkIconLookupFlags flags, GError **error);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   473
static void (*fp_gtk_adjustment_set_lower)(GtkAdjustment *adjustment,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   474
                     gdouble lower);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   475
static void (*fp_gtk_adjustment_set_page_increment)(GtkAdjustment *adjustment,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   476
                     gdouble page_increment);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   477
static void (*fp_gtk_adjustment_set_page_size)(GtkAdjustment *adjustment,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   478
                     gdouble page_size);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   479
static void (*fp_gtk_adjustment_set_step_increment)(GtkAdjustment *adjustment,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   480
                     gdouble step_increment);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   481
static void (*fp_gtk_adjustment_set_upper)(GtkAdjustment *adjustment,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   482
                     gdouble upper);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   483
static void (*fp_gtk_adjustment_set_value)(GtkAdjustment *adjustment,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   484
                     gdouble value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   485
static GdkGC *(*fp_gdk_gc_new)(GdkDrawable*);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   486
static void (*fp_gdk_rgb_gc_set_foreground)(GdkGC*, guint32);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   487
static void (*fp_gdk_draw_rectangle)(GdkDrawable*, GdkGC*, gboolean,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   488
        gint, gint, gint, gint);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   489
static GdkPixbuf *(*fp_gdk_pixbuf_new)(GdkColorspace colorspace,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   490
        gboolean has_alpha, int bits_per_sample, int width, int height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   491
static void (*fp_gdk_drawable_get_size)(GdkDrawable *drawable,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   492
        gint* width, gint* height);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   493
static gboolean (*fp_gtk_init_check)(int* argc, char** argv);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   494
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   495
/* Widget creation */
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   496
static GtkWidget* (*fp_gtk_arrow_new)(GtkArrowType arrow_type,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   497
                                      GtkShadowType shadow_type);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   498
static GtkWidget* (*fp_gtk_button_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   499
static GtkWidget* (*fp_gtk_check_button_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   500
static GtkWidget* (*fp_gtk_check_menu_item_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   501
static GtkWidget* (*fp_gtk_color_selection_dialog_new)(const gchar* title);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   502
static GtkWidget* (*fp_gtk_combo_box_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   503
static GtkWidget* (*fp_gtk_combo_box_entry_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   504
static GtkWidget* (*fp_gtk_entry_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   505
static GtkWidget* (*fp_gtk_fixed_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   506
static GtkWidget* (*fp_gtk_handle_box_new)();
55668
7b11ce080798 8225423: GTK L&F: JSplitPane: There is no divider shown
psadhukhan
parents: 55362
diff changeset
   507
static GtkWidget* (*fp_gtk_paned_new)(GtkOrientation orientation);
37711
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   508
static GtkWidget* (*fp_gtk_scale_new)(GtkOrientation  orientation,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   509
                                       GtkAdjustment* adjustment);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   510
static GtkWidget* (*fp_gtk_hscrollbar_new)(GtkAdjustment* adjustment);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   511
static GtkWidget* (*fp_gtk_vscrollbar_new)(GtkAdjustment* adjustment);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   512
static GtkWidget* (*fp_gtk_hseparator_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   513
static GtkWidget* (*fp_gtk_vseparator_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   514
static GtkWidget* (*fp_gtk_image_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   515
static GtkWidget* (*fp_gtk_label_new)(const gchar* str);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   516
static GtkWidget* (*fp_gtk_menu_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   517
static GtkWidget* (*fp_gtk_menu_bar_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   518
static GtkWidget* (*fp_gtk_menu_item_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   519
static GtkWidget* (*fp_gtk_notebook_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   520
static GtkWidget* (*fp_gtk_progress_bar_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   521
static GtkWidget* (*fp_gtk_progress_bar_set_orientation)(
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   522
        GtkProgressBar *pbar,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   523
        GtkProgressBarOrientation orientation);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   524
static GtkWidget* (*fp_gtk_radio_button_new)(GSList *group);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   525
static GtkWidget* (*fp_gtk_radio_menu_item_new)(GSList *group);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   526
static GtkWidget* (*fp_gtk_scrolled_window_new)(GtkAdjustment *hadjustment,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   527
        GtkAdjustment *vadjustment);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   528
static GtkWidget* (*fp_gtk_separator_menu_item_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   529
static GtkWidget* (*fp_gtk_separator_tool_item_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   530
static GtkWidget* (*fp_gtk_text_view_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   531
static GtkWidget* (*fp_gtk_toggle_button_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   532
static GtkWidget* (*fp_gtk_toolbar_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   533
static GtkWidget* (*fp_gtk_tree_view_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   534
static GtkWidget* (*fp_gtk_viewport_new)(GtkAdjustment *hadjustment,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   535
        GtkAdjustment *vadjustment);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   536
static GtkWidget* (*fp_gtk_window_new)(GtkWindowType type);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   537
static GtkWidget* (*fp_gtk_dialog_new)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   538
static GtkWidget* (*fp_gtk_spin_button_new)(GtkAdjustment *adjustment,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   539
        gdouble climb_rate, guint digits);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   540
static GtkWidget* (*fp_gtk_frame_new)(const gchar *label);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   541
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   542
/* Other widget operations */
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   543
static GtkAdjustment* (*fp_gtk_adjustment_new)(gdouble value,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   544
        gdouble lower, gdouble upper, gdouble step_increment,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   545
        gdouble page_increment, gdouble page_size);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   546
static void (*fp_gtk_container_add)(GtkContainer *window, GtkWidget *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   547
static void (*fp_gtk_menu_shell_append)(GtkMenuShell *menu_shell,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   548
        GtkWidget *child);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   549
static void (*fp_gtk_menu_item_set_submenu)(GtkMenuItem *menu_item,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   550
        GtkWidget *submenu);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   551
static void (*fp_gtk_widget_realize)(GtkWidget *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   552
static GdkPixbuf* (*fp_gtk_widget_render_icon)(GtkWidget *widget,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   553
        const gchar *stock_id, GtkIconSize size, const gchar *detail);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   554
static void (*fp_gtk_widget_set_name)(GtkWidget *widget, const gchar *name);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   555
static void (*fp_gtk_widget_set_parent)(GtkWidget *widget, GtkWidget *parent);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   556
static void (*fp_gtk_widget_set_direction)(GtkWidget *widget,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   557
        GtkTextDirection direction);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   558
static void (*fp_gtk_widget_style_get)(GtkWidget *widget,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   559
        const gchar *first_property_name, ...);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   560
static void (*fp_gtk_widget_class_install_style_property)(
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   561
        GtkWidgetClass* class, GParamSpec *pspec);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   562
static GParamSpec* (*fp_gtk_widget_class_find_style_property)(
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   563
        GtkWidgetClass* class, const gchar* property_name);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   564
static void (*fp_gtk_widget_style_get_property)(GtkWidget* widget,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   565
        const gchar* property_name, GValue* value);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   566
static char* (*fp_pango_font_description_to_string)(
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   567
        const PangoFontDescription* fd);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   568
static GtkSettings* (*fp_gtk_settings_get_default)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   569
static GtkSettings* (*fp_gtk_widget_get_settings)(GtkWidget *widget);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   570
static GType        (*fp_gtk_border_get_type)();
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   571
static void (*fp_gtk_arrow_set)(GtkWidget* arrow,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   572
                                GtkArrowType arrow_type,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   573
                                GtkShadowType shadow_type);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   574
static void (*fp_gtk_widget_size_request)(GtkWidget *widget,
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   575
                                          GtkRequisition *requisition);
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   576
static GtkAdjustment* (*fp_gtk_range_get_adjustment)(GtkRange* range);
53800
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   577
static GtkWidgetPath* (*fp_gtk_widget_path_copy)
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   578
        (const GtkWidgetPath *path);
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   579
static const GtkWidgetPath* (*fp_gtk_style_context_get_path)
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   580
        (GtkStyleContext *context);
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   581
static GtkWidgetPath* (*fp_gtk_widget_path_new) (void);
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   582
static gint (*fp_gtk_widget_path_append_type)
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   583
        (GtkWidgetPath *path, GType type);
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   584
static void (*fp_gtk_widget_path_iter_set_object_name)
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   585
        (GtkWidgetPath *path, gint pos, const char *name);
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   586
static void (*fp_gtk_style_context_set_path)
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   587
        (GtkStyleContext *context, GtkWidgetPath *path);
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   588
static void (*fp_gtk_widget_path_unref) (GtkWidgetPath *path);
76668d618a99 8218469: JSlider display issue with slider for GTKLookAndFeel
pbansal
parents: 47216
diff changeset
   589
static GtkStyleContext* (*fp_gtk_style_context_new) (void);
37711
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   590
972001566d66 8145547: [AWT/Swing] Conditional support for GTK 3 on Linux
ssadetsky
parents:
diff changeset
   591
#endif /* !_GTK3_INTERFACE_H */