File: appImage.h

package info (click to toggle)
ted 2.6-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 7,928 kB
  • ctags: 8,734
  • sloc: ansic: 71,878; makefile: 2,363; sh: 159
file content (71 lines) | stat: -rw-r--r-- 1,834 bytes parent folder | download
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
#   ifndef	APP_IMAGE_H
#   define	APP_IMAGE_H

#   include	<bitmap.h>
#   include	<X11/Xlib.h>
#   include	<X11/Intrinsic.h>

#   include	<appColor.h>
#   include	<appFrame.h>

/************************************************************************/
/*									*/
/*  Used to store and manage a bitmap image.				*/
/*									*/
/************************************************************************/

typedef struct AppBitmapImage
    {
    BitmapDescription	abiBitmap;
    unsigned char *	abiBuffer;
    int			abiFormat;
    double		abiFactor;
    } AppBitmapImage;

/************************************************************************/
/*									*/
/*  Routine declarations.						*/
/*									*/
/************************************************************************/

extern int appImgMakeImage(	Display *		dis,
				int			screen,
				XImage **		pPimage,
				int			toWide,
				int			toHigh,
				AppColors *		ac,
				AppBitmapImage *	abi );

extern int appImgMakePixmap(	Display *			dis,
				int				screen,
				Window				win,
				GC				gc,
				Pixmap *			pPixmap,
				int				toWide,
				int				toHigh,
				AppColors *			ac,
				AppBitmapImage *		abi );

extern void appCleanBitmapImage(	AppBitmapImage *	abi );

extern void appInitBitmapImage( AppBitmapImage * abi );

extern int appImgMakeFileExtensions(	AppFileExtension **	pAfeList,
					int *			pAfeCount );

extern int appImgPastePixmap(		AppBitmapImage *	abi,
					double			pixelsPerTwip,
					Display *		display,
					Window			win,
					XSelectionEvent *	selEvent );

extern int appImgGetXvClipboard(	BitmapDescription *	bd,
					unsigned char **	pBuffer,
					Display *		display,
					int			screen );

extern int appImgPutXvClipboard(	const BitmapDescription *	bd,
					const unsigned char *		buffer,
					Display *			display,
					int				screen );
#   endif