0N/A/*
2362N/A * Copyright (c) 1995, 2003, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A#ifndef _CANVAS_H_
0N/A#define _CANVAS_H_
0N/A#ifndef HEADLESS
0N/A
0N/Avoid awt_canvas_reconfigure(struct FrameData *wdata);
0N/AWidget awt_canvas_create(XtPointer this,
0N/A Widget parent,
0N/A char *base,
0N/A int32_t width,
0N/A int32_t height,
0N/A Boolean parentIsFrame,
0N/A struct FrameData *wdata,
0N/A AwtGraphicsConfigDataPtr awtData);
0N/Avoid awt_canvas_scroll(XtPointer this, struct CanvasData *wdata, long dx, long dy);
0N/Avoid awt_canvas_event_handler(Widget w, XtPointer client_data,
0N/A XEvent *event, Boolean *cont);
0N/Avoid awt_canvas_handleEvent(Widget w, XtPointer client_data,
0N/A XEvent *event, struct WidgetInfo *winfo,
0N/A Boolean *cont, Boolean passEvent);
0N/A
0N/Avoid awt_copyXEventToAWTEvent(JNIEnv* env, XEvent * xevent, jobject jevent);
0N/AKeySym awt_getX11KeySym(jint awtKey);
0N/Ajobject awt_canvas_getFocusOwnerPeer();
0N/Ajobject awt_canvas_getFocusedWindowPeer();
0N/Avoid awt_canvas_setFocusOwnerPeer(jobject peer);
0N/Avoid awt_canvas_setFocusedWindowPeer(jobject peer);
0N/Ajobject awt_canvas_wrapInSequenced(jobject awtevent);
0N/Aextern void keysymToAWTKeyCode(KeySym x11Key, jint *keycode, Boolean *mapsToUnicodeChar,
0N/A jint *keyLocation);
0N/A#define awt_canvas_addToFocusList awt_canvas_addToFocusListDefault
0N/Avoid awt_canvas_addToFocusListDefault(jobject target);
0N/Avoid awt_canvas_addToFocusListWithDuplicates(jobject target, jboolean acceptDuplicate);
0N/Aextern void callFocusCallback(jobject focusPeer, int focus_type, jobject cause);
0N/Aextern void callFocusHandler(Widget w, int eventType, jobject cause);
0N/A
0N/Atypedef struct FocusListElt{
0N/A jweak requestor;
0N/A struct FocusListElt * next;
0N/A} FocusListElt;
0N/Aextern FocusListElt *focusList;
0N/Aextern FocusListElt *focusListEnd;
0N/Aextern jweak forGained;
0N/A
0N/A#endif /* !HEADLESS */
0N/A#endif /* _CANVAS_H_ */