Lines Matching defs:event
52 /** Checks whether Shift was held when the event was generated. */
54 inline bool held_shift(E const &event) {
55 return state_held_shift(event.state);
58 /** Checks whether Control was held when the event was generated. */
60 inline bool held_control(E const &event) {
61 return state_held_control(event.state);
64 /** Checks whether Alt was held when the event was generated. */
66 inline bool held_alt(E const &event) {
67 return state_held_alt(event.state);
70 /** True if from the set of Ctrl, Shift and Alt only Ctrl was held when the event
73 inline bool held_only_control(E const &event) {
74 return state_held_only_control(event.state);
77 /** True if from the set of Ctrl, Shift and Alt only Shift was held when the event
80 inline bool held_only_shift(E const &event) {
81 return state_held_only_shift(event.state);
84 /** True if from the set of Ctrl, Shift and Alt only Alt was held when the event
87 inline bool held_only_alt(E const &event) {
88 return state_held_only_alt(event.state);
92 inline bool held_no_modifiers(E const &event) {
93 return state_held_no_modifiers(event.state);
97 inline bool held_any_modifiers(E const &event) {
98 return state_held_any_modifiers(event.state);
102 inline Geom::Point event_point(E const &event) {
103 return Geom::Point(event.x, event.y);
107 * @code if (held_button<2>(event->motion)) { ... @endcode */
109 inline bool held_button(E const &event) {
110 return state_held_button<button>(event.state);
113 guint shortcut_key(GdkEventKey const &event);
115 unsigned combine_motion_events(SPCanvas *canvas, GdkEventMotion &event, gint mask);
116 unsigned state_after_event(GdkEvent *event);