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

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

本文整理了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

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

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

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

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

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

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

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

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

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

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

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

相关文章

Scrollable类方法