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

x33g5p2x  于2022-01-18 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(179)

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

Composite.gtk_key_press_event介绍

暂无

代码示例

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

@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ eventPtr) {
  if (!hasFocus ()) return 0;
  int /*long*/ result = super.gtk_key_press_event (widget, eventPtr);
  return result;
}

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

@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ eventPtr) {
  if (!hasFocus ()) return 0;
  int /*long*/ result = super.gtk_key_press_event (widget, eventPtr);
  return result;
}

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

@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
  int /*long*/ result = super.gtk_key_press_event (widget, event);
  if (result != 0) fixIM ();
  if (gdkEventKey == -1) result = 1;
  gdkEventKey = 0;
  return result;
}

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

@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
  int /*long*/ result = super.gtk_key_press_event (widget, event);
  if (result != 0) fixIM ();
  if (gdkEventKey == -1) result = 1;
  gdkEventKey = 0;
  return result;
}

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

@Override
long /*int*/ gtk_key_press_event (long /*int*/ widget, long /*int*/ eventPtr) {
  if (!hasFocus ()) return 0;
  long /*int*/ result = super.gtk_key_press_event (widget, eventPtr);
  return result;
}

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

@Override
long /*int*/ gtk_key_press_event (long /*int*/ widget, long /*int*/ event) {
  long /*int*/ result = super.gtk_key_press_event (widget, event);
  if (result != 0) fixIM ();
  if (gdkEventKey == -1) result = 1;
  gdkEventKey = 0;
  return result;
}

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

@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
  GdkEventKey keyEvent = new GdkEventKey ();
  OS.memmove (keyEvent, event, GdkEventKey.sizeof);
  int key = keyEvent.keyval;
  keyPressDefaultSelectionHandler (event, key);
  return super.gtk_key_press_event (widget, event);
}

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

@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
  GdkEventKey keyEvent = new GdkEventKey ();
  OS.memmove (keyEvent, event, GdkEventKey.sizeof);
  int key = keyEvent.keyval;
  keyPressDefaultSelectionHandler (event, key);
  return super.gtk_key_press_event (widget, event);
}

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

@Override
long /*int*/ gtk_key_press_event (long /*int*/ widget, long /*int*/ event) {
  GdkEventKey keyEvent = new GdkEventKey ();
  OS.memmove (keyEvent, event, GdkEventKey.sizeof);
  int key = keyEvent.keyval;
  keyPressDefaultSelectionHandler (event, key);
  return super.gtk_key_press_event (widget, event);
}

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

@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
  GdkEventKey keyEvent = new GdkEventKey ();
  OS.memmove (keyEvent, event, GdkEventKey.sizeof);
  int key = keyEvent.keyval;
  keyPressDefaultSelectionHandler (event, key);
  return super.gtk_key_press_event (widget, event);
}

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

@Override
long /*int*/ gtk_key_press_event (long /*int*/ widget, long /*int*/ event) {
  GdkEventKey keyEvent = new GdkEventKey ();
  OS.memmove (keyEvent, event, GdkEventKey.sizeof);
  int key = keyEvent.keyval;
  keyPressDefaultSelectionHandler (event, key);
  return super.gtk_key_press_event (widget, event);
}

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

@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
  GdkEventKey keyEvent = new GdkEventKey ();
  OS.memmove (keyEvent, event, GdkEventKey.sizeof);
  int key = keyEvent.keyval;
  keyPressDefaultSelectionHandler (event, key);
  return super.gtk_key_press_event (widget, event);
}

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

@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
  if (!hasFocus ()) return 0;
  int /*long*/ result = super.gtk_key_press_event (widget, event);
  if (result != 0) return result;
  int index = 0;
  while (index < itemCount) {
    if (items [index].hasFocus ()) break;
    index++;
  }
  GdkEventKey gdkEvent = new GdkEventKey ();
  OS.memmove (gdkEvent, event, GdkEventKey.sizeof);
  boolean next = false;
  switch (gdkEvent.keyval) {
    case OS.GDK_Up:
    case OS.GDK_Left: next = false; break;
    case OS.GDK_Down:
    case OS.GDK_Right: next = true; break;
    default: return result;
  }
  int start = index, offset = next ? 1 : -1;
  while ((index = (index + offset + itemCount) % itemCount) != start) {
    ExpandItem item = items [index];
    if (item.setFocus ()) return result;
  }
  return result;
}

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

@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
  if (!hasFocus ()) return 0;
  int /*long*/ result = super.gtk_key_press_event (widget, event);
  if (result != 0) return result;
  int index = 0;
  while (index < itemCount) {
    if (items [index].hasFocus ()) break;
    index++;
  }
  GdkEventKey gdkEvent = new GdkEventKey ();
  OS.memmove (gdkEvent, event, GdkEventKey.sizeof);
  boolean next = false;
  switch (gdkEvent.keyval) {
    case OS.GDK_Up:
    case OS.GDK_Left: next = false; break;
    case OS.GDK_Down:
    case OS.GDK_Right: next = true; break;
    default: return result;
  }
  int start = index, offset = next ? 1 : -1;
  while ((index = (index + offset + itemCount) % itemCount) != start) {
    ExpandItem item = items [index];
    if (item.setFocus ()) return result;
  }
  return result;
}

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

@Override
long /*int*/ gtk_key_press_event (long /*int*/ widget, long /*int*/ event) {
  if (!hasFocus ()) return 0;
  long /*int*/ result = super.gtk_key_press_event (widget, event);
  if (result != 0) return result;
  int index = 0;
  while (index < itemCount) {
    if (items [index].hasFocus ()) break;
    index++;
  }
  GdkEventKey gdkEvent = new GdkEventKey ();
  OS.memmove (gdkEvent, event, GdkEventKey.sizeof);
  boolean next = false;
  switch (gdkEvent.keyval) {
    case OS.GDK_Up:
    case OS.GDK_Left: next = false; break;
    case OS.GDK_Down:
    case OS.GDK_Right: next = true; break;
    default: return result;
  }
  int start = index, offset = next ? 1 : -1;
  while ((index = (index + offset + itemCount) % itemCount) != start) {
    ExpandItem item = items [index];
    if (item.setFocus ()) return result;
  }
  return result;
}

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

@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
  int /*long*/ result = super.gtk_key_press_event (widget, event);
  if (result != 0) {
    gdkEventKey = 0;

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

@Override
long /*int*/ gtk_key_press_event (long /*int*/ widget, long /*int*/ event) {
  long /*int*/ result = super.gtk_key_press_event (widget, event);
  if (result != 0) {
    gdkEventKey = 0;

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

@Override
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
  int /*long*/ result = super.gtk_key_press_event (widget, event);
  if (result != 0) {
    gdkEventKey = 0;

相关文章

Composite类方法