本文整理了Java中org.eclipse.swt.widgets.Shell.updateLayout()
方法的一些代码示例,展示了Shell.updateLayout()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Shell.updateLayout()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Shell
类名称:Shell
方法名:updateLayout
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
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);
}
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
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);
}
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
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);
}
}
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
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);
}
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
if (layout != null) {
markLayout (false, false);
updateLayout (false);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
if (layout != null) {
markLayout (false, false);
updateLayout (false);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
if (layout != null) {
markLayout (false, false);
updateLayout (false);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
if (layout != null) {
markLayout (false, false);
updateLayout (false);
内容来源于网络,如有侵权,请联系作者删除!