~ubuntu-branches/debian/sid/acfax/sid

« back to all changes in this revision

Viewing changes to Canvas.h

  • Committer: Bazaar Package Importer
  • Author(s): Hamish Moffatt
  • Date: 2001-12-27 12:07:46 UTC
  • Revision ID: james.westby@ubuntu.com-20011227120746-iz2p5k757bcla8ov
Tags: upstream-981011
ImportĀ upstreamĀ versionĀ 981011

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Header: /home/orchestra5/davy/stuff/misc/xsat/RCS/Canvas.h,v 1.1 92/04/10 14:08:04 davy Exp $
 
3
 *
 
4
 * Copyright 1992 by David A. Curry
 
5
 * Adapted for use with ACfax by Andreas Czechanowski
 
6
 *
 
7
 * Permission to use, copy, modify, distribute, and sell this software and its
 
8
 * documentation for any purpose is hereby granted without fee, provided that
 
9
 * the above copyright notice appear in all copies and that both that copyright
 
10
 * notice and this permission notice appear in supporting documentation.  The
 
11
 * author makes no representations about the suitability of this software for
 
12
 * any purpose.  It is provided "as is" without express or implied warranty.
 
13
 *
 
14
 * Public include file for the canvas widget.  Based on the include file for
 
15
 * the Template widget in the X11R5 distribution.
 
16
 *
 
17
 * David A. Curry
 
18
 * Purdue University
 
19
 * Engineering Computer Network
 
20
 * 1285 Electrical Engineering Building
 
21
 * West Lafayette, IN 47907
 
22
 * davy@ecn.purdue.edu
 
23
 *
 
24
 * $Log:        Canvas.h,v $
 
25
 * Revision 1.1  92/04/10  14:08:04  davy
 
26
 * Initial revision
 
27
 * 
 
28
 */
 
29
#ifndef _Canvas_h
 
30
#define _Canvas_h
 
31
 
 
32
/****************************************************************
 
33
 *
 
34
 * Canvas widget
 
35
 *
 
36
 ****************************************************************/
 
37
 
 
38
/*
 
39
 * Resources:
 
40
 *
 
41
 * Name              Class              RepType         Default Value
 
42
 * ----              -----              -------         -------------
 
43
 * background        Background         Pixel           XtDefaultBackground
 
44
 * border            BorderColor        Pixel           XtDefaultForeground
 
45
 * borderWidth       BorderWidth        Dimension       1
 
46
 * destroyCallback   Callback           Pointer         NULL
 
47
 * height            Height             Dimension       0
 
48
 * mappedWhenManaged MappedWhenManaged  Boolean         True
 
49
 * sensitive         Sensitive          Boolean         True
 
50
 * width             Width              Dimension       0
 
51
 * x                 Position           Position        0
 
52
 * y                 Position           Position        0
 
53
 */
 
54
 
 
55
/*
 
56
 * Canvas-specific resource names.
 
57
 */
 
58
#define XtNidleCursor           "idleCursor"
 
59
#define XtNbusyCursor           "busyCursor"
 
60
 
 
61
enum { CanvasDrawGC, CanvasCopyGC, CanvasClearGC };
 
62
enum { CanvasPicture };
 
63
 
 
64
/*
 
65
 * Declare specific CanvasWidget class and instance datatypes.
 
66
 */
 
67
typedef struct _CanvasClassRec*         CanvasWidgetClass;
 
68
typedef struct _CanvasRec*              CanvasWidget;
 
69
 
 
70
/*
 
71
 * Declare the class constant.
 
72
 */
 
73
extern WidgetClass canvasWidgetClass;
 
74
 
 
75
/*
 
76
 * Declare the functions accessable for the user
 
77
 */
 
78
extern GC canvasGetGC(
 
79
#if NeedFunctionPrototypes
 
80
        CanvasWidget,   /* w */
 
81
        unsigned        /* type */
 
82
#endif
 
83
);
 
84
 
 
85
extern Pixmap canvasGetPixmap(
 
86
#if NeedFunctionPrototypes
 
87
        CanvasWidget,   /* w */
 
88
        unsigned        /* type */
 
89
#endif
 
90
);
 
91
 
 
92
extern void canvasUpdateArea(
 
93
#if NeedFunctionPrototypes
 
94
        CanvasWidget, /* w */
 
95
        unsigned, unsigned, /* x, y */
 
96
        unsigned, unsigned /* width, height */
 
97
#endif
 
98
);
 
99
 
 
100
#endif /* _Canvas_h */