1 /* GTK - The GIMP Toolkit 2 * Copyright (C) 2012, One Laptop Per Child. 3 * Copyright (C) 2014, Red Hat, Inc. 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * Author(s): Carlos Garnacho <carlosg@gnome.org> 19 */ 20 #ifndef __GTK_EVENT_CONTROLLER_PRIVATE_H__ 21 #define __GTK_EVENT_CONTROLLER_PRIVATE_H__ 22 23 #include "gtkeventcontroller.h" 24 25 struct _GtkEventController 26 { 27 GObject parent_instance; 28 }; 29 30 struct _GtkEventControllerClass 31 { 32 GObjectClass parent_class; 33 34 gboolean (* handle_event) (GtkEventController *controller, 35 const GdkEvent *event); 36 void (* reset) (GtkEventController *controller); 37 38 /*<private>*/ 39 40 /* Tells whether the event is filtered out, %TRUE makes 41 * the event unseen by the handle_event vfunc. 42 */ 43 gboolean (* filter_event) (GtkEventController *controller, 44 const GdkEvent *event); 45 gpointer padding[10]; 46 }; 47 48 void gtk_event_controller_set_event_mask (GtkEventController *controller, 49 GdkEventMask event_mask); 50 GdkEventMask gtk_event_controller_get_event_mask (GtkEventController *controller); 51 52 #endif /* __GTK_EVENT_CONTROLLER_PRIVATE_H__ */ 53