dockapps/cnslock/include/cnslock.h
Doug Torrance 431faf8097 cnslock: Add version 1.02 to repository.
From
http://www.gnu-darwin.org/distfiles/cnslock-1.02.tar.gz
(Note that this file is not really gzipped, just use "tar -xf".)
2016-12-27 20:51:47 +00:00

36 lines
815 B
C

#ifndef CNSLOCK_H_
#define CNSLOCK_H_
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#include "defines.h"
/* this is the max size of the RGB buffer: 56 * 56 * 3
* used for memcpy, memset, etc operations */
#define RGBSIZE (XMAX * YMAX * 3)
/* main dockapp info structure. windows, buffers, etc */
typedef struct {
Display *display; /* X11 display */
GdkWindow *win; /* main window */
GdkWindow *iconwin; /* icon window */
GdkGC *gc; /* drawing GC */
GdkPixmap *pixmap; /* main dockapp pixmap */
GdkBitmap *mask; /* dockapp mask */
/* main image buffer */
unsigned char rgb[RGBSIZE];
/* back buffer - stores things we dont want to redraw all the time */
unsigned char bgr[RGBSIZE];
} AppletData;
extern AppletData ad;
extern int posx;
extern int posy;
#endif