Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java
index 13e50f607d..85c7601e21 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java
@@ -90,6 +90,12 @@ public class GTK extends OS {
public static final int GTK_PRINT_DUPLEX_SIMPLEX = 0;
public static final int GTK_PRINT_DUPLEX_HORIZONTAL = 1;
public static final int GTK_PRINT_DUPLEX_VERTICAL = 2;
+ public static final int GTK_EVENT_CONTROLLER_SCROLL_NONE = 0;
+ public static final int GTK_EVENT_CONTROLLER_SCROLL_VERTICAL = 1;
+ public static final int GTK_EVENT_CONTROLLER_SCROLL_HORIZONTAL = 2;
+ public static final int GTK_EVENT_CONTROLLER_SCROLL_DISCRETE = 3;
+ public static final int GTK_EVENT_CONTROLLER_SCROLL_KINETIC = 4;
+ public static final int GTK_EVENT_CONTROLLER_SCROLL_BOTH_AXES = 5;
public static final int GTK_PHASE_NONE = 0;
public static final int GTK_PHASE_CAPTURE = 1;
public static final int GTK_PHASE_BUBBLE = 2;
@@ -2458,6 +2464,26 @@ public class GTK extends OS {
lock.unlock();
}
}
+ public static final native long /*int*/ _gtk_event_controller_motion_new();
+ /** [GTK4 only, if-def'd in os.h] */
+ public static final long /*int*/ gtk_event_controller_motion_new() {
+ lock.lock();
+ try {
+ return _gtk_event_controller_motion_new();
+ } finally {
+ lock.unlock();
+ }
+ }
+ public static final native long /*int*/ _gtk_event_controller_scroll_new(int flag);
+ /** [GTK4 only, if-def'd in os.h] */
+ public static final long /*int*/ gtk_event_controller_scroll_new(int flag) {
+ lock.lock();
+ try {
+ return _gtk_event_controller_scroll_new(flag);
+ } finally {
+ lock.unlock();
+ }
+ }
/**
* @param widget cast=(GtkWidget *)
* @param controller cast=(GtkEventController *)

Back to the top