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

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

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

Shell.topHandle介绍

暂无

代码示例

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

@Override
boolean traverseReturn () {
  Button button = defaultButton != null ? defaultButton: saveDefault;
  if (button == null || button.isDisposed ()) return false;
  /*
  * Bug in GTK.  When a default button that is disabled is
  * activated using the Enter key, GTK GP's.  The fix is to
  * detect this case and stop GTK from processing the Enter
  * key.
  */
  if (!button.isVisible () || !button.isEnabled ()) return true;
  int /*long*/ shellHandle = _getShell ().topHandle ();
  return OS.gtk_window_activate_default (shellHandle);
}

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

@Override
boolean traverseReturn () {
  Button button = defaultButton != null ? defaultButton: saveDefault;
  if (button == null || button.isDisposed ()) return false;
  /*
  * Bug in GTK.  When a default button that is disabled is
  * activated using the Enter key, GTK GP's.  The fix is to
  * detect this case and stop GTK from processing the Enter
  * key.
  */
  if (!button.isVisible () || !button.isEnabled ()) return true;
  long /*int*/ shellHandle = _getShell ().topHandle ();
  return OS.gtk_window_activate_default (shellHandle);
}

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

@Override
boolean traverseReturn () {
  Button button = defaultButton != null ? defaultButton: saveDefault;
  if (button == null || button.isDisposed ()) return false;
  /*
  * Bug in GTK.  When a default button that is disabled is
  * activated using the Enter key, GTK GP's.  The fix is to
  * detect this case and stop GTK from processing the Enter
  * key.
  */
  if (!button.isVisible () || !button.isEnabled ()) return true;
  int /*long*/ shellHandle = _getShell ().topHandle ();
  return OS.gtk_window_activate_default (shellHandle);
}

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

String openChooserDialog () {
  byte [] titleBytes = Converter.wcsToMbcs (null, title, true);
  int /*long*/ shellHandle = parent.topHandle ();
  Display display = parent != null ? parent.getDisplay (): Display.getCurrent ();
  int /*long*/ handle = 0;

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

String openChooserDialog () {
  byte [] titleBytes = Converter.wcsToMbcs (null, title, true);
  int /*long*/ shellHandle = parent.topHandle ();
  Display display = parent != null ? parent.getDisplay (): Display.getCurrent ();
  int /*long*/ handle = 0;

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

String openChooserDialog () {
  byte [] titleBytes = Converter.wcsToMbcs (null, title, true);
  long /*int*/ shellHandle = parent.topHandle ();
  Display display = parent != null ? parent.getDisplay (): Display.getCurrent ();
  long /*int*/ handle = 0;

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

int /*long*/ parentHandle = (parent != null) ? parent.topHandle() : 0;
int dialogFlags = OS.GTK_DIALOG_DESTROY_WITH_PARENT;
if ((style & (SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL)) != 0) {

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

long /*int*/ parentHandle = (parent != null) ? parent.topHandle() : 0;
int dialogFlags = OS.GTK_DIALOG_DESTROY_WITH_PARENT;
if ((style & (SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL)) != 0) {

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

int /*long*/ parentHandle = (parent != null) ? parent.topHandle() : 0;
int dialogFlags = OS.GTK_DIALOG_DESTROY_WITH_PARENT;
if ((style & (SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL)) != 0) {

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

int /*long*/ handle = 0;
if (OS.GTK_VERSION >= OS.VERSION (3, 4, 0)) {
  handle = OS.gtk_color_chooser_dialog_new (buffer, parent.topHandle ());
} else {
  handle = OS.gtk_color_selection_dialog_new (buffer);
if (OS.GTK_VERSION <= OS.VERSION (3, 4, 0)) {
  if (parent != null) {
    int /*long*/ shellHandle = parent.topHandle ();
    OS.gtk_window_set_transient_for (handle, shellHandle);
    int /*long*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);

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

int /*long*/ handle = 0;
if (OS.GTK_VERSION >= OS.VERSION (3, 4, 0)) {
  handle = OS.gtk_color_chooser_dialog_new (buffer, parent.topHandle ());
} else {
  handle = OS.gtk_color_selection_dialog_new (buffer);
if (OS.GTK_VERSION <= OS.VERSION (3, 4, 0)) {
  if (parent != null) {
    int /*long*/ shellHandle = parent.topHandle ();
    OS.gtk_window_set_transient_for (handle, shellHandle);
    int /*long*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);

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

OS.GTK_FILE_CHOOSER_ACTION_SAVE :
  OS.GTK_FILE_CHOOSER_ACTION_OPEN;
long /*int*/ shellHandle = parent.topHandle ();
Display display = parent != null ? parent.getDisplay (): Display.getCurrent ();
if (display.getDismissalAlignment() == SWT.RIGHT) {

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

OS.GTK_FILE_CHOOSER_ACTION_SAVE :
  OS.GTK_FILE_CHOOSER_ACTION_OPEN;
int /*long*/ shellHandle = parent.topHandle ();
Display display = parent != null ? parent.getDisplay (): Display.getCurrent ();
if (display.getDismissalAlignment() == SWT.RIGHT) {

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

long /*int*/ handle = 0;
if (OS.GTK_VERSION >= OS.VERSION (3, 4, 0)) {
  handle = OS.gtk_color_chooser_dialog_new (buffer, parent.topHandle ());
} else {
  handle = OS.gtk_color_selection_dialog_new (buffer);
if (OS.GTK_VERSION <= OS.VERSION (3, 4, 0)) {
  if (parent != null) {
    long /*int*/ shellHandle = parent.topHandle ();
    OS.gtk_window_set_transient_for (handle, shellHandle);
    long /*int*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);

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

OS.GTK_FILE_CHOOSER_ACTION_SAVE :
  OS.GTK_FILE_CHOOSER_ACTION_OPEN;
int /*long*/ shellHandle = parent.topHandle ();
Display display = parent != null ? parent.getDisplay (): Display.getCurrent ();
if (display.getDismissalAlignment() == SWT.RIGHT) {

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

handle = gtk_font_chooser_dialog_new (titleBytes);
if (parent!=null) {
  int /*long*/ shellHandle = parent.topHandle ();
  OS.gtk_window_set_transient_for(handle, shellHandle);
  int /*long*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);

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

handle = gtk_font_chooser_dialog_new (titleBytes);
if (parent!=null) {
  int /*long*/ shellHandle = parent.topHandle ();
  OS.gtk_window_set_transient_for(handle, shellHandle);
  int /*long*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);

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

handle = gtk_font_chooser_dialog_new (titleBytes);
if (parent!=null) {
  long /*int*/ shellHandle = parent.topHandle ();
  OS.gtk_window_set_transient_for(handle, shellHandle);
  long /*int*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);

相关文章

微信公众号

最新文章

更多

Shell类方法