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

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

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

Scrollable.getClientAreaInPixels介绍

暂无

代码示例

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

  1. /**
  2. * Returns a rectangle which describes the area of the
  3. * receiver which is capable of displaying data (that is,
  4. * not covered by the "trimmings").
  5. *
  6. * @return the client area
  7. *
  8. * @exception SWTException <ul>
  9. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  10. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  11. * </ul>
  12. *
  13. * @see #computeTrim
  14. */
  15. public Rectangle getClientArea () {
  16. checkWidget ();
  17. return DPIUtil.autoScaleDown(getClientAreaInPixels());
  18. }

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

  1. /**
  2. * Returns a rectangle which describes the area of the
  3. * receiver which is capable of displaying data (that is,
  4. * not covered by the "trimmings").
  5. *
  6. * @return the client area
  7. *
  8. * @exception SWTException <ul>
  9. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  10. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  11. * </ul>
  12. *
  13. * @see #computeTrim
  14. */
  15. public Rectangle getClientArea () {
  16. checkWidget ();
  17. return DPIUtil.autoScaleDown(getClientAreaInPixels());
  18. }

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

  1. /**
  2. * Returns a rectangle which describes the area of the
  3. * receiver which is capable of displaying data (that is,
  4. * not covered by the "trimmings").
  5. *
  6. * @return the client area
  7. *
  8. * @exception SWTException <ul>
  9. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  10. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  11. * </ul>
  12. *
  13. * @see #computeTrim
  14. */
  15. public Rectangle getClientArea () {
  16. checkWidget ();
  17. return DPIUtil.autoScaleDown(getClientAreaInPixels());
  18. }

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

  1. /**
  2. * Returns a rectangle which describes the area of the
  3. * receiver which is capable of displaying data (that is,
  4. * not covered by the "trimmings").
  5. *
  6. * @return the client area
  7. *
  8. * @exception SWTException <ul>
  9. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  10. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  11. * </ul>
  12. *
  13. * @see #computeTrim
  14. */
  15. public Rectangle getClientArea () {
  16. checkWidget ();
  17. return DPIUtil.autoScaleDown(getClientAreaInPixels());
  18. }

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

  1. @Override
  2. Rectangle getClientAreaInPixels () {
  3. checkWidget();
  4. if ((state & CANVAS) != 0) {
  5. if ((state & ZERO_WIDTH) != 0 && (state & ZERO_HEIGHT) != 0) {
  6. return new Rectangle (0, 0, 0, 0);
  7. }
  8. forceResize ();
  9. int /*long*/ clientHandle = clientHandle ();
  10. GtkAllocation allocation = new GtkAllocation();
  11. OS.gtk_widget_get_allocation (clientHandle, allocation);
  12. int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
  13. int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
  14. return new Rectangle (0, 0, width, height);
  15. }
  16. return super.getClientAreaInPixels();
  17. }

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

  1. @Override
  2. Rectangle getClientAreaInPixels () {
  3. checkWidget();
  4. if ((state & CANVAS) != 0) {
  5. if ((state & ZERO_WIDTH) != 0 && (state & ZERO_HEIGHT) != 0) {
  6. return new Rectangle (0, 0, 0, 0);
  7. }
  8. forceResize ();
  9. long /*int*/ clientHandle = clientHandle ();
  10. GtkAllocation allocation = new GtkAllocation();
  11. OS.gtk_widget_get_allocation (clientHandle, allocation);
  12. int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
  13. int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
  14. return new Rectangle (0, 0, width, height);
  15. }
  16. return super.getClientAreaInPixels();
  17. }

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

  1. @Override
  2. Rectangle getClientAreaInPixels () {
  3. checkWidget();
  4. if ((state & CANVAS) != 0) {
  5. if ((state & ZERO_WIDTH) != 0 && (state & ZERO_HEIGHT) != 0) {
  6. return new Rectangle (0, 0, 0, 0);
  7. }
  8. forceResize ();
  9. int /*long*/ clientHandle = clientHandle ();
  10. GtkAllocation allocation = new GtkAllocation();
  11. OS.gtk_widget_get_allocation (clientHandle, allocation);
  12. int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
  13. int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
  14. return new Rectangle (0, 0, width, height);
  15. }
  16. return super.getClientAreaInPixels();
  17. }

相关文章

Scrollable类方法