summaryrefslogtreecommitdiffstats
path: root/image.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-21 12:57:35 +0100
committerBert <ber.t@gmx.com>2011-01-21 12:57:35 +0100
commitc7860b690b687492f90202e77d575f5855f04433 (patch)
tree9a80ff127810907c978fe06a283b7dd7495cb4ec /image.h
parent629d37376d1c9b175a525e8c30f8d468996a3bd6 (diff)
downloadnsxiv-c7860b690b687492f90202e77d575f5855f04433.tar.zst
Stricter object encapsulation
Diffstat (limited to 'image.h')
-rw-r--r--image.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/image.h b/image.h
index 091e834..7a20bd8 100644
--- a/image.h
+++ b/image.h
@@ -21,15 +21,14 @@
#include "window.h"
-typedef enum scalemode_e {
+enum scalemode {
SCALE_DOWN = 0,
SCALE_FIT,
SCALE_ZOOM
-} scalemode_t;
+};
typedef struct img_s {
float zoom;
- scalemode_t scalemode;
unsigned char re;
int x;
int y;
@@ -37,8 +36,8 @@ typedef struct img_s {
int h;
} img_t;
-void imlib_init(win_t*);
-void imlib_destroy();
+void img_init(img_t*, win_t*);
+void img_free(img_t*);
int img_load(img_t*, const char*);
void img_render(img_t*, win_t*);