girara
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
internal.h
Go to the documentation of this file.
1 /* See LICENSE file for license and copyright information */
2 
3 #ifndef GIRARA_INTERNAL_H
4 #define GIRARA_INTERNAL_H
5 
6 #include <glib.h>
7 #include <gtk/gtk.h>
8 
9 #include "types.h"
10 #include "macros.h"
11 
12 #define FORMAT_COMMAND "<b>%s</b>"
13 #define FORMAT_DESCRIPTION "<i>%s</i>"
14 
15 #define UNUSED(x) GIRARA_UNUSED(x)
16 #define HIDDEN GIRARA_HIDDEN
17 
18 #define LENGTH(x) (sizeof(x)/sizeof((x)[0]))
19 
25 HIDDEN void girara_setting_free(girara_setting_t* setting);
26 
27 HIDDEN void girara_config_handle_free(girara_config_handle_t* handle);
28 
29 HIDDEN void girara_shortcut_mapping_free(girara_shortcut_mapping_t* mapping);
30 
31 HIDDEN void girara_shortcut_free(girara_shortcut_t* shortcut);
32 
33 HIDDEN void girara_inputbar_shortcut_free(girara_inputbar_shortcut_t* shortcut);
34 
35 HIDDEN void girara_mode_string_free(girara_mode_string_t* mode);
36 
37 HIDDEN void girara_statusbar_item_free(girara_statusbar_item_t* statusbaritem);
38 
40  girara_argument_mapping_t* argument_mapping);
41 
43  girara_special_command_t* special_command);
44 
45 HIDDEN void girara_command_free(girara_command_t* command);
46 
47 HIDDEN void girara_mouse_event_free(girara_mouse_event_t* mouse_event);
48 
49 HIDDEN void girara_config_load_default(girara_session_t* session);
50 
51 HIDDEN void update_state_by_keyval(int *state, int keyval);
52 
59 HIDDEN girara_completion_t* girara_cc_set(girara_session_t* session,
60  const char* input);
61 
70 HIDDEN bool girara_cmd_map(girara_session_t* session,
71  girara_list_t* argument_list);
72 
81 HIDDEN bool girara_cmd_unmap(girara_session_t* session,
82  girara_list_t* argument_list);
83 
92 HIDDEN bool girara_cmd_quit(girara_session_t* session,
93  girara_list_t* argument_list);
94 
103 HIDDEN bool girara_cmd_set(girara_session_t* session,
104  girara_list_t* argument_list);
105 
113 HIDDEN bool girara_cmd_exec(girara_session_t* session,
114  girara_list_t* argument_list);
115 
126 HIDDEN bool girara_sc_feedkeys(girara_session_t* session, girara_argument_t* argument,
127  girara_event_t* event, unsigned int t);
128 
133 {
134  char* command;
135  char* abbr;
138  char* description;
139 };
140 
142 {
144  char* name;
145 };
146 
151 {
152  char* identifier;
154 };
155 
160 {
161  char* identifier;
162  int value;
163 };
164 
169 {
170  guint mask;
171  guint key;
175  girara_argument_t argument;
176 };
177 
182 {
183  guint mask;
184  guint key;
186  girara_argument_t argument;
187 };
188 
193 {
194  char identifier;
196  bool always;
197  girara_argument_t argument;
198 };
199 
204 {
205  guint mask;
206  guint button;
210  girara_argument_t argument;
211 };
212 
217 {
218  char* identifier;
220 };
221 
226 {
227  GtkWidget* box;
228  GtkLabel *text;
229 };
230 
235 {
239  girara_list_t* settings;
240 
241  struct
242  {
243  GtkWidget *overlay;
244  GtkBox *bottom_box;
245  } gtk;
246 };
247 
248 #endif