/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#ifndef _AWT_UTIL_H_
#define _AWT_UTIL_H_
#ifndef HEADLESS
#ifndef XAWT
#include <Xm/VendorSEP.h>
#include <Xm/VendorSP.h>
#endif
#include "gdefs.h"
typedef struct ConvertEventTimeAndModifiers {
void awt_util_show(Widget w);
void awt_util_hide(Widget w);
void awt_util_enable(Widget w);
void awt_util_disable(Widget w);
void awt_util_debug_init();
typedef struct _EmbeddedFrame {
/*
* Expected types of arguments of the macro.
* (JNIEnv*, const char*, const char*, jboolean, jobject)
*/
handlerHasFlag, handlerRef) do { \
getInstanceSignature).l; \
if (handlerHasFlag == JNI_TRUE) { \
} \
"(Lsun/awt/X11/XErrorHandler;)V", handlerRef); \
} while (0)
/*
* Expected types of arguments of the macro.
* (JNIEnv*, jboolean)
*/
} while (0)
/*
* Expected types of arguments of the macro.
* (JNIEnv*, const char*, const char*, jboolean, jobject, jboolean, No type - C expression)
*/
handlerRef = NULL; \
do { \
code; \
} while (0); \
if (handlerHasFlag == JNI_TRUE) { \
} \
} while (0)
/*
* Expected types of arguments of the macro for jboolean expression.
* (JNIEnv*, jobject)
*/
/*
* Expected types of arguments of the macro for jbyte expression.
* (JNIEnv*, jobject)
*/
#endif /* !HEADLESS */
#ifndef INTERSECTS
#endif
#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
#ifndef MAX
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#endif
struct DPos {
int32_t x;
int32_t y;
void *data;
void *peer;
};
#ifndef HEADLESS
extern Widget prevWidget;
#endif /* !HEADLESS */
/*
* Functions for accessing fields by name and signature
*/
const char *sig);
#ifndef HEADLESS
#ifdef __solaris__
#else
#if defined(MACOSX)
#else
#endif
#endif
typedef struct _XmImRefRec {
typedef struct _PreeditBufferRec {
unsigned short length;
typedef struct _XmImXICRec {
typedef struct _XmImShellRec {
/* per-Shell fields. */
/* per <Shell,XIM> fields. */
typedef struct {
/* per-Display fields. */
/* per-XIM fields. */
#endif
#endif /* !HEADLESS */
#endif /* _AWT_UTIL_H_ */