Mercurial > hg > aim92
view xaim/xreview.h @ 0:5242703e91d3 tip
Initial checkin for AIM92 aimR8.2 (last updated May 1997).
author | tomwalters |
---|---|
date | Fri, 20 May 2011 15:19:45 +0100 |
parents | |
children |
line wrap: on
line source
/* Copyright (c) Applied Psychology Unit, Medical Research Council. 1993 =========================================================================== Permission to use, copy, modify, and distribute this software without fee is hereby granted for research purposes, provided that this copyright notice appears in all copies and in all supporting documentation, and that the software is not redistributed for any fee (except for a nominal shipping charge). Anyone wanting to incorporate all or part of this software in a commercial product must obtain a license from the Medical Research Council. The MRC makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* * xreview.h * --------- * * * M. Akeroyd. July 1993. version 1.00 * */ #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xos.h> #include <X11/Xatom.h> #include <X11/Xmu/Xmu.h> #include <X11/keysym.h> #define BITMAPDEPTH 1 #define TOO_SMALL_X 0 #define BIG_ENOUGH_X 1 #define TOO_BIG_X 2 #define MIN_WIDTH_XWINDOW 200 /* in pixels */ #define MIN_HEIGHT_XWINDOW 200 /* in pixels */ #define LINE_WIDTH_X 0 #define LINE_STYLE_X LineSolid #define CAP_STYLE_X CapButt #define JOIN_STYLE_X JoinRound #define DEFAULT_POINTSIZE 18 /* of the font */ #define BYTES_PER_LINE 64 #define BITMAP_PAD 8 #define CONTROL_WIDTH 610 /* pixels */ #define CONTROL_HEIGHT 210 /* pixels */ #define CONTROL_X 100 /* pixels */ #define CONTROL_Y 600 /* pixels */ #define MAX_LINES_HEADER 100 /* 69 is what .ctns are */ #define MAX_LINE_LENGTH 80 /* of a header : width of an xterm */ #define MAX_FRAMES 1000 #define MAX_STRING_LENGTH 255 /* of a filename, etc */ #define NULL_STRING "" #define OFF 0 #define ON 1 #define READ 31 /* used in fopen as "rb" */ #define WRITE 32 /* used in fopen as "wb" */ #define INPUT_EXT ".ctn" #define MONO 10 #define COLOUR 11 #define SERVER 12 #define DEC 13 #define SUN 14 /* WARNING: fonts are left out */ typedef struct top_level_Window { Window win; unsigned int width; unsigned int height; int x; int y; unsigned int border_width; int window_size; char *window_name; char *icon_name; Pixmap icon_pixmap; XSizeHints size_hints; XEvent report; GC gc; XWMHints wm_hints; XClassHint class_hints; XTextProperty windowName; XTextProperty iconName; unsigned long valuemask; XGCValues values; unsigned int line_width; unsigned int line_style; unsigned int cap_style; unsigned int join_style; unsigned int foreground; } toplevelWindow; typedef struct button_window { Window win; unsigned int width; unsigned int height; int x; int y; } buttonWindow;