modules/graphics/src/main/native-glass/win/GlassWindow.cpp

Print this page

        

@@ -1752,6 +1752,23 @@
 
     ARG(jCursor) = jCursor;
     PERFORM();
 }
 
+JNIEXPORT void JNICALL Java_com_sun_glass_ui_win_WinWindow__1setUpdatesCursor
+    (JNIEnv *env, jobject jThis, jlong ptr, jboolean jUpdatesCursor)
+{
+    ENTER_MAIN_THREAD()
+    {
+        GlassWindow *pWindow = GlassWindow::FromHandle(hWnd);
+        if (pWindow) {
+            pWindow->SetUpdatesCursor(jUpdatesCursor == JNI_TRUE ? true : false);
+        }
+    }
+    jboolean jUpdatesCursor;
+    LEAVE_MAIN_THREAD_WITH_hWnd;
+
+    ARG(jUpdatesCursor) = jUpdatesCursor;
+    PERFORM();
+}
+
 }   // extern "C"