Back to index

kdeartwork  4.3.2
xs_visual.h
Go to the documentation of this file.
00001 /* xscreensaver, Copyright (c) 1993-1998 by Jamie Zawinski <jwz@jwz.org>
00002  *
00003  * Permission to use, copy, modify, distribute, and sell this software and its
00004  * documentation for any purpose is hereby granted without fee, provided that
00005  * the above copyright notice appear in all copies and that both that
00006  * copyright notice and this permission notice appear in supporting
00007  * documentation.  No representations are made about the suitability of this
00008  * software for any purpose.  It is provided "as is" without express or 
00009  * implied warranty.
00010  */
00011 
00012 #ifndef __VISUAL_H__
00013 #define __VISUAL_H__
00014 
00015 extern Visual *get_visual (Screen *, const char *name, Bool, Bool);
00016 extern Visual *get_visual_resource (Screen *, char *, char *, Bool);
00017 extern int visual_depth (Screen *, Visual *);
00018 /* extern int visual_pixmap_depth (Screen *, Visual *); */
00019 extern int visual_class (Screen *, Visual *);
00020 extern int visual_cells (Screen *, Visual *);
00021 extern int screen_number (Screen *);
00022 extern Visual *find_similar_visual (Screen *, Visual *old);
00023 extern void describe_visual (FILE *f, Screen *, Visual *, Bool private_cmap_p);
00024 extern Visual *get_overlay_visual (Screen *, unsigned long *pixel_return);
00025 extern Bool has_writable_cells (Screen *screen, Visual *visual);
00026 
00027 #endif /* __VISUAL_H__ */