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

x33g5p2x  于2022-01-18 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(124)

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

Composite.updateScrollBarValue介绍

暂无

代码示例

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

@Override
void updateScrollBarValue (ScrollBar bar) {
  super.updateScrollBarValue (bar);
  /*
  * Bug in GTK. Scrolling changes the XWindow position
  * and makes the child widgets appear to scroll even
  * though when queried their position is unchanged.
  * The fix is to queue a resize event for each child to
  * force the position to be corrected.
  */
  int /*long*/ parentHandle = parentingHandle ();
  int /*long*/ list = OS.gtk_container_get_children (parentHandle);
  if (list == 0) return;
  int /*long*/ temp = list;
  while (temp != 0) {
    int /*long*/ widget = OS.g_list_data (temp);
    if (widget != 0) OS.gtk_widget_queue_resize  (widget);
    temp = OS.g_list_next (temp);
  }
  OS.g_list_free (list);
}

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

@Override
void updateScrollBarValue (ScrollBar bar) {
  super.updateScrollBarValue (bar);
  /*
  *  Bug in GTK. Scrolling changes the XWindow position
  * and makes the child widgets appear to scroll even
  * though when queried their position is unchanged.
  * The fix is to queue a resize event for each child to
  * force the position to be corrected.
  */
  long /*int*/ parentHandle = parentingHandle ();
  long /*int*/ list = OS.gtk_container_get_children (parentHandle);
  if (list == 0) return;
  long /*int*/ temp = list;
  while (temp != 0) {
    long /*int*/ widget = OS.g_list_data (temp);
    if (widget != 0) OS.gtk_widget_queue_resize  (widget);
    temp = OS.g_list_next (temp);
  }
  OS.g_list_free (list);
}

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

@Override
void updateScrollBarValue (ScrollBar bar) {
  super.updateScrollBarValue (bar);
  /*
  * Bug in GTK. Scrolling changes the XWindow position
  * and makes the child widgets appear to scroll even
  * though when queried their position is unchanged.
  * The fix is to queue a resize event for each child to
  * force the position to be corrected.
  */
  long /*int*/ parentHandle = parentingHandle ();
  long /*int*/ list = OS.gtk_container_get_children (parentHandle);
  if (list == 0) return;
  long /*int*/ temp = list;
  while (temp != 0) {
    long /*int*/ widget = OS.g_list_data (temp);
    if (widget != 0) OS.gtk_widget_queue_resize  (widget);
    temp = OS.g_list_next (temp);
  }
  OS.g_list_free (list);
}

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

@Override
void updateScrollBarValue (ScrollBar bar) {
  super.updateScrollBarValue (bar);
  /*
  *  Bug in GTK. Scrolling changes the XWindow position
  * and makes the child widgets appear to scroll even
  * though when queried their position is unchanged.
  * The fix is to queue a resize event for each child to
  * force the position to be corrected.
  */
  int /*long*/ parentHandle = parentingHandle ();
  int /*long*/ list = OS.gtk_container_get_children (parentHandle);
  if (list == 0) return;
  int /*long*/ temp = list;
  while (temp != 0) {
    int /*long*/ widget = OS.g_list_data (temp);
    if (widget != 0) OS.gtk_widget_queue_resize  (widget);
    temp = OS.g_list_next (temp);
  }
  OS.g_list_free (list);
}

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

@Override
void updateScrollBarValue (ScrollBar bar) {
  super.updateScrollBarValue (bar);
  /*
  * Bug in GTK. Scrolling changes the XWindow position
  * and makes the child widgets appear to scroll even
  * though when queried their position is unchanged.
  * The fix is to queue a resize event for each child to
  * force the position to be corrected.
  */
  int /*long*/ parentHandle = parentingHandle ();
  int /*long*/ list = OS.gtk_container_get_children (parentHandle);
  if (list == 0) return;
  int /*long*/ temp = list;
  while (temp != 0) {
    int /*long*/ widget = OS.g_list_data (temp);
    if (widget != 0) OS.gtk_widget_queue_resize  (widget);
    temp = OS.g_list_next (temp);
  }
  OS.g_list_free (list);
}

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

@Override
void updateScrollBarValue (ScrollBar bar) {
  super.updateScrollBarValue (bar);
  /*
  *  Bug in GTK. Scrolling changes the XWindow position
  * and makes the child widgets appear to scroll even
  * though when queried their position is unchanged.
  * The fix is to queue a resize event for each child to
  * force the position to be corrected.
  */
  int /*long*/ parentHandle = parentingHandle ();
  int /*long*/ list = OS.gtk_container_get_children (parentHandle);
  if (list == 0) return;
  int /*long*/ temp = list;
  while (temp != 0) {
    int /*long*/ widget = OS.g_list_data (temp);
    if (widget != 0) OS.gtk_widget_queue_resize  (widget);
    temp = OS.g_list_next (temp);
  }
  OS.g_list_free (list);
}

相关文章

Composite类方法