~ubuntu-branches/ubuntu/karmic/iterm/karmic

« back to all changes in this revision

Viewing changes to unix/Xaw/lib/Iterm.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Fok
  • Date: 2004-02-27 04:13:16 UTC
  • Revision ID: james.westby@ubuntu.com-20040227041316-q0jn37sia8mt0t9u
Tags: upstream-0.5
ImportĀ upstreamĀ versionĀ 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This software is subject to the terms of the Common Public License
 
2
   You must accept the terms of this license to use this software.
 
3
 
 
4
   Copyright (C) 2002, International Business Machines Corporation
 
5
   and others.  All Rights Reserved.
 
6
 
 
7
   Further information about Common Public License Version 0.5 is obtained
 
8
   from url http://oss.software.ibm.com/developer/opensource/license-cpl.html */
 
9
 
 
10
/* $TOG: Iterm.h /main/7 1998/02/06 12:50:56 kaleb $ */
 
11
 
 
12
/*
 
13
 
 
14
Copyright 1987, 1998  The Open Group
 
15
 
 
16
All Rights Reserved.
 
17
 
 
18
The above copyright notice and this permission notice shall be included in
 
19
all copies or substantial portions of the Software.
 
20
 
 
21
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
22
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
23
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
24
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 
25
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
26
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
27
 
 
28
Except as contained in this notice, the name of The Open Group shall not be
 
29
used in advertising or otherwise to promote the sale, use or other dealings
 
30
in this Software without prior written authorization from The Open Group.
 
31
 
 
32
*/
 
33
/* $XFree86: xc/lib/Xaw/Template.h,v 1.4 1998/10/03 08:42:23 dawes Exp $ */
 
34
 
 
35
#ifndef _Iterm_h
 
36
#define _Iterm_h
 
37
 
 
38
/* Resources:
 
39
 
 
40
 Name                Class              RepType         Default Value
 
41
 ----                -----              -------         -------------
 
42
 background          Background         Pixel           XtDefaultBackground
 
43
 border              BorderColor        Pixel           XtDefaultForeground
 
44
 borderWidth         BorderWidth        Dimension       1
 
45
 destroyCallback     Callback           Pointer         NULL
 
46
 height              Height             Dimension       0
 
47
 mappedWhenManaged   MappedWhenManaged  Boolean         True
 
48
 sensitive           Sensitive          Boolean         True
 
49
 width               Width              Dimension       0
 
50
 x                   Position           Position        0
 
51
 y                   Position           Position        0
 
52
 
 
53
*/
 
54
 
 
55
/* define any special resource names here that are not in <X11/StringDefs.h> */
 
56
#define XtNbaseSizeChange "baseSizeChange"
 
57
#define XtNcellSizeChange "cellSizeChange"
 
58
 
 
59
#define XtNscrollBarLeft "scrollBarLeft"
 
60
#define XtCScrollBarLeft "ScrollBarLeft"
 
61
 
 
62
#define XtNconnectionClosed "connectionClosed"
 
63
#define XtCConnectionClosed "ConnectionClosed"
 
64
 
 
65
#define XtNvideoChanged "videoChanged"
 
66
#define XtCvideoChanged "VideoChanged"
 
67
 
 
68
/* declare specific ItermWidget class and instance datatypes */
 
69
typedef struct _ItermClassRec *ItermWidgetClass;
 
70
typedef struct _ItermRec *ItermWidget;
 
71
 
 
72
/* declare the class constant */
 
73
extern WidgetClass itermWidgetClass;
 
74
 
 
75
/* utility methods */
 
76
int ItermGetBaseWidth(Widget w);
 
77
int ItermGetBaseHeight(Widget w);
 
78
int ItermGetCellWidth(Widget w);
 
79
int ItermGetCellHeight(Widget w);
 
80
void ItermSelectFont(Widget w, int font_num);
 
81
void ItermSetScrollbar(Widget w, Boolean on);
 
82
void ItermSetScrollbarLeft(Widget w, Boolean on);
 
83
Boolean ItermIsScrollbarOn(Widget w);
 
84
Boolean ItermIsScrollbarLeft(Widget w);
 
85
void ItermSetVisualBell(Widget w, Boolean on);
 
86
Boolean ItermIsVisualBell(Widget w);
 
87
void ItermSetReverseVideo(Widget w, Boolean on);
 
88
Boolean ItermIsReverseVideo(Widget w);
 
89
 
 
90
#endif /* _Iterm_h */