11
13
* This program is distributed in the hope that it will be useful,
12
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
16
* GNU General Public License for more details.
16
18
* You should have received a copy of the GNU General Public License
18
20
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
unsigned long red_shift;
23
unsigned long green_shift;
24
unsigned long blue_shift;
25
unsigned long alpha_shift;
27
unsigned long max_val;
28
unsigned long bit_depth;
30
unsigned long red_max_val;
31
unsigned long green_max_val;
32
unsigned long blue_max_val;
33
unsigned long alpha_max_val;
35
unsigned long red_bit_depth;
36
unsigned long green_bit_depth;
37
unsigned long blue_bit_depth;
38
unsigned long alpha_bit_depth;
40
unsigned long alpha_mask;
27
* \brief struct to contain various color properties, like masks, depths,
32
unsigned long red_shift;
33
unsigned long green_shift;
34
unsigned long blue_shift;
35
unsigned long alpha_shift;
37
unsigned long max_val;
38
unsigned long bit_depth;
40
unsigned long red_max_val;
41
unsigned long green_max_val;
42
unsigned long blue_max_val;
43
unsigned long alpha_max_val;
45
unsigned long red_bit_depth;
46
unsigned long green_bit_depth;
47
unsigned long blue_bit_depth;
48
unsigned long alpha_bit_depth;
43
void GetColorInfo (XImage *image, ColorInfo *return_struct);
44
int GetColors (Display *dpy, XWindowAttributes *winfo, XColor **colors);
53
ColorInfo *xvc_get_color_info (XImage * image);
54
int xvc_get_colors (Display * dpy, XWindowAttributes * winfo, XColor ** colors);
56
#endif // __COLORS_H__