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

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

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

Scrollable.hookEvents介绍

暂无

代码示例

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

@Override
void hookEvents () {
  super.hookEvents ();
  if ((state & CANVAS) != 0) {
    OS.gtk_widget_add_events (handle, OS.GDK_POINTER_MOTION_HINT_MASK);
    if (scrolledHandle != 0) {
      OS.g_signal_connect_closure (scrolledHandle, OS.scroll_child, display.getClosure (SCROLL_CHILD), false);
    }
  }
}

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

@Override
void hookEvents () {
  super.hookEvents ();
  if ((state & CANVAS) != 0) {
    OS.gtk_widget_add_events (handle, OS.GDK_POINTER_MOTION_HINT_MASK);
    if (scrolledHandle != 0) {
      OS.g_signal_connect_closure (scrolledHandle, OS.scroll_child, display.getClosure (SCROLL_CHILD), false);
    }
  }
}

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

@Override
void hookEvents () {
  super.hookEvents ();
  if ((state & CANVAS) != 0) {
    OS.gtk_widget_add_events (handle, OS.GDK_POINTER_MOTION_HINT_MASK);
    if (scrolledHandle != 0) {
      OS.g_signal_connect_closure (scrolledHandle, OS.scroll_child, display.getClosure (SCROLL_CHILD), false);
    }
  }
}

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

@Override
void hookEvents () {
  super.hookEvents();
  int /*long*/ selection = OS.gtk_tree_view_get_selection(handle);
  OS.g_signal_connect_closure (selection, OS.changed, display.getClosure (CHANGED), false);
  OS.g_signal_connect_closure (handle, OS.row_activated, display.getClosure (ROW_ACTIVATED), false);
}

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

@Override
void hookEvents () {
  super.hookEvents();
  int /*long*/ selection = OS.gtk_tree_view_get_selection(handle);
  OS.g_signal_connect_closure (selection, OS.changed, display.getClosure (CHANGED), false);
  OS.g_signal_connect_closure (handle, OS.row_activated, display.getClosure (ROW_ACTIVATED), false);
}

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

@Override
void hookEvents () {
  super.hookEvents();
  long /*int*/ selection = OS.gtk_tree_view_get_selection(handle);
  OS.g_signal_connect_closure (selection, OS.changed, display.getClosure (CHANGED), false);
  OS.g_signal_connect_closure (handle, OS.row_activated, display.getClosure (ROW_ACTIVATED), false);
}

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

@Override
void hookEvents () {
  super.hookEvents();
  if ((style & SWT.SINGLE) != 0) {
    OS.g_signal_connect_closure (handle, OS.changed, display.getClosure (CHANGED), true);

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

@Override
void hookEvents () {
  super.hookEvents();
  if ((style & SWT.SINGLE) != 0) {
    OS.g_signal_connect_closure (handle, OS.changed, display.getClosure (CHANGED), true);

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

@Override
void hookEvents () {
  super.hookEvents();
  if ((style & SWT.SINGLE) != 0) {
    OS.g_signal_connect_closure (handle, OS.changed, display.getClosure (CHANGED), true);

相关文章

Scrollable类方法