void resizeBounds (int width, int height, boolean notify) { if (redrawWindow != 0) { OS.gdk_window_resize (redrawWindow, width, height); } if (enableWindow != 0) { OS.gdk_window_resize (enableWindow, width, height); } int border = OS.gtk_container_get_border_width (shellHandle); int boxWidth = width - 2*border; int boxHeight = height - 2*border; if (!OS.GTK3 || (style & SWT.RESIZE) == 0) { OS.gtk_widget_set_size_request (vboxHandle, boxWidth, boxHeight); } forceResize (boxWidth, boxHeight); if (notify) { resized = true; sendEvent (SWT.Resize); if (isDisposed ()) return; if (layout != null) { markLayout (false, false); updateLayout (false); } } }
void resizeBounds (int width, int height, boolean notify) { if (redrawWindow != 0) { OS.gdk_window_resize (redrawWindow, width, height); } if (enableWindow != 0) { OS.gdk_window_resize (enableWindow, width, height); } int border = OS.gtk_container_get_border_width (shellHandle); int boxWidth = width - 2*border; int boxHeight = height - 2*border; if (!OS.GTK3 || (style & SWT.RESIZE) == 0) { OS.gtk_widget_set_size_request (vboxHandle, boxWidth, boxHeight); } forceResize (boxWidth, boxHeight); if (notify) { resized = true; sendEvent (SWT.Resize); if (isDisposed ()) return; if (layout != null) { markLayout (false, false); updateLayout (false); } } }
void resizeBounds (int width, int height, boolean notify) { if (redrawWindow != 0) { OS.gdk_window_resize (redrawWindow, width, height); } if (enableWindow != 0) { OS.gdk_window_resize (enableWindow, width, height); } int border = OS.gtk_container_get_border_width (shellHandle); int boxWidth = width - 2*border; int boxHeight = height - 2*border; if (!OS.GTK3 || (style & SWT.RESIZE) == 0) { OS.gtk_widget_set_size_request (vboxHandle, boxWidth, boxHeight); } forceResize (boxWidth, boxHeight); if (notify) { resized = true; sendEvent (SWT.Resize); if (isDisposed ()) return; if (layout != null) { markLayout (false, false); updateLayout (false); } } }
void windowDidResize(long /*int*/ id, long /*int*/ sel, long /*int*/ notification) { if (((window.collectionBehavior() & OS.NSWindowCollectionBehaviorFullScreenPrimary) == 0) && fullScreen) { window.setFrame(fullScreenFrame, true); NSRect contentViewFrame = new NSRect(); contentViewFrame.width = fullScreenFrame.width; contentViewFrame.height = fullScreenFrame.height; window.contentView().setFrame(contentViewFrame); } if (fixResize ()) { NSRect rect = window.frame (); rect.x = rect.y = 0; double /*float*/ scaleFactor = window.userSpaceScaleFactor(); rect.width /= scaleFactor; rect.height /= scaleFactor; window.contentView ().setFrame (rect); } resized = true; sendEvent (SWT.Resize); if (isDisposed ()) return; if (layout != null) { markLayout (false, false); updateLayout (false); } }
if (isDisposed ()) return; if (layout != null) { markLayout (false, false); updateLayout (false);
if (isDisposed ()) return; if (layout != null) { markLayout (false, false); updateLayout (false);
if (isDisposed ()) return; if (layout != null) { markLayout (false, false); updateLayout (false);
if (isDisposed ()) return; if (layout != null) { markLayout (false, false); updateLayout (false);