1104 }
1105 }
1106 else if ((maximize == JNI_FALSE) && (isZoomed == JNI_TRUE))
1107 {
1108 [window _restorePreZoomedRect];
1109 }
1110
1111 window->suppressWindowResizeEvent = NO;
1112 }
1113 GLASS_POOL_EXIT;
1114 GLASS_CHECK_EXCEPTION(env);
1115
1116 return JNI_TRUE; // gznote: remove this return value if unused
1117 }
1118
1119 /*
1120 * Class: com_sun_glass_ui_mac_MacWindow
1121 * Method: _setBounds
1122 * Signature: (JIIZZIIIIFF)V
1123 */
1124 JNIEXPORT void JNICALL Java_com_sun_glass_ui_mac_MacWindow__1setBounds
1125 (JNIEnv *env, jobject jWindow, jlong jPtr,
1126 jint x, jint y, jboolean xSet, jboolean ySet,
1127 jint w, jint h, jint cw, jint ch, jfloat xGravity, jfloat yGravity)
1128 {
1129 LOG("Java_com_sun_glass_ui_mac_MacWindow__1setBounds");
1130 LOG(" x,y: %d,%d", x, y);
1131 LOG(" xSet,ySet: %d,%d", xSet, ySet);
1132 LOG(" xGravity,yGravity: %.2f,%.2f", xGravity, yGravity);
1133 LOG(" w x h: %dx%d", w, h);
1134 LOG(" cw x ch: %dx%d", cw, ch);
1135 if (!jPtr) return;
1136
1137 GLASS_ASSERT_MAIN_JAVA_THREAD(env);
1138 GLASS_POOL_ENTER;
1139 {
1140 GlassWindow *window = getGlassWindow(env, jPtr);
1141 if (xSet || ySet) window->isLocationAssigned = YES;
1142 if (w > 0 || h > 0 || cw > 0 || ch > 0) window->isSizeAssigned = YES;
1143 [window _setBounds:x y:y xSet:xSet ySet:ySet w:w h:h cw:cw ch:ch];
1144 }
|
1104 }
1105 }
1106 else if ((maximize == JNI_FALSE) && (isZoomed == JNI_TRUE))
1107 {
1108 [window _restorePreZoomedRect];
1109 }
1110
1111 window->suppressWindowResizeEvent = NO;
1112 }
1113 GLASS_POOL_EXIT;
1114 GLASS_CHECK_EXCEPTION(env);
1115
1116 return JNI_TRUE; // gznote: remove this return value if unused
1117 }
1118
1119 /*
1120 * Class: com_sun_glass_ui_mac_MacWindow
1121 * Method: _setBounds
1122 * Signature: (JIIZZIIIIFF)V
1123 */
1124 JNIEXPORT void JNICALL Java_com_sun_glass_ui_mac_MacWindow__1setBounds2
1125 (JNIEnv *env, jobject jWindow, jlong jPtr,
1126 jint x, jint y, jboolean xSet, jboolean ySet,
1127 jint w, jint h, jint cw, jint ch, jfloat xGravity, jfloat yGravity)
1128 {
1129 LOG("Java_com_sun_glass_ui_mac_MacWindow__1setBounds");
1130 LOG(" x,y: %d,%d", x, y);
1131 LOG(" xSet,ySet: %d,%d", xSet, ySet);
1132 LOG(" xGravity,yGravity: %.2f,%.2f", xGravity, yGravity);
1133 LOG(" w x h: %dx%d", w, h);
1134 LOG(" cw x ch: %dx%d", cw, ch);
1135 if (!jPtr) return;
1136
1137 GLASS_ASSERT_MAIN_JAVA_THREAD(env);
1138 GLASS_POOL_ENTER;
1139 {
1140 GlassWindow *window = getGlassWindow(env, jPtr);
1141 if (xSet || ySet) window->isLocationAssigned = YES;
1142 if (w > 0 || h > 0 || cw > 0 || ch > 0) window->isSizeAssigned = YES;
1143 [window _setBounds:x y:y xSet:xSet ySet:ySet w:w h:h cw:cw ch:ch];
1144 }
|