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

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

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

Scrollable.gtk_draw介绍

暂无

代码示例

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

@Override
long /*int*/ gtk_draw (long /*int*/ widget, long /*int*/ cairo) {
  if ((state & OBSCURED) != 0) return 0;
  long /*int*/ result = super.gtk_draw (widget, cairo);
  drawMessage (cairo);
  return result;
}

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

@Override
int /*long*/ gtk_draw (int /*long*/ widget, int /*long*/ cairo) {
  if ((state & OBSCURED) != 0) return 0;
  int /*long*/ result = super.gtk_draw (widget, cairo);
  drawMessage (cairo);
  return result;
}

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

@Override
int /*long*/ gtk_draw (int /*long*/ widget, int /*long*/ cairo) {
  if ((state & OBSCURED) != 0) return 0;
  int /*long*/ result = super.gtk_draw (widget, cairo);
  drawMessage (cairo);
  return result;
}

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

@Override
int /*long*/ gtk_draw (int /*long*/ widget, int /*long*/ cairo) {
  if (OS.GTK_VERSION >= OS.VERSION(3, 16, 0)) {
    int /*long*/ context = OS.gtk_widget_get_style_context(widget);
    GtkAllocation allocation = new GtkAllocation();
    OS.gtk_widget_get_allocation (widget, allocation);
    int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
    int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
    // We specify a 0 value for x & y as we want the whole widget to be
    // colored, not some portion of it.
    OS.gtk_render_background(context, cairo, 0, 0, width, height);
  }
  return super.gtk_draw(widget, cairo);
}

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

@Override
long /*int*/ gtk_draw (long /*int*/ widget, long /*int*/ cairo) {
  if (OS.GTK_VERSION >= OS.VERSION(3, 16, 0)) {
    long /*int*/ context = OS.gtk_widget_get_style_context(widget);
    GtkAllocation allocation = new GtkAllocation();
    OS.gtk_widget_get_allocation (widget, allocation);
    int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
    int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
    // We specify a 0 value for x & y as we want the whole widget to be
    // colored, not some portion of it.
    OS.gtk_render_background(context, cairo, 0, 0, width, height);
  }
  return super.gtk_draw(widget, cairo);
}

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

@Override
int /*long*/ gtk_draw (int /*long*/ widget, int /*long*/ cairo) {
  if (OS.GTK_VERSION >= OS.VERSION(3, 16, 0)) {
    int /*long*/ context = OS.gtk_widget_get_style_context(widget);
    GtkAllocation allocation = new GtkAllocation();
    OS.gtk_widget_get_allocation (widget, allocation);
    int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
    int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
    // We specify a 0 value for x & y as we want the whole widget to be
    // colored, not some portion of it.
    OS.gtk_render_background(context, cairo, 0, 0, width, height);
  }
  return super.gtk_draw(widget, cairo);
}

相关文章

Scrollable类方法