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

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

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

Scrollable.paintWindow介绍

暂无

代码示例

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

@Override
long /*int*/ paintWindow () {
  if ((style & SWT.SINGLE) != 0) {
    long /*int*/ window = super.paintWindow ();
    long /*int*/ children = OS.gdk_window_get_children (window);
    if (children != 0) {
      /*
      * When search or cancel icons are added to Text, those
      * icon window(s) are added to the beginning of the list.
      * In order to always return the correct window for Text,
      * browse to the end of the list.
      */
      do {
        window = OS.g_list_data (children);
      } while ((children = OS.g_list_next (children)) != 0);
    }
    OS.g_list_free (children);
    return window;
  }
  OS.gtk_widget_realize (handle);
  return OS.gtk_text_view_get_window (handle, OS.GTK_TEXT_WINDOW_TEXT);
}

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

@Override
int /*long*/ paintWindow () {
  if ((style & SWT.SINGLE) != 0) {
    int /*long*/ window = super.paintWindow ();
    int /*long*/ children = OS.gdk_window_get_children (window);
    if (children != 0) {
      /*
      * When search or cancel icons are added to Text, those
      * icon window(s) are added to the beginning of the list.
      * In order to always return the correct window for Text,
      * browse to the end of the list.
      */
      do {
        window = OS.g_list_data (children);
      } while ((children = OS.g_list_next (children)) != 0);
    }
    OS.g_list_free (children);
    return window;
  }
  OS.gtk_widget_realize (handle);
  return OS.gtk_text_view_get_window (handle, OS.GTK_TEXT_WINDOW_TEXT);
}

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

@Override
int /*long*/ paintWindow () {
  if ((style & SWT.SINGLE) != 0) {
    int /*long*/ window = super.paintWindow ();
    int /*long*/ children = OS.gdk_window_get_children (window);
    if (children != 0) {
      /*
      * When search or cancel icons are added to Text, those
      * icon window(s) are added to the beginning of the list.
      * In order to always return the correct window for Text,
      * browse to the end of the list.
      */
      do {
        window = OS.g_list_data (children);
      } while ((children = OS.g_list_next (children)) != 0);
    }
    OS.g_list_free (children);
    return window;
  }
  OS.gtk_widget_realize (handle);
  return OS.gtk_text_view_get_window (handle, OS.GTK_TEXT_WINDOW_TEXT);
}

相关文章

Scrollable类方法