File: pps-view.blp

package info (click to toggle)
papers 49.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,332 kB
  • sloc: ansic: 37,722; sh: 197; xml: 127; makefile: 112
file content (82 lines) | stat: -rw-r--r-- 1,752 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
using Gtk 4.0;

template $PpsView: Widget {
  styles [
    "content-view",
  ]

  has-tooltip: true;
  can-focus: true;
  focusable: true;
  notify::scale-factor => $notify_scale_factor_cb();

  GestureClick {
    button: 0;
    exclusive: true;
    pressed => $pps_view_button_press_event();
    released => $pps_view_button_release_event();
  }

  EventControllerMotion {
    motion => $pps_view_motion_notify_event();
  }

  EventControllerScroll {
    flags: vertical;
    scroll => $scroll_to_zoom_cb();
  }

  EventControllerFocus {
    enter => $pps_view_focus_in();
    leave => $pps_view_focus_out();
  }

  GestureZoom {
    propagation-phase: capture;
    begin => $zoom_gesture_begin_cb();
    scale-changed => $zoom_gesture_scale_changed_cb();
  }

  GestureDrag {
    button: 1;
    propagation-phase: bubble;
    exclusive: true;
    drag-begin => $selection_begin_cb();
    drag-end => $selection_end_cb();
    drag-update => $selection_update_cb();
  }

  GestureDrag middle_clicked_drag_gesture {
    button: 2;
    exclusive: true;
    drag-begin => $middle_clicked_drag_begin_cb();
    drag-update => $middle_clicked_drag_update_cb();
  }

  GestureDrag signing_drag_gesture {
    button: 1;
    propagation-phase: none;
    exclusive: true;
    drag-begin => $signing_begin_cb();
    drag-end => $signing_end_cb();
    drag-update => $signing_update_cb();
  }

  GestureSwipe middle_clicked_drag_swipe_gesture {
    button: 2;
    exclusive: true;
    swipe => $middle_clicked_end_swipe_cb();
  }

  GestureSwipe {
    propagation-phase: capture;
    touch-only: true;
    swipe => $page_swipe_cb();
  }

  GestureLongPress {
    touch-only: true;
    exclusive: true;
    pressed => $context_longpress_gesture_pressed_cb();
  }
}