summaryrefslogtreecommitdiff
path: root/siv.h
diff options
context:
space:
mode:
Diffstat (limited to 'siv.h')
-rw-r--r--siv.h43
1 files changed, 36 insertions, 7 deletions
diff --git a/siv.h b/siv.h
index 80a9eb5..f842a5e 100644
--- a/siv.h
+++ b/siv.h
@@ -3,7 +3,6 @@
#include <gtk/gtk.h>
#include <glade/glade.h>
-#include "metadata.h"
#define APPLICATION_NAME "Simple Image Viewer"
#define PACKAGE_VERSION "0.0.1"
@@ -11,15 +10,45 @@
typedef struct Window Window;
typedef struct App App;
+typedef struct MetaData MetaData;
+typedef enum
+{
+ BG_FIRST,
+ BG_NONE = BG_FIRST,
+ BG_CHECKERBAORD,
+ BG_WHITE,
+ BG_LAST
+} BackgroundType;
+
+struct MetaData
+{
+ int window_x;
+ int window_y;
+ int window_width;
+ int window_height;
+ BackgroundType background;
+ gboolean smooth_image;
+ int zoom_level;
+};
/* App */
-void app_register_window (App *app,
- Window *window);
-void app_unregister_window (App *app,
- Window *window);
-MetaInfo *app_get_meta_info (App *app,
- const char *file);
+void app_register_window (App *app,
+ Window *window);
+void app_unregister_window (App *app,
+ Window *window);
+MetaData *app_get_meta_data (App *app,
+ const char *file);
+void app_set_meta_data (App *data,
+ const char *filename,
+ int window_x,
+ int window_y,
+ int window_height,
+ int window_width,
+ gboolean smooth_image,
+ BackgroundType background,
+ int zoom_level);
+
/* Window */
Window * window_new (App *app);