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

x33g5p2x  于2022-01-24 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(131)

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

[英]Sets the orientation of the receiver, which must be one of the constants SWT.LEFT_TO_RIGHT or SWT.RIGHT_TO_LEFT.
[中]设置接收器的方向,该方向必须是常量SWT.LEFT_TO_RIGHTSWT.RIGHT_TO_LEFT之一。

代码示例

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

void _setOrientation (int orientation) {
  int flags = SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT;
  if ((orientation & flags) == 0 || (orientation & flags) == flags) return;
  style &= ~flags;
  style |= orientation & flags;
  setOrientation (false);
}

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

void _setOrientation (int orientation) {
  int flags = SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT;
  if ((orientation & flags) == 0 || (orientation & flags) == flags) return;
  style &= ~flags;
  style |= orientation & flags;
  setOrientation (false);
}

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

void _setOrientation (int orientation) {
  int flags = SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT;
  if ((orientation & flags) == 0 || (orientation & flags) == flags) return;
  style &= ~flags;
  style |= orientation & flags;
  setOrientation (false);
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

showMenu.setOrientation( getOrientation() );
final String id = "CTabFolder_showList_Index"; //$NON-NLS-1$
for( int i = 0; i < items.length; i++ ) {

相关文章