File: puticon.h

package info (click to toggle)
superkb 0.23-5
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 492 kB
  • sloc: ansic: 3,915; sh: 187; makefile: 182
file content (37 lines) | stat: -rw-r--r-- 1,012 bytes parent folder | download | duplicates (2)
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
/*
 * puticon.h
 *
 * Copyright (C) 2006, Octavio Alvarez Piza.
 * License: GNU General Public License v2.
 *
 * This header should be included by all implementation providers of puticon
 * in order to comply and interoperate with the needed by imagelib.
 *
 */

#ifndef __PUTICON_H
#define __PUTICON_H

#include <X11/Xlib.h>

typedef struct {
	void *original;
	void *scaled;
} imagelib_image_t;

typedef imagelib_image_t * (*imagelib_newimage_t)();
typedef int  (*imagelib_loadimage_t)(imagelib_image_t *this, const char *file);
typedef int  (*imagelib_resizeimage_t)(imagelib_image_t *this, int width, int height);
typedef void (*imagelib_drawimage_t)(imagelib_image_t *this, Drawable w, int left, int top);
typedef void (*imagelib_freeimage_t)(imagelib_image_t *this);


typedef int  (*imagelib_init_t)(Display *dpy,
	imagelib_newimage_t *ret_init,
	imagelib_loadimage_t *ret_load,
	imagelib_resizeimage_t *ret_resize,
	imagelib_drawimage_t *ret_draw,
	imagelib_freeimage_t *free);


#endif /* __PUTICON_H */