about summary refs log tree commit diff
path: root/other/pamx/window.h
blob: 2efc54b5602fbf9cfc2e7677b3b12e943d912a65 (plain) (blame)
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
#ifndef WINDOW_H_INCLUDED
#define WINDOW_H_INCLUDED

#include <X11/Xlib.h>

#include "pm_c_util.h"

struct Image;
struct viewer;
typedef struct viewer viewer;

int
visualClassFromName(const char * const name);

void
createViewer(viewer **     const viewerPP,
             Display *     const dispP,
             int           const scrn,
             const char *  const geometryString,
             bool          const fullscreen);

void
destroyViewer(viewer * const viewerP);

void
displayInViewer(viewer *       const viewerP,
                struct Image * const imageP,
                bool           const install,
                bool           const userWantsPrivateCmap,
                bool           const fit,
                bool           const userWantsPixmap,
                bool           const visualSpec,
                unsigned int   const visualClass,
                const char *   const title,
                bool           const verbose,
                int *          const retvalP);

#endif