girara
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
callbacks.h
Go to the documentation of this file.
1 /* See LICENSE file for license and copyright information */
2 
3 #ifndef GIRARA_CALLBACKS_H
4 #define GIRARA_CALLBACKS_H
5 
6 #include "types.h"
7 #include <gtk/gtk.h>
8 
17 typedef bool (*girara_callback_inputbar_key_press_event_t)(GtkWidget* widget,
18  GdkEventKey* event, void* data);
19 
27 typedef bool (*girara_callback_inputbar_activate_t)(GtkEntry* entry,
28  void* data);
29 
39 bool girara_callback_view_key_press_event(GtkWidget* widget, GdkEventKey* event,
40  girara_session_t* session);
41 
51 bool girara_callback_view_button_press_event(GtkWidget* widget,
52  GdkEventButton* button, girara_session_t* session);
53 
63 bool girara_callback_view_button_release_event(GtkWidget* widget,
64  GdkEventButton* button, girara_session_t* session);
65 
76  GdkEventMotion* button, girara_session_t* session);
77 
87 bool girara_callback_view_scroll_event(GtkWidget* widget, GdkEventScroll* event,
88  girara_session_t* session);
89 
98 bool girara_callback_inputbar_activate(GtkEntry* entry,
99  girara_session_t* session);
100 
110 bool girara_callback_inputbar_key_press_event(GtkWidget* widget,
111  GdkEventKey* event, girara_session_t* session);
112 
121 bool girara_callback_inputbar_changed_event(GtkEditable* widget,
122  girara_session_t* session);
123 
124 #endif