1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #ifndef __Aspect_WNTXWD_HXX
15 # define __Aspect_WNTXWD_HXX
17 #if !defined(_WIN32) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX)) && !defined(__ANDROID__)
18 # include <X11/XWDFile.h>
27 # define XWD_FILE_VERSION 7
36 # define DoRed ( 1 << 0 )
37 # define DoGreen ( 1 << 1 )
38 # define DoBlue ( 1 << 2 )
42 # define StaticColor 2
43 # define PseudoColor 3
45 # define DirectColor 5
47 typedef unsigned int CARD32;
49 typedef struct _xwd_file_header {
51 CARD32 header_size B32;
52 CARD32 file_version B32;
53 CARD32 pixmap_format B32;
54 CARD32 pixmap_depth B32;
55 CARD32 pixmap_width B32;
56 CARD32 pixmap_height B32;
58 CARD32 byte_order B32;
59 CARD32 bitmap_unit B32;
60 CARD32 bitmap_bit_order B32;
61 CARD32 bitmap_pad B32;
62 CARD32 bits_per_pixel B32;
63 CARD32 bytes_per_line B32;
64 CARD32 visual_class B32;
66 CARD32 green_mask B32;
68 CARD32 bits_per_rgb B32;
69 CARD32 colormap_entries B32;
71 CARD32 window_width B32;
72 CARD32 window_height B32;
75 CARD32 window_bdrwidth B32;
77 CARD32 header_end B32;
81 typedef struct _xcolor {
93 #endif /* __Aspect_WNTXWD_HXX */