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

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

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

Table.parentingHandle介绍

暂无

代码示例

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

  1. @Override
  2. void updateScrollBarValue (ScrollBar bar) {
  3. super.updateScrollBarValue (bar);
  4. /*
  5. * Bug in GTK. Scrolling changes the XWindow position
  6. * and makes the child widgets appear to scroll even
  7. * though when queried their position is unchanged.
  8. * The fix is to queue a resize event for each child to
  9. * force the position to be corrected.
  10. */
  11. long /*int*/ parentHandle = parentingHandle ();
  12. long /*int*/ list = OS.gtk_container_get_children (parentHandle);
  13. if (list == 0) return;
  14. long /*int*/ temp = list;
  15. while (temp != 0) {
  16. long /*int*/ widget = OS.g_list_data (temp);
  17. if (widget != 0) OS.gtk_widget_queue_resize (widget);
  18. temp = OS.g_list_next (temp);
  19. }
  20. OS.g_list_free (list);
  21. }

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

  1. @Override
  2. void updateScrollBarValue (ScrollBar bar) {
  3. super.updateScrollBarValue (bar);
  4. /*
  5. * Bug in GTK. Scrolling changes the XWindow position
  6. * and makes the child widgets appear to scroll even
  7. * though when queried their position is unchanged.
  8. * The fix is to queue a resize event for each child to
  9. * force the position to be corrected.
  10. */
  11. int /*long*/ parentHandle = parentingHandle ();
  12. int /*long*/ list = OS.gtk_container_get_children (parentHandle);
  13. if (list == 0) return;
  14. int /*long*/ temp = list;
  15. while (temp != 0) {
  16. int /*long*/ widget = OS.g_list_data (temp);
  17. if (widget != 0) OS.gtk_widget_queue_resize (widget);
  18. temp = OS.g_list_next (temp);
  19. }
  20. OS.g_list_free (list);
  21. }

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

  1. @Override
  2. void updateScrollBarValue (ScrollBar bar) {
  3. super.updateScrollBarValue (bar);
  4. /*
  5. * Bug in GTK. Scrolling changes the XWindow position
  6. * and makes the child widgets appear to scroll even
  7. * though when queried their position is unchanged.
  8. * The fix is to queue a resize event for each child to
  9. * force the position to be corrected.
  10. */
  11. int /*long*/ parentHandle = parentingHandle ();
  12. int /*long*/ list = OS.gtk_container_get_children (parentHandle);
  13. if (list == 0) return;
  14. int /*long*/ temp = list;
  15. while (temp != 0) {
  16. int /*long*/ widget = OS.g_list_data (temp);
  17. if (widget != 0) OS.gtk_widget_queue_resize (widget);
  18. temp = OS.g_list_next (temp);
  19. }
  20. OS.g_list_free (list);
  21. }

相关文章

Table类方法