Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libjni-gdal / include / jni_linux / jawt_md.h @ 5888

History | View | Annotate | Download (948 Bytes)

1
/*
2
 * @(#)jawt_md.h        1.10 03/01/23
3
 *
4
 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
5
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6
 */
7

    
8
#ifndef _JAVASOFT_JAWT_MD_H_
9
#define _JAVASOFT_JAWT_MD_H_
10

    
11
#include <X11/Xlib.h>
12
#include <X11/Xutil.h>
13
#include <X11/Intrinsic.h>
14
#include "jawt.h"
15

    
16
#ifdef __cplusplus
17
extern "C" {
18
#endif
19

    
20
/*
21
 * X11-specific declarations for AWT native interface.
22
 * See notes in jawt.h for an example of use.
23
 */
24
typedef struct jawt_X11DrawingSurfaceInfo {
25
    Drawable drawable;
26
    Display* display;
27
    VisualID visualID;
28
    Colormap colormapID;
29
    int depth;
30
    /*
31
     * Since 1.4
32
     * Returns a pixel value from a set of RGB values.
33
     * This is useful for paletted color (256 color) modes.
34
     */
35
    int (JNICALL *GetAWTColor)(JAWT_DrawingSurface* ds,
36
        int r, int g, int b);
37
} JAWT_X11DrawingSurfaceInfo;
38

    
39
#ifdef __cplusplus
40
}
41
#endif
42

    
43
#endif /* !_JAVASOFT_JAWT_MD_H_ */