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

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

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

Tree.sendMeasureEvent介绍

暂无

代码示例

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

@Override
int /*long*/ rendererGetSizeProc (int /*long*/ cell, int /*long*/ widget, int /*long*/ cell_area, int /*long*/ x_offset, int /*long*/ y_offset, int /*long*/ width, int /*long*/ height) {
  int /*long*/ g_class = OS.g_type_class_peek_parent (OS.G_OBJECT_GET_CLASS (cell));
  GtkCellRendererClass klass = new GtkCellRendererClass ();
  OS.memmove (klass, g_class);
  OS.call_get_size (klass.get_size, cell, handle, cell_area, x_offset, y_offset, width, height);
  sendMeasureEvent (cell, width, height);
  return 0;
}

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

@Override
int /*long*/ rendererGetPreferredWidthProc (int /*long*/ cell, int /*long*/ handle, int /*long*/ minimun_size, int /*long*/ natural_size) {
  int /*long*/ g_class = OS.g_type_class_peek_parent (OS.G_OBJECT_GET_CLASS (cell));
  GtkCellRendererClass klass = new GtkCellRendererClass ();
  OS.memmove (klass, g_class);
  OS.call (klass.get_preferred_width, cell, handle, minimun_size, natural_size);
  sendMeasureEvent (cell, minimun_size, 0);
  return 0;
}

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

@Override
int /*long*/ rendererGetSizeProc (int /*long*/ cell, int /*long*/ widget, int /*long*/ cell_area, int /*long*/ x_offset, int /*long*/ y_offset, int /*long*/ width, int /*long*/ height) {
  int /*long*/ g_class = OS.g_type_class_peek_parent (OS.G_OBJECT_GET_CLASS (cell));
  GtkCellRendererClass klass = new GtkCellRendererClass ();
  OS.memmove (klass, g_class);
  OS.call_get_size (klass.get_size, cell, handle, cell_area, x_offset, y_offset, width, height);
  sendMeasureEvent (cell, width, height);
  return 0;
}

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

@Override
long /*int*/ rendererGetPreferredWidthProc (long /*int*/ cell, long /*int*/ handle, long /*int*/ minimun_size, long /*int*/ natural_size) {
  long /*int*/ g_class = OS.g_type_class_peek_parent (OS.G_OBJECT_GET_CLASS (cell));
  GtkCellRendererClass klass = new GtkCellRendererClass ();
  OS.memmove (klass, g_class);
  OS.call (klass.get_preferred_width, cell, handle, minimun_size, natural_size);
  sendMeasureEvent (cell, minimun_size, 0);
  return 0;
}

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

@Override
long /*int*/ rendererGetSizeProc (long /*int*/ cell, long /*int*/ widget, long /*int*/ cell_area, long /*int*/ x_offset, long /*int*/ y_offset, long /*int*/ width, long /*int*/ height) {
  long /*int*/ g_class = OS.g_type_class_peek_parent (OS.G_OBJECT_GET_CLASS (cell));
  GtkCellRendererClass klass = new GtkCellRendererClass ();
  OS.memmove (klass, g_class);
  OS.call_get_size (klass.get_size, cell, handle, cell_area, x_offset, y_offset, width, height);
  sendMeasureEvent (cell, width, height);
  return 0;
}

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

@Override
int /*long*/ rendererGetPreferredWidthProc (int /*long*/ cell, int /*long*/ handle, int /*long*/ minimun_size, int /*long*/ natural_size) {
  int /*long*/ g_class = OS.g_type_class_peek_parent (OS.G_OBJECT_GET_CLASS (cell));
  GtkCellRendererClass klass = new GtkCellRendererClass ();
  OS.memmove (klass, g_class);
  OS.call (klass.get_preferred_width, cell, handle, minimun_size, natural_size);
  sendMeasureEvent (cell, minimun_size, 0);
  return 0;
}

相关文章

Tree类方法