org.eclipse.swt.widgets.Shell.markLayout()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中org.eclipse.swt.widgets.Shell.markLayout()方法的一些代码示例,展示了Shell.markLayout()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Shell.markLayout()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Shell
类名称:Shell
方法名:markLayout

Shell.markLayout介绍

暂无

代码示例

代码示例来源: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 (isDisposed ()) return;
if (layout != null) {
  markLayout (false, false);
  updateLayout (false);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

if (isDisposed ()) return;
if (layout != null) {
  markLayout (false, false);
  updateLayout (false);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

if (isDisposed ()) return;
if (layout != null) {
  markLayout (false, false);
  updateLayout (false);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

if (isDisposed ()) return;
if (layout != null) {
  markLayout (false, false);
  updateLayout (false);

相关文章

微信公众号

最新文章

更多

Shell类方法