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

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

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

Tree.getHeaderHeightInPixels介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

/**
 * Returns the height of the receiver's header
 *
 * @return the height of the header or zero if the header is not visible
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 *
 * @since 3.1
 */
public int getHeaderHeight () {
  checkWidget ();
  return DPIUtil.autoScaleDown(getHeaderHeightInPixels ());
}

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

/**
 * Returns the height of the receiver's header
 *
 * @return the height of the header or zero if the header is not visible
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 *
 * @since 3.1
 */
public int getHeaderHeight () {
  checkWidget ();
  return DPIUtil.autoScaleDown (getHeaderHeightInPixels ());
}

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

/**
 * Returns the height of the receiver's header
 *
 * @return the height of the header or zero if the header is not visible
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 *
 * @since 3.1
 */
public int getHeaderHeight () {
  checkWidget ();
  return DPIUtil.autoScaleDown (getHeaderHeightInPixels ());
}

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

/**
 * Returns the height of the receiver's header
 *
 * @return the height of the header or zero if the header is not visible
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 *
 * @since 3.1
 */
public int getHeaderHeight () {
  checkWidget ();
  return DPIUtil.autoScaleDown (getHeaderHeightInPixels ());
}

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

@Override
Rectangle getClientAreaInPixels () {
  checkWidget ();
  forceResize ();
  OS.gtk_widget_realize (handle);
  int /*long*/ fixedWindow = gtk_widget_get_window (fixedHandle);
  int /*long*/ binWindow = OS.gtk_tree_view_get_bin_window (handle);
  int [] binX = new int [1], binY = new int [1];
  OS.gdk_window_get_origin (binWindow, binX, binY);
  int [] fixedX = new int [1], fixedY = new int [1];
  OS.gdk_window_get_origin (fixedWindow, fixedX, fixedY);
  int /*long*/ clientHandle = clientHandle ();
  GtkAllocation allocation = new GtkAllocation ();
  OS.gtk_widget_get_allocation (clientHandle, allocation);
  int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
  int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
  Rectangle rect = new Rectangle (fixedX [0] - binX [0], fixedY [0] - binY [0], width, height);
  if (getHeaderVisible() && OS.GTK_VERSION > OS.VERSION(3, 9, 0)) {
    rect.y += getHeaderHeightInPixels();
  }
  return rect;
}

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

@Override
Rectangle getClientAreaInPixels () {
  checkWidget ();
  forceResize ();
  OS.gtk_widget_realize (handle);
  long /*int*/ fixedWindow = gtk_widget_get_window (fixedHandle);
  long /*int*/ binWindow = OS.gtk_tree_view_get_bin_window (handle);
  int [] binX = new int [1], binY = new int [1];
  OS.gdk_window_get_origin (binWindow, binX, binY);
  int [] fixedX = new int [1], fixedY = new int [1];
  OS.gdk_window_get_origin (fixedWindow, fixedX, fixedY);
  long /*int*/ clientHandle = clientHandle ();
  GtkAllocation allocation = new GtkAllocation ();
  OS.gtk_widget_get_allocation (clientHandle, allocation);
  int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
  int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
  Rectangle rect = new Rectangle (fixedX [0] - binX [0], fixedY [0] - binY [0], width, height);
  if (getHeaderVisible() && OS.GTK_VERSION > OS.VERSION(3, 9, 0)) {
    rect.y += getHeaderHeightInPixels();
  }
  return rect;
}

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

@Override
Rectangle getClientAreaInPixels () {
  checkWidget ();
  forceResize ();
  OS.gtk_widget_realize (handle);
  int /*long*/ fixedWindow = gtk_widget_get_window (fixedHandle);
  int /*long*/ binWindow = OS.gtk_tree_view_get_bin_window (handle);
  int [] binX = new int [1], binY = new int [1];
  OS.gdk_window_get_origin (binWindow, binX, binY);
  int [] fixedX = new int [1], fixedY = new int [1];
  OS.gdk_window_get_origin (fixedWindow, fixedX, fixedY);
  int /*long*/ clientHandle = clientHandle ();
  GtkAllocation allocation = new GtkAllocation ();
  OS.gtk_widget_get_allocation (clientHandle, allocation);
  int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
  int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
  Rectangle rect = new Rectangle (fixedX [0] - binX [0], fixedY [0] - binY [0], width, height);
  if (getHeaderVisible() && OS.GTK_VERSION > OS.VERSION(3, 9, 0)) {
    rect.y += getHeaderHeightInPixels();
  }
  return rect;
}

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

int y = point.y;
if (getHeaderVisible() && OS.GTK_VERSION > OS.VERSION(3, 9, 0)) {
  y -= getHeaderHeightInPixels();

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

int y = point.y;
if (getHeaderVisible() && OS.GTK_VERSION > OS.VERSION(3, 9, 0)) {
  y -= getHeaderHeightInPixels();

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

int y = point.y;
if (getHeaderVisible() && OS.GTK_VERSION > OS.VERSION(3, 9, 0)) {
  y -= getHeaderHeightInPixels();

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

Rectangle r = new Rectangle (rect.x, rect.y, width, rect.height + 1);
if (parent.getHeaderVisible() && OS.GTK_VERSION > OS.VERSION(3, 9, 0)) {
  r.y += parent.getHeaderHeightInPixels();

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

Rectangle r = new Rectangle (rect.x, rect.y, width, rect.height + 1);
if (parent.getHeaderVisible() && OS.GTK_VERSION > OS.VERSION(3, 9, 0)) {
  r.y += parent.getHeaderHeightInPixels();

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

Rectangle r = new Rectangle (rect.x, rect.y, width, rect.height + 1);
if (parent.getHeaderVisible() && OS.GTK_VERSION > OS.VERSION(3, 9, 0)) {
  r.y += parent.getHeaderHeightInPixels();

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

Rectangle r = new Rectangle (rect.x, rect.y, width, rect.height + 1);
if (parent.getHeaderVisible() && OS.GTK_VERSION > OS.VERSION(3, 9, 0)) {
  r.y += parent.getHeaderHeightInPixels();

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

Rectangle r = new Rectangle (rect.x, rect.y, width, rect.height + 1);
if (parent.getHeaderVisible() && OS.GTK_VERSION > OS.VERSION(3, 9, 0)) {
  r.y += parent.getHeaderHeightInPixels();

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

Rectangle r = new Rectangle (rect.x, rect.y, width, rect.height + 1);
if (parent.getHeaderVisible() && OS.GTK_VERSION > OS.VERSION(3, 9, 0)) {
  r.y += parent.getHeaderHeightInPixels();

相关文章

Tree类方法