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

x33g5p2x  于2022-01-30 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(127)

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

Scrollable.setBounds介绍

暂无

代码示例

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

@Override
int setBounds (int x, int y, int width, int height, boolean move, boolean resize) {
  int result = super.setBounds (x, y, width, height, move, resize);
  /*
  * Bug on GTK.  The tree view sometimes does not get a paint
  * event or resizes to a one pixel square when resized in a new
  * shell that is not visible after any event loop has been run.  The
  * problem is intermittent. It doesn't seem to happen the first time
  * a new shell is created. The fix is to ensure the tree view is realized
  * after it has been resized.
  */
  OS.gtk_widget_realize (handle);
  return result;
}

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

@Override
int setBounds (int x, int y, int width, int height, boolean move, boolean resize) {
  int result = super.setBounds (x, y, width, height, move, resize);
  /*
  * Bug on GTK.  The tree view sometimes does not get a paint
  * event or resizes to a one pixel square when resized in a new
  * shell that is not visible after any event loop has been run.  The
  * problem is intermittent. It doesn't seem to happen the first time
  * a new shell is created. The fix is to ensure the tree view is realized
  * after it has been resized.
  */
  OS.gtk_widget_realize (handle);
  return result;
}

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

@Override
int setBounds (int x, int y, int width, int height, boolean move, boolean resize) {
  int result = super.setBounds (x, y, width, height, move, resize);
  /*
  * Bug on GTK.  The tree view sometimes does not get a paint
  * event or resizes to a one pixel square when resized in a new
  * shell that is not visible after any event loop has been run.  The
  * problem is intermittent. It doesn't seem to happen the first time
  * a new shell is created. The fix is to ensure the tree view is realized
  * after it has been resized.
  */
  OS.gtk_widget_realize (handle);
  return result;
}

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

int result = super.setBounds (x, y, width, height, move, resize);
if ((result & RESIZED) != 0 && layout != null) {
  markLayout (false, false);

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

int result = super.setBounds (x, y, width, height, move, resize);
if ((result & RESIZED) != 0 && layout != null) {
  markLayout (false, false);

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

int result = super.setBounds (x, y, width, height, move, resize);
if ((result & RESIZED) != 0 && layout != null) {
  markLayout (false, false);

相关文章

Scrollable类方法