kwin Library API Documentation

dsimple.h

00001 /* $Xorg: dsimple.h,v 1.4 2001/02/09 02:05:54 xorgcvs Exp $ */
00002 /*
00003 
00004 Copyright 1993, 1998  The Open Group
00005 
00006 Permission to use, copy, modify, distribute, and sell this software and its
00007 documentation for any purpose is hereby granted without fee, provided that
00008 the above copyright notice appear in all copies and that both that
00009 copyright notice and this permission notice appear in supporting
00010 documentation.
00011 
00012 The above copyright notice and this permission notice shall be included
00013 in all copies or substantial portions of the Software.
00014 
00015 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00016 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00017 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00018 IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
00019 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
00020 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00021 OTHER DEALINGS IN THE SOFTWARE.
00022 
00023 Except as contained in this notice, the name of The Open Group shall
00024 not be used in advertising or otherwise to promote the sale, use or
00025 other dealings in this Software without prior written authorization
00026 from The Open Group.
00027 
00028 */
00029 /* $XFree86: xc/programs/xlsfonts/dsimple.h,v 1.7 2001/12/14 20:02:10 dawes Exp $ */
00030 
00031 /*
00032  * Just_display.h: This file contains the definitions needed to use the
00033  *                 functions in just_display.c.  It also declares the global
00034  *                 variables dpy, screen, and program_name which are needed to
00035  *                 use just_display.c.
00036  *
00037  * Written by Mark Lillibridge.   Last updated 7/1/87
00038  *
00039  * Send bugs, etc. to chariot@athena.mit.edu.
00040  */
00041 
00042     /* Global variables used by routines in just_display.c */
00043 
00044 extern char *program_name;                   /* Name of this program */
00045 extern Display *dpy;                         /* The current display */
00046 extern int screen;                           /* The current screen */
00047 
00048 #define INIT_NAME program_name=argv[0]        /* use this in main to setup
00049                                                  program_name */
00050 
00051     /* Declaritions for functions in just_display.c */
00052 
00053 #if NeedFunctionPrototypes
00054 char *Malloc(unsigned);
00055 char *Realloc(char *, int);
00056 char *Get_Display_Name(int *, char **);
00057 Display *Open_Display(char *);
00058 void Setup_Display_And_Screen(int *, char **);
00059 XFontStruct *Open_Font(char *);
00060 void Beep(void);
00061 Pixmap ReadBitmapFile(Drawable, char *, int *, int *, int *, int *);
00062 void WriteBitmapFile(char *, Pixmap, int, int, int, int);
00063 Window Select_Window_Args(int *, char **);
00064 void usage(void);
00065 #else
00066 char *Malloc();
00067 char *Realloc();
00068 char *Get_Display_Name();
00069 Display *Open_Display();
00070 void Setup_Display_And_Screen();
00071 XFontStruct *Open_Font();
00072 void Beep();
00073 Pixmap ReadBitmapFile();
00074 void WriteBitmapFile();
00075 Window Select_Window_Args();
00076 void usage();
00077 #endif
00078 
00079 #define X_USAGE "[host:display]"              /* X arguments handled by
00080                          Get_Display_Name */
00081 
00082 /*
00083  * Other_stuff.h: Definitions of routines in other_stuff.
00084  *
00085  * Written by Mark Lillibridge.   Last updated 7/1/87
00086  *
00087  * Send bugs, etc. to chariot@athena.mit.edu.
00088  */
00089 
00090 #if NeedFunctionPrototypes
00091 unsigned long Resolve_Color(Window, char *);
00092 Pixmap Bitmap_To_Pixmap(Display *, Drawable, GC, Pixmap, int, int);
00093 Window Select_Window(Display *);
00094 void blip(void);
00095 Window Window_With_Name(Display *, Window, char *);
00096 #else
00097 unsigned long Resolve_Color();
00098 Pixmap Bitmap_To_Pixmap();
00099 Window Select_Window();
00100 void blip();
00101 Window Window_With_Name();
00102 #endif
00103 #if __GNUC__
00104 void Fatal_Error(char *, ...) __attribute__((__noreturn__));
00105 #else
00106 void Fatal_Error(char *, ...);
00107 #endif
00108 void outl(char *, ...);
KDE Logo
This file is part of the documentation for kwin Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Aug 20 13:39:10 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003