1 #ifndef DOCKAPP_IMLIB2_H
2 #define DOCKAPP_IMLIB2_H
15 #define DOCK_HEIGHT DOCK_WIDTH
19 Window normalwin
, iconwin
, rootwin
;
20 int iconwin_mapped
, normalwin_mapped
;
21 Window win
; /* either normalwin or iconwin */
25 Imlib_Image bg
, img
; /* background picture, and "work" picture */
26 unsigned x0
,y0
,w
,h
; /* pos & dimensions of the "work" area */
27 unsigned win_width
, win_height
; /* size of dockapps (DOCK_WIDTH x DOCK_HEIGHT) */
28 Atom atom_WM_DELETE_WINDOW
, atom_WM_PROTOCOLS
;
32 #define DOCKPREF_DISPLAY 1
33 #define DOCKPREF_GEOMETRY 2
35 char **argv
; int argc
; /* this should be always set */
36 int flags
; /* combination of DOCKPREF_xxx */
42 #define DOCKIMLIB2_VERSION "0.9.0"
45 DockImlib2
* dockimlib2_setup(int x0
, int y0
, int w
, int h
, DockImlib2Prefs
*p
);
47 DockImlib2
* dockimlib2_gkrellm_setup(int x0
, int y0
, int w
, int h
, DockImlib2Prefs
*p
, GdkDrawable
*gkdrawable
);
48 void dockimlib2_gkrellm_xinit(DockImlib2
*dock
, GdkDrawable
*gkdrawable
);
50 Imlib_Font
*load_font(char *prefname
, char **flist
);
52 void dockimlib2_reset_imlib(DockImlib2
*dock
);
54 void dockimlib2_render(DockImlib2
*dock
);
55 const char *dockimlib2_last_loaded_font();