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

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

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

Table.getTextRenderer介绍

暂无

代码示例

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

void resetCustomDraw () {
  if ((style & SWT.VIRTUAL) != 0 || ownerDraw) return;
  int end = Math.max (1, columnCount);
  for (int i=0; i<end; i++) {
    boolean customDraw = columnCount != 0 ? columns [i].customDraw : firstCustomDraw;
    if (customDraw) {
      int /*long*/ column = OS.gtk_tree_view_get_column (handle, i);
      int /*long*/ textRenderer = getTextRenderer (column);
      OS.gtk_tree_view_column_set_cell_data_func (column, textRenderer, 0, 0, 0);
      if (columnCount != 0) columns [i].customDraw = false;
    }
  }
  firstCustomDraw = false;
}

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

void resetCustomDraw () {
  if ((style & SWT.VIRTUAL) != 0 || ownerDraw) return;
  int end = Math.max (1, columnCount);
  for (int i=0; i<end; i++) {
    boolean customDraw = columnCount != 0 ? columns [i].customDraw : firstCustomDraw;
    if (customDraw) {
      int /*long*/ column = OS.gtk_tree_view_get_column (handle, i);
      int /*long*/ textRenderer = getTextRenderer (column);
      OS.gtk_tree_view_column_set_cell_data_func (column, textRenderer, 0, 0, 0);
      if (columnCount != 0) columns [i].customDraw = false;
    }
  }
  firstCustomDraw = false;
}

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

void resetCustomDraw () {
  if ((style & SWT.VIRTUAL) != 0 || ownerDraw) return;
  int end = Math.max (1, columnCount);
  for (int i=0; i<end; i++) {
    boolean customDraw = columnCount != 0 ? columns [i].customDraw : firstCustomDraw;
    if (customDraw) {
      long /*int*/ column = OS.gtk_tree_view_get_column (handle, i);
      long /*int*/ textRenderer = getTextRenderer (column);
      OS.gtk_tree_view_column_set_cell_data_func (column, textRenderer, 0, 0, 0);
      if (columnCount != 0) columns [i].customDraw = false;
    }
  }
  firstCustomDraw = false;
}

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

int height = h [0];
if (OS.GTK3) {
  long /*int*/ textRenderer = getTextRenderer (column);
  OS.gtk_cell_renderer_get_preferred_height_for_width (textRenderer, handle, 0, h, null);
  height += h [0];

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

int height = h [0];
if (OS.GTK3) {
  int /*long*/ textRenderer = getTextRenderer (column);
  OS.gtk_cell_renderer_get_preferred_height_for_width (textRenderer, handle, 0, h, null);
  height += h [0];

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

int height = h [0];
if (OS.GTK3) {
  int /*long*/ textRenderer = getTextRenderer (column);
  OS.gtk_cell_renderer_get_preferred_height_for_width (textRenderer, handle, 0, h, null);
  height += h [0];

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

int /*long*/ textRenderer = parent.getTextRenderer (column);
int /*long*/ imageRenderer = parent.getPixbufRenderer (column);
OS.gtk_tree_view_column_set_cell_data_func (column, textRenderer, display.cellDataProc, parentHandle, 0);

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

long /*int*/ textRenderer = parent.getTextRenderer (column);
long /*int*/ imageRenderer = parent.getPixbufRenderer (column);
OS.gtk_tree_view_column_set_cell_data_func (column, textRenderer, display.cellDataProc, parentHandle, 0);

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

long /*int*/ textRenderer = parent.getTextRenderer (column);
long /*int*/ imageRenderer = parent.getPixbufRenderer (column);
OS.gtk_tree_view_column_set_cell_data_func (column, textRenderer, display.cellDataProc, parentHandle, 0);

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

long /*int*/ textRenderer = parent.getTextRenderer (column);
long /*int*/ imageRenderer = parent.getPixbufRenderer (column);
OS.gtk_tree_view_column_set_cell_data_func (column, textRenderer, display.cellDataProc, parentHandle, 0);

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

int /*long*/ textRenderer = parent.getTextRenderer (column);
int /*long*/ imageRenderer = parent.getPixbufRenderer (column);
OS.gtk_tree_view_column_set_cell_data_func (column, textRenderer, display.cellDataProc, parentHandle, 0);

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

int /*long*/ textRenderer = parent.getTextRenderer (column);
int /*long*/ imageRenderer = parent.getPixbufRenderer (column);
OS.gtk_tree_view_column_set_cell_data_func (column, textRenderer, display.cellDataProc, parentHandle, 0);

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

int /*long*/ textRenderer = parent.getTextRenderer (column);
int /*long*/ imageRenderer = parent.getPixbufRenderer (column);
OS.gtk_tree_view_column_set_cell_data_func (column, textRenderer, display.cellDataProc, parentHandle, 0);

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

int /*long*/ textRenderer = parent.getTextRenderer (column);
int /*long*/ imageRenderer = parent.getPixbufRenderer (column);
OS.gtk_tree_view_column_set_cell_data_func (column, textRenderer, display.cellDataProc, parentHandle, 0);

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

int /*long*/ column = OS.gtk_tree_view_get_column (parentHandle, 0);
if (column == 0) return new Rectangle (0, 0, 0, 0);
int /*long*/ textRenderer = parent.getTextRenderer (column);
int /*long*/ pixbufRenderer = parent.getPixbufRenderer (column);
if (textRenderer == 0 || pixbufRenderer == 0)  return new Rectangle (0, 0, 0, 0);

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

int /*long*/ column = OS.gtk_tree_view_get_column (parentHandle, 0);
if (column == 0) return new Rectangle (0, 0, 0, 0);
int /*long*/ textRenderer = parent.getTextRenderer (column);
int /*long*/ pixbufRenderer = parent.getPixbufRenderer (column);
if (textRenderer == 0 || pixbufRenderer == 0)  return new Rectangle (0, 0, 0, 0);

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

int /*long*/ textRenderer = parent.getTextRenderer (column);
if (textRenderer == 0)  return new Rectangle (0, 0, 0, 0);
int [] xText = new int [1], wText = new int [1];

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

int /*long*/ textRenderer = parent.getTextRenderer (column);
if (textRenderer == 0)  return new Rectangle (0, 0, 0, 0);
int [] xText = new int [1], wText = new int [1];

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

long /*int*/ textRenderer = parent.getTextRenderer (column);
if (textRenderer == 0)  return new Rectangle (0, 0, 0, 0);
int [] xText = new int [1], wText = new int [1];

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

long /*int*/ column = OS.gtk_tree_view_get_column (parentHandle, 0);
if (column == 0) return new Rectangle (0, 0, 0, 0);
long /*int*/ textRenderer = parent.getTextRenderer (column);
long /*int*/ pixbufRenderer = parent.getPixbufRenderer (column);
if (textRenderer == 0 || pixbufRenderer == 0)  return new Rectangle (0, 0, 0, 0);

相关文章

Table类方法