< prev index next >
src/windows/native/sun/windows/awt_Component.h
Print this page
rev 1556 : 6794764: Translucent windows are completely repainted on every paint event, on Windows
6719382: Printing of AWT components on windows is not working
6726866: Repainting artifacts when resizing or dragging JInternalFrames in non-opaque toplevel
6683775: Painting artifacts is seen when panel is made setOpaque(false) for a translucent window
Reviewed-by: anthony, tdv, alexp
rev 1566 : 6680988: KeyEvent is still missing VK values for many keyboards
Summary: 2 new methods and some fields added to KeyEvent, plus hash of constants introduced
Reviewed-by: art
@@ -360,19 +360,19 @@
(p = p->GetParent()) != NULL);
return TRUE;
}
void SendKeyEventToFocusOwner(jint id, jlong when, jint raw, jint cooked,
- jint modifiers, jint keyLocation,
+ jint modifiers, jint keyLocation, jlong nativeCode,
MSG *msg = NULL);
/*
* Allocate and initialize a new java.awt.event.KeyEvent, and
* post it to the peer's target object. No response is expected
* from the target.
*/
void SendKeyEvent(jint id, jlong when, jint raw, jint cooked,
- jint modifiers, jint keyLocation,
+ jint modifiers, jint keyLocation, jlong nativeCode,
MSG *msg = NULL);
/*
* Allocate and initialize a new java.awt.event.MouseEvent, and
* post it to the peer's target object. No response is expected
@@ -418,14 +418,10 @@
* return TRUE. These are TextArea, Choice, FileDialog, and
* List. All other Components return FALSE.
*/
virtual BOOL InheritsNativeMouseWheelBehavior();
- /* Functions for MouseWheel support on Windows95
- * These should only be called if running on 95
- */
-
/* Determines whether the component is obscured by another window */
// Called on Toolkit thread
static jboolean _IsObscured(void *param);
/* Invalidate the specified rectangle. */
@@ -441,10 +437,11 @@
static jint GetJavaModifiers();
static jint GetButton(int mouseButton);
static UINT GetButtonMK(int mouseButton);
static UINT WindowsKeyToJavaKey(UINT windowsKey, UINT modifiers);
static void JavaKeyToWindowsKey(UINT javaKey, UINT *windowsKey, UINT *modifiers, UINT originalWindowsKey);
+ static void UpdateDynPrimaryKeymap(UINT wkey, UINT jkeyLegacy, jint keyLocation, UINT modifiers);
INLINE static void AwtComponent::JavaKeyToWindowsKey(UINT javaKey,
UINT *windowsKey, UINT *modifiers)
{
JavaKeyToWindowsKey(javaKey, windowsKey, modifiers, IGNORE_KEY);
@@ -593,11 +590,11 @@
return mrDoDefault;
}
void UpdateColorModel();
- jintArray CreatePrintedPixels(SIZE &loc, SIZE &size);
+ jintArray CreatePrintedPixels(SIZE &loc, SIZE &size, int alpha);
static void * GetNativeFocusOwner();
static void * GetNativeFocusedWindow();
static void ClearGlobalFocusOwner();
@@ -716,11 +713,10 @@
static HWND sm_realFocusOpposite;
virtual void SetDragCapture(UINT flags);
virtual void ReleaseDragCapture(UINT flags);
- //These functions are overridden in AwtWindow to handle non-opaque windows.
virtual void FillBackground(HDC hMemoryDC, SIZE &size);
virtual void FillAlpha(void *bitmapBits, SIZE &size, BYTE alpha);
private:
BOOL m_bSubclassed;
@@ -753,10 +749,12 @@
static LANGID m_idLang;
static BOOL sm_rtl;
static BOOL sm_rtlReadingOrder;
+ static BOOL sm_PrimaryDynamicTableBuilt;
+
jobject m_InputMethod;
BOOL m_useNativeCompWindow;
LPARAM m_bitsCandType;
UINT m_PendingLeadByte;
@@ -815,10 +813,11 @@
static void SetParent(void * param);
private:
AwtComponent* SearchChild(UINT id);
void RemoveChild(UINT id) ;
+ static void BuildPrimaryDynamicTable();
ChildListItem* m_childList;
HCURSOR m_hCursorCache; // the latest cursor which has been active within the heavyweight component
public:
< prev index next >