本文整理了Java中org.eclipse.swt.widgets.MenuItem.getMaskKeysym()
方法的一些代码示例,展示了MenuItem.getMaskKeysym()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MenuItem.getMaskKeysym()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.MenuItem
类名称:MenuItem
方法名:getMaskKeysym
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
boolean updateAcceleratorText (boolean show) {
if (accelerator != 0) return false;
MaskKeysym maskKeysym = null;
if (show) {
maskKeysym = getMaskKeysym();
}
if (maskKeysym == null) return true;
if (maskKeysym.keysym != 0) {
int /*long*/ accelGroup = getAccelGroup ();
if (show) {
OS.gtk_widget_add_accelerator (handle, OS.activate, accelGroup, maskKeysym.keysym, maskKeysym.mask, OS.GTK_ACCEL_VISIBLE);
} else {
OS.gtk_widget_remove_accelerator (handle, accelGroup, maskKeysym.keysym, maskKeysym.mask);
}
}
return maskKeysym.keysym != 0;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
boolean updateAcceleratorText (boolean show) {
if (accelerator != 0) return false;
MaskKeysym maskKeysym = null;
if (show) {
maskKeysym = getMaskKeysym();
}
if (maskKeysym == null) return true;
if (maskKeysym.keysym != 0) {
int /*long*/ accelGroup = getAccelGroup ();
if (show) {
OS.gtk_widget_add_accelerator (handle, OS.activate, accelGroup, maskKeysym.keysym, maskKeysym.mask, OS.GTK_ACCEL_VISIBLE);
} else {
OS.gtk_widget_remove_accelerator (handle, accelGroup, maskKeysym.keysym, maskKeysym.mask);
}
}
return maskKeysym.keysym != 0;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
boolean updateAcceleratorText (boolean show) {
if (accelerator != 0) return false;
MaskKeysym maskKeysym = null;
if (show) {
maskKeysym = getMaskKeysym();
}
if (maskKeysym == null) return true;
if (maskKeysym.keysym != 0) {
long /*int*/ accelGroup = getAccelGroup ();
if (show) {
OS.gtk_widget_add_accelerator (handle, OS.activate, accelGroup, maskKeysym.keysym, maskKeysym.mask, OS.GTK_ACCEL_VISIBLE);
} else {
OS.gtk_widget_remove_accelerator (handle, accelGroup, maskKeysym.keysym, maskKeysym.mask);
}
}
return maskKeysym.keysym != 0;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
if (OS.GTK3) {
if (OS.GTK_VERSION >= OS.VERSION(3, 6, 0)) {
MaskKeysym maskKeysym = getMaskKeysym();
if (maskKeysym != null) {
OS.gtk_accel_label_set_accel_widget (labelHandle, handle);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
if (OS.GTK3) {
if (OS.GTK_VERSION >= OS.VERSION(3, 6, 0)) {
MaskKeysym maskKeysym = getMaskKeysym();
if (maskKeysym != null) {
OS.gtk_accel_label_set_accel_widget (labelHandle, handle);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
if (OS.GTK3) {
if (OS.GTK_VERSION >= OS.VERSION(3, 6, 0)) {
MaskKeysym maskKeysym = getMaskKeysym();
if (maskKeysym != null) {
OS.gtk_accel_label_set_accel_widget (labelHandle, handle);
内容来源于网络,如有侵权,请联系作者删除!