1 /*
2 * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
808 static BOOL IsNumPadKey(UINT vkey, BOOL extended);
809
810 // Determines the keyLocation of a given key
811 static jint GetKeyLocation(UINT wkey, UINT flags);
812 static jint GetShiftKeyLocation(UINT wkey, UINT flags);
813
814 // Cache for FindComponent
815 static HWND sm_cursorOn;
816
817 static BOOL m_QueryNewPaletteCalled;
818
819 static AwtComponent* sm_getComponentCache; // a cache for the GetComponent(..) method.
820
821 int windowMoveLockPosX;
822 int windowMoveLockPosY;
823 int windowMoveLockPosCX;
824 int windowMoveLockPosCY;
825
826 // 6524352: support finer-resolution
827 int m_wheelRotationAmount;
828
829 /*
830 * The association list of children's IDs and corresponding components.
831 * Some components like Choice or List are required their sizes while
832 * the creations of themselfs are in progress.
833 */
834 class ChildListItem {
835 public:
836 ChildListItem(UINT id, AwtComponent* component) {
837 m_ID = id;
838 m_Component = component;
839 m_next = NULL;
840 }
841 ~ChildListItem() {
842 if (m_next != NULL)
843 delete m_next;
844 }
845
846 UINT m_ID;
847 AwtComponent* m_Component;
|
1 /*
2 * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
808 static BOOL IsNumPadKey(UINT vkey, BOOL extended);
809
810 // Determines the keyLocation of a given key
811 static jint GetKeyLocation(UINT wkey, UINT flags);
812 static jint GetShiftKeyLocation(UINT wkey, UINT flags);
813
814 // Cache for FindComponent
815 static HWND sm_cursorOn;
816
817 static BOOL m_QueryNewPaletteCalled;
818
819 static AwtComponent* sm_getComponentCache; // a cache for the GetComponent(..) method.
820
821 int windowMoveLockPosX;
822 int windowMoveLockPosY;
823 int windowMoveLockPosCX;
824 int windowMoveLockPosCY;
825
826 // 6524352: support finer-resolution
827 int m_wheelRotationAmount;
828
829 BOOL deadKeyActive;
830
831 /*
832 * The association list of children's IDs and corresponding components.
833 * Some components like Choice or List are required their sizes while
834 * the creations of themselfs are in progress.
835 */
836 class ChildListItem {
837 public:
838 ChildListItem(UINT id, AwtComponent* component) {
839 m_ID = id;
840 m_Component = component;
841 m_next = NULL;
842 }
843 ~ChildListItem() {
844 if (m_next != NULL)
845 delete m_next;
846 }
847
848 UINT m_ID;
849 AwtComponent* m_Component;
|