1 /* libnotes.h generated by valac 0.48.6, the Vala compiler, do not modify */
2 
3 #ifndef __LIBNOTES_H__
4 #define __LIBNOTES_H__
5 
6 #include <gtk/gtk.h>
7 #include <glib-object.h>
8 #include <cairo-gobject.h>
9 #include <glib.h>
10 #include <gio/gio.h>
11 #include <stdlib.h>
12 #include <string.h>
13 #include <gdk/gdk.h>
14 
15 G_BEGIN_DECLS
16 
17 #define XNP_TYPE_ICON_BUTTON (xnp_icon_button_get_type ())
18 #define XNP_ICON_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XNP_TYPE_ICON_BUTTON, XnpIconButton))
19 #define XNP_ICON_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XNP_TYPE_ICON_BUTTON, XnpIconButtonClass))
20 #define XNP_IS_ICON_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XNP_TYPE_ICON_BUTTON))
21 #define XNP_IS_ICON_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XNP_TYPE_ICON_BUTTON))
22 #define XNP_ICON_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XNP_TYPE_ICON_BUTTON, XnpIconButtonClass))
23 
24 typedef struct _XnpIconButton XnpIconButton;
25 typedef struct _XnpIconButtonClass XnpIconButtonClass;
26 typedef struct _XnpIconButtonPrivate XnpIconButtonPrivate;
27 typedef enum  {
28 	XNP_TITLE_BAR_BUTTON_TYPE_EMPTY,
29 	XNP_TITLE_BAR_BUTTON_TYPE_CLOSE,
30 	XNP_TITLE_BAR_BUTTON_TYPE_LEFT_ARROW,
31 	XNP_TITLE_BAR_BUTTON_TYPE_RIGHT_ARROW,
32 	XNP_TITLE_BAR_BUTTON_TYPE_REFRESH
33 } XnpTitleBarButtonType;
34 
35 #define XNP_TYPE_TITLE_BAR_BUTTON_TYPE (xnp_title_bar_button_type_get_type ())
36 
37 #define XNP_TYPE_TITLE_BAR_BUTTON (xnp_title_bar_button_get_type ())
38 #define XNP_TITLE_BAR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XNP_TYPE_TITLE_BAR_BUTTON, XnpTitleBarButton))
39 #define XNP_TITLE_BAR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XNP_TYPE_TITLE_BAR_BUTTON, XnpTitleBarButtonClass))
40 #define XNP_IS_TITLE_BAR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XNP_TYPE_TITLE_BAR_BUTTON))
41 #define XNP_IS_TITLE_BAR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XNP_TYPE_TITLE_BAR_BUTTON))
42 #define XNP_TITLE_BAR_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XNP_TYPE_TITLE_BAR_BUTTON, XnpTitleBarButtonClass))
43 
44 typedef struct _XnpTitleBarButton XnpTitleBarButton;
45 typedef struct _XnpTitleBarButtonClass XnpTitleBarButtonClass;
46 typedef struct _XnpTitleBarButtonPrivate XnpTitleBarButtonPrivate;
47 
48 #define XNP_TYPE_WINDOW_MONITOR (xnp_window_monitor_get_type ())
49 #define XNP_WINDOW_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XNP_TYPE_WINDOW_MONITOR, XnpWindowMonitor))
50 #define XNP_WINDOW_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XNP_TYPE_WINDOW_MONITOR, XnpWindowMonitorClass))
51 #define XNP_IS_WINDOW_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XNP_TYPE_WINDOW_MONITOR))
52 #define XNP_IS_WINDOW_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XNP_TYPE_WINDOW_MONITOR))
53 #define XNP_WINDOW_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XNP_TYPE_WINDOW_MONITOR, XnpWindowMonitorClass))
54 
55 typedef struct _XnpWindowMonitor XnpWindowMonitor;
56 typedef struct _XnpWindowMonitorClass XnpWindowMonitorClass;
57 typedef struct _XnpWindowMonitorPrivate XnpWindowMonitorPrivate;
58 
59 #define XNP_TYPE_WINDOW (xnp_window_get_type ())
60 #define XNP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XNP_TYPE_WINDOW, XnpWindow))
61 #define XNP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XNP_TYPE_WINDOW, XnpWindowClass))
62 #define XNP_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XNP_TYPE_WINDOW))
63 #define XNP_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XNP_TYPE_WINDOW))
64 #define XNP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XNP_TYPE_WINDOW, XnpWindowClass))
65 
66 typedef struct _XnpWindow XnpWindow;
67 typedef struct _XnpWindowClass XnpWindowClass;
68 
69 #define XNP_TYPE_APPLICATION (xnp_application_get_type ())
70 #define XNP_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XNP_TYPE_APPLICATION, XnpApplication))
71 #define XNP_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XNP_TYPE_APPLICATION, XnpApplicationClass))
72 #define XNP_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XNP_TYPE_APPLICATION))
73 #define XNP_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XNP_TYPE_APPLICATION))
74 #define XNP_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XNP_TYPE_APPLICATION, XnpApplicationClass))
75 
76 typedef struct _XnpApplication XnpApplication;
77 typedef struct _XnpApplicationClass XnpApplicationClass;
78 typedef struct _XnpApplicationPrivate XnpApplicationPrivate;
79 
80 #define XNP_TYPE_HYPERTEXT_VIEW (xnp_hypertext_view_get_type ())
81 #define XNP_HYPERTEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XNP_TYPE_HYPERTEXT_VIEW, XnpHypertextView))
82 #define XNP_HYPERTEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XNP_TYPE_HYPERTEXT_VIEW, XnpHypertextViewClass))
83 #define XNP_IS_HYPERTEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XNP_TYPE_HYPERTEXT_VIEW))
84 #define XNP_IS_HYPERTEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XNP_TYPE_HYPERTEXT_VIEW))
85 #define XNP_HYPERTEXT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XNP_TYPE_HYPERTEXT_VIEW, XnpHypertextViewClass))
86 
87 typedef struct _XnpHypertextView XnpHypertextView;
88 typedef struct _XnpHypertextViewClass XnpHypertextViewClass;
89 typedef struct _XnpHypertextViewPrivate XnpHypertextViewPrivate;
90 
91 #define XNP_TYPE_NOTE (xnp_note_get_type ())
92 #define XNP_NOTE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XNP_TYPE_NOTE, XnpNote))
93 #define XNP_NOTE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XNP_TYPE_NOTE, XnpNoteClass))
94 #define XNP_IS_NOTE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XNP_TYPE_NOTE))
95 #define XNP_IS_NOTE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XNP_TYPE_NOTE))
96 #define XNP_NOTE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XNP_TYPE_NOTE, XnpNoteClass))
97 
98 typedef struct _XnpNote XnpNote;
99 typedef struct _XnpNoteClass XnpNoteClass;
100 typedef struct _XnpNotePrivate XnpNotePrivate;
101 typedef struct _XnpWindowPrivate XnpWindowPrivate;
102 
103 #define XNP_TYPE_THEME (xnp_theme_get_type ())
104 #define XNP_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XNP_TYPE_THEME, XnpTheme))
105 #define XNP_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XNP_TYPE_THEME, XnpThemeClass))
106 #define XNP_IS_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XNP_TYPE_THEME))
107 #define XNP_IS_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XNP_TYPE_THEME))
108 #define XNP_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XNP_TYPE_THEME, XnpThemeClass))
109 
110 typedef struct _XnpTheme XnpTheme;
111 typedef struct _XnpThemeClass XnpThemeClass;
112 typedef struct _XnpThemePrivate XnpThemePrivate;
113 
114 #define XNP_TYPE_THEME_GTKCSS (xnp_theme_gtkcss_get_type ())
115 #define XNP_THEME_GTKCSS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XNP_TYPE_THEME_GTKCSS, XnpThemeGtkcss))
116 #define XNP_THEME_GTKCSS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XNP_TYPE_THEME_GTKCSS, XnpThemeGtkcssClass))
117 #define XNP_IS_THEME_GTKCSS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XNP_TYPE_THEME_GTKCSS))
118 #define XNP_IS_THEME_GTKCSS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XNP_TYPE_THEME_GTKCSS))
119 #define XNP_THEME_GTKCSS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XNP_TYPE_THEME_GTKCSS, XnpThemeGtkcssClass))
120 
121 typedef struct _XnpThemeGtkcss XnpThemeGtkcss;
122 typedef struct _XnpThemeGtkcssClass XnpThemeGtkcssClass;
123 typedef struct _XnpThemeGtkcssPrivate XnpThemeGtkcssPrivate;
124 
125 struct _XnpIconButton {
126 	GtkEventBox parent_instance;
127 	XnpIconButtonPrivate * priv;
128 	gboolean active;
129 };
130 
131 struct _XnpIconButtonClass {
132 	GtkEventBoxClass parent_class;
133 	void (*draw_icon) (XnpIconButton* self, cairo_t* cr, gint width, gint height);
134 };
135 
136 struct _XnpTitleBarButton {
137 	XnpIconButton parent_instance;
138 	XnpTitleBarButtonPrivate * priv;
139 };
140 
141 struct _XnpTitleBarButtonClass {
142 	XnpIconButtonClass parent_class;
143 };
144 
145 struct _XnpWindowMonitor {
146 	GObject parent_instance;
147 	XnpWindowMonitorPrivate * priv;
148 	XnpWindow* window;
149 };
150 
151 struct _XnpWindowMonitorClass {
152 	GObjectClass parent_class;
153 };
154 
155 struct _XnpApplication {
156 	GObject parent_instance;
157 	XnpApplicationPrivate * priv;
158 };
159 
160 struct _XnpApplicationClass {
161 	GObjectClass parent_class;
162 };
163 
164 struct _XnpHypertextView {
165 	GtkTextView parent_instance;
166 	XnpHypertextViewPrivate * priv;
167 };
168 
169 struct _XnpHypertextViewClass {
170 	GtkTextViewClass parent_class;
171 };
172 
173 struct _XnpNote {
174 	GtkScrolledWindow parent_instance;
175 	XnpNotePrivate * priv;
176 	XnpHypertextView* text_view;
177 };
178 
179 struct _XnpNoteClass {
180 	GtkScrolledWindowClass parent_class;
181 };
182 
183 struct _XnpWindow {
184 	GtkWindow parent_instance;
185 	XnpWindowPrivate * priv;
186 };
187 
188 struct _XnpWindowClass {
189 	GtkWindowClass parent_class;
190 };
191 
192 struct _XnpTheme {
193 	GObject parent_instance;
194 	XnpThemePrivate * priv;
195 };
196 
197 struct _XnpThemeClass {
198 	GObjectClass parent_class;
199 };
200 
201 struct _XnpThemeGtkcss {
202 	GObject parent_instance;
203 	XnpThemeGtkcssPrivate * priv;
204 };
205 
206 struct _XnpThemeGtkcssClass {
207 	GObjectClass parent_class;
208 };
209 
210 GType xnp_icon_button_get_type (void) G_GNUC_CONST;
211 G_DEFINE_AUTOPTR_CLEANUP_FUNC (XnpIconButton, g_object_unref)
212 void xnp_icon_button_draw_icon (XnpIconButton* self,
213                                 cairo_t* cr,
214                                 gint width,
215                                 gint height);
216 void xnp_icon_button_set_widget_source_color (XnpIconButton* self,
217                                               cairo_t* cr);
218 XnpIconButton* xnp_icon_button_construct (GType object_type);
219 GType xnp_title_bar_button_type_get_type (void) G_GNUC_CONST;
220 GType xnp_title_bar_button_get_type (void) G_GNUC_CONST;
221 G_DEFINE_AUTOPTR_CLEANUP_FUNC (XnpTitleBarButton, g_object_unref)
222 XnpTitleBarButton* xnp_title_bar_button_new (XnpTitleBarButtonType icon_type);
223 XnpTitleBarButton* xnp_title_bar_button_construct (GType object_type,
224                                                    XnpTitleBarButtonType icon_type);
225 XnpTitleBarButtonType xnp_title_bar_button_get_icon_type (XnpTitleBarButton* self);
226 void xnp_title_bar_button_set_icon_type (XnpTitleBarButton* self,
227                                          XnpTitleBarButtonType value);
228 GType xnp_window_monitor_get_type (void) G_GNUC_CONST;
229 G_DEFINE_AUTOPTR_CLEANUP_FUNC (XnpWindowMonitor, g_object_unref)
230 GType xnp_window_get_type (void) G_GNUC_CONST;
231 G_DEFINE_AUTOPTR_CLEANUP_FUNC (XnpWindow, g_object_unref)
232 XnpWindowMonitor* xnp_window_monitor_new (XnpWindow* window,
233                                           GFile* file);
234 XnpWindowMonitor* xnp_window_monitor_construct (GType object_type,
235                                                 XnpWindow* window,
236                                                 GFile* file);
237 GType xnp_application_get_type (void) G_GNUC_CONST;
238 G_DEFINE_AUTOPTR_CLEANUP_FUNC (XnpApplication, g_object_unref)
239 XnpApplication* xnp_application_new (const gchar* config_file);
240 XnpApplication* xnp_application_construct (GType object_type,
241                                            const gchar* config_file);
242 XnpApplication* xnp_application_new_with_notes_path (const gchar* config_file,
243                                                      const gchar* notes_path);
244 XnpApplication* xnp_application_construct_with_notes_path (GType object_type,
245                                                            const gchar* config_file,
246                                                            const gchar* notes_path);
247 XnpWindow* xnp_application_create_window (XnpApplication* self,
248                                           const gchar* name);
249 void xnp_application_save_windows_configuration (XnpApplication* self);
250 void xnp_application_save_notes (XnpApplication* self);
251 void xnp_application_show_hide_notes (XnpApplication* self);
252 void xnp_application_open_settings_dialog (XnpApplication* self);
253 void xnp_application_open_about_dialog (XnpApplication* self);
254 GtkMenu* xnp_application_context_menu (XnpApplication* self);
255 const gchar* xnp_application_get_notes_path (XnpApplication* self);
256 void xnp_application_set_notes_path (XnpApplication* self,
257                                      const gchar* value);
258 const gchar* xnp_application_get_config_file (XnpApplication* self);
259 GType xnp_hypertext_view_get_type (void) G_GNUC_CONST;
260 G_DEFINE_AUTOPTR_CLEANUP_FUNC (XnpHypertextView, g_object_unref)
261 XnpHypertextView* xnp_hypertext_view_new (void);
262 XnpHypertextView* xnp_hypertext_view_construct (GType object_type);
263 void xnp_hypertext_view_undo (XnpHypertextView* self);
264 void xnp_hypertext_view_update_tags (XnpHypertextView* self);
265 const gchar* xnp_hypertext_view_get_font (XnpHypertextView* self);
266 void xnp_hypertext_view_set_font (XnpHypertextView* self,
267                                   const gchar* value);
268 GType xnp_note_get_type (void) G_GNUC_CONST;
269 G_DEFINE_AUTOPTR_CLEANUP_FUNC (XnpNote, g_object_unref)
270 XnpNote* xnp_note_new (const gchar* name);
271 XnpNote* xnp_note_construct (GType object_type,
272                              const gchar* name);
273 const gchar* xnp_note_get_name (XnpNote* self);
274 void xnp_note_set_name (XnpNote* self,
275                         const gchar* value);
276 gboolean xnp_note_get_dirty (XnpNote* self);
277 void xnp_note_set_dirty (XnpNote* self,
278                          gboolean value);
279 XnpWindow* xnp_window_new (void);
280 XnpWindow* xnp_window_construct (GType object_type);
281 void xnp_window_hide (XnpWindow* self);
282 void xnp_window_get_geometry (XnpWindow* self,
283                               gint* winx,
284                               gint* winy,
285                               gint* width,
286                               gint* height);
287 void xnp_window_set_window_list (XnpWindow* self,
288                                  GSList* list);
289 gint xnp_window_compare_func (XnpWindow* self,
290                               XnpWindow* win2);
291 gint xnp_window_get_current_page (XnpWindow* self);
292 void xnp_window_set_current_page (XnpWindow* self,
293                                   gint page);
294 XnpNote* xnp_window_insert_note (XnpWindow* self);
295 void xnp_window_move_note (XnpWindow* self,
296                            const gchar* note_name,
297                            gint page);
298 gchar** xnp_window_get_note_names (XnpWindow* self,
299                                    gint* result_length1);
300 void xnp_window_delete_current_note (XnpWindow* self);
301 void xnp_window_delete_note (XnpWindow* self,
302                              gint page);
303 void xnp_window_rename_current_note (XnpWindow* self);
304 void xnp_window_set_font (XnpWindow* self);
305 void xnp_window_save_notes (XnpWindow* self);
306 const gchar* xnp_window_get_name (XnpWindow* self);
307 void xnp_window_set_name (XnpWindow* self,
308                           const gchar* value);
309 gint xnp_window_get_n_pages (XnpWindow* self);
310 void xnp_window_set_n_pages (XnpWindow* self,
311                              gint value);
312 gboolean xnp_window_get_show_tabs (XnpWindow* self);
313 void xnp_window_set_show_tabs (XnpWindow* self,
314                                gboolean value);
315 gint xnp_window_get_tabs_position (XnpWindow* self);
316 void xnp_window_set_tabs_position (XnpWindow* self,
317                                    gint value);
318 gboolean xnp_window_get_above (XnpWindow* self);
319 void xnp_window_set_above (XnpWindow* self,
320                            gboolean value);
321 gboolean xnp_window_get_sticky (XnpWindow* self);
322 void xnp_window_set_sticky (XnpWindow* self,
323                             gboolean value);
324 gboolean xnp_window_get_show_refresh_button (XnpWindow* self);
325 void xnp_window_set_show_refresh_button (XnpWindow* self,
326                                          gboolean value);
327 GType xnp_theme_get_type (void) G_GNUC_CONST;
328 G_DEFINE_AUTOPTR_CLEANUP_FUNC (XnpTheme, g_object_unref)
329 void xnp_theme_set_background_color (const gchar* color);
330 XnpTheme* xnp_theme_new (void);
331 XnpTheme* xnp_theme_construct (GType object_type);
332 GType xnp_theme_gtkcss_get_type (void) G_GNUC_CONST;
333 G_DEFINE_AUTOPTR_CLEANUP_FUNC (XnpThemeGtkcss, g_object_unref)
334 gchar* xnp_theme_gtkcss_get_css_path (void);
335 void xnp_theme_gtkcss_update_css (GdkColor* color);
336 void xnp_theme_gtkcss_update_style_context (void);
337 XnpThemeGtkcss* xnp_theme_gtkcss_new (void);
338 XnpThemeGtkcss* xnp_theme_gtkcss_construct (GType object_type);
339 
340 G_END_DECLS
341 
342 #endif
343