aboutsummaryrefslogtreecommitdiff
path: root/thumbs.h
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2011-09-17 17:23:51 +0200
committerBert Münnich <ber.t@gmx.com>2011-09-17 17:23:51 +0200
commit515e41045198074cc1b015c6296f536edbfedff5 (patch)
tree01e37683299d7f614ff9680dbcb24722bbd8a096 /thumbs.h
parent82df0b34e96f2b9eec87a4c8e7a47ff86aedc580 (diff)
Use win_t member in img_t & tns_t instead of parameters
Diffstat (limited to 'thumbs.h')
-rw-r--r--thumbs.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/thumbs.h b/thumbs.h
index 92f5726..6471bec 100644
--- a/thumbs.h
+++ b/thumbs.h
@@ -26,39 +26,42 @@
#include "window.h"
typedef struct {
- Imlib_Image *im;
const fileinfo_t *file;
- int x;
- int y;
+ Imlib_Image *im;
int w;
int h;
+ int x;
+ int y;
} thumb_t;
typedef struct {
thumb_t *thumbs;
int cap;
int cnt;
+ int first;
+ int sel;
+
+ win_t *win;
int x;
int y;
int cols;
int rows;
- int first;
- int sel;
+
bool alpha;
bool dirty;
} tns_t;
void tns_clean_cache(tns_t*);
-void tns_init(tns_t*, int);
+void tns_init(tns_t*, int, win_t*);
void tns_free(tns_t*);
bool tns_load(tns_t*, int, const fileinfo_t*, bool, bool);
-void tns_render(tns_t*, win_t*);
-void tns_highlight(tns_t*, win_t*, int, bool);
+void tns_render(tns_t*);
+void tns_highlight(tns_t*, int, bool);
-bool tns_move_selection(tns_t*, win_t*, direction_t);
+bool tns_move_selection(tns_t*, direction_t);
bool tns_scroll(tns_t*, direction_t);
int tns_translate(tns_t*, int, int);