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

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

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

Scrollable.gtk_realize介绍

暂无

代码示例

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

@Override
int /*long*/ gtk_realize (int /*long*/ widget) {
  int /*long*/ result = super.gtk_realize (widget);
  if ((style & SWT.NO_BACKGROUND) != 0) {
    int /*long*/ window = gtk_widget_get_window (paintHandle ());
    if (window != 0) {
      if (OS.GTK3) {
        OS.gdk_window_set_background_pattern(window, 0);
      } else {
        OS.gdk_window_set_back_pixmap (window, 0, false);
      }
    }
  }
  if (socketHandle != 0) {
    embeddedHandle = OS.gtk_socket_get_id (socketHandle);
  }
  return result;
}

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

@Override
int /*long*/ gtk_realize (int /*long*/ widget) {
  int /*long*/ result = super.gtk_realize (widget);
  if ((style & SWT.NO_BACKGROUND) != 0) {
    int /*long*/ window = gtk_widget_get_window (paintHandle ());
    if (window != 0) {
      if (OS.GTK3) {
        OS.gdk_window_set_background_pattern(window, 0);
      } else {
        OS.gdk_window_set_back_pixmap (window, 0, false);
      }
    }
  }
  if (socketHandle != 0) {
    embeddedHandle = OS.gtk_socket_get_id (socketHandle);
  }
  return result;
}

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

@Override
long /*int*/ gtk_realize (long /*int*/ widget) {
  long /*int*/ result = super.gtk_realize (widget);
  if ((style & SWT.NO_BACKGROUND) != 0) {
    long /*int*/ window = gtk_widget_get_window (paintHandle ());
    if (window != 0) {
      if (OS.GTK3) {
        OS.gdk_window_set_background_pattern(window, 0);
      } else {
        OS.gdk_window_set_back_pixmap (window, 0, false);
      }
    }
  }
  if (socketHandle != 0) {
    embeddedHandle = OS.gtk_socket_get_id (socketHandle);
  }
  return result;
}

相关文章

Scrollable类方法