-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpimply.h
73 lines (61 loc) · 1.35 KB
/
pimply.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* Pimply
* by wisd0me [email protected]
*/
#ifndef _PIMPLY_H
#define _PIMPLY_H
#include <gtk/gtk.h>
#define VERSION "0.2"
#define NAME "Pimply"
/* main window */
typedef struct pimply_window {
gboolean command_line;
gint screen_w;
gint screen_h;
GdkWindow *desktop;
gchar *title;
gchar *last_folder;
gint width;
gint height;
gint name_limit;
/* width n height of GtkImage widget */
gint gtk_img_width;
gint gtk_img_height;
gint gtk_preview_height;
gint gtk_preview_width;
GtkWidget *w;
GtkWidget *sw;
GtkWidget *tree;
GtkTreeModel *model;
GtkWidget *label;
GtkWidget *combo;
GtkWidget *vbox;
GtkWidget *hbox;
GtkWidget *quit_b;
GtkWidget *apply_b;
GtkWidget *about_b;
GtkWidget *add_b;
GtkWidget *remove_b;
} PimplyWindow;
typedef struct pimply_image {
gboolean opened;
gchar *file_name;
gchar *mode;
gint mode_n;
GdkGC *gc;
GdkDrawable draw;
GdkPixbuf *pb;
GdkPixmap *pm;
gint width;
gint height;
} PimplyImage;
typedef struct draw_params {
gint src_x, src_y;
gint dest_x, dest_y;
gint width, height;
} DrawParams;
PimplyImage *pimply_load_image(gchar *file_name);
void pimply_image_free(PimplyImage *image);
void pimply_set_background(PimplyImage *image);
gchar *truncate_file_name(gchar *name);
#endif