/usr/include/afs/gtxcurseswin.h is in libopenafs-dev 1.6.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 | /*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
#ifndef __gator_curseswindows_h
#define __gator_curseswindows_h 1
#include "gtxwindows.h" /*Base gator window dfns */
#if defined(AFS_HPUX110_ENV) && !defined(__HP_CURSES)
# define __HP_CURSES
#endif
#if defined(HAVE_NCURSES_H)
# include <ncurses.h>
#elif defined(HAVE_NCURSES_NCURSES_H)
# include <ncurses/ncurses.h>
#elif defined(HAVE_CURSES_H)
# include <curses.h>
#endif
/*Value for gwin w_type field*/
#define GATOR_WIN_CURSES 2
/*Private data for a curses gwin*/
struct gator_cursesgwin {
WINDOW *wp; /*Window pointer */
int charwidth; /*Character width in pixels */
int charheight; /*Character height in pixels */
char box_vertchar; /*Vertical char for boxing purposes */
char box_horizchar; /*Horizontal char for boxing purposes */
};
/*Curses gwin's creation parameters*/
struct gator_cursesgwin_params {
struct gwin_createparams gwin_params; /*Basic params for the window */
int charwidth; /*Character width in pixels */
int charheight; /*Character height in pixels */
char box_vertchar; /*Vertical char for boxing purposes */
char box_horizchar; /*Horizontal char for boxing purposes */
};
/*Curses initialization routine*/
extern int gator_cursesgwin_init(int adebug);
/*
* Summary:
* Initialize the curses window package.
*
* Args:
* int adebug: Is debugging turned on?
*
* Returns:
* 0 on success,
* Error value otherwise.
*/
/*Curses window's creation routine*/
extern struct gwin *gator_cursesgwin_create(void *);
/*
* Summary:
* Create a curses window.
*
* Args:
* struct gator_cursesgwin_params *params : Ptr to creation parameters.
*
* Returns:
* Ptr to the created curses window structure if successful,
* Error value otherwise.
*/
/*Curses cleanup routine*/
extern int gator_cursesgwin_cleanup(struct gwin *);
/*
* Summary:
* Clean up after the curses window package.
*
* Args:
* struct gwin *gwp : Ptr to base window.
*
* Returns:
* 0 on success,
* Error value otherwise.
*/
extern struct gwinbaseops gator_curses_gwinbops;
/*Curses window's routines*/
extern int gator_cursesgwin_box(struct gwin *);
/*
* Summary:
* Draw a box around the given curses window.
*
* Args:
* struct gwin *gwp : Ptr to the curses window to draw
* a box around.
*
* Returns:
* 0: Success.
* Error value otherwise.
*/
extern int gator_cursesgwin_clear(struct gwin *);
/*
* Summary:
* Clear out the given curses window.
*
* Args:
* struct gwin *gwp : Ptr to the curses window to clear
* out.
*
* Returns:
* 0: Success.
* Error value otherwise.
*/
extern int gator_cursesgwin_destroy(struct gwin *);
/*
* Summary:
* Destroy the given curses window.
*
* Args:
* struct gwin *gwp : Ptr to the curses window to destroy.
*
* Returns:
* 0: Success.
* Error value otherwise.
*/
extern int gator_cursesgwin_display(struct gwin *);
/*
* Summary:
* Display/redraw the given curses window.
*
* Args:
* struct gwin *gwp : Ptr to the curses window to draw.
*
* Returns:
* 0: Success.
* Error value otherwise.
*/
extern int gator_cursesgwin_drawline(struct gwin *, struct gwin_lineparams *);
/*
* Summary:
* Draw a line between two points in the given curses
* window.
*
* Args:
* struct gwin *gwp : Ptr to the curses window in which
* the line is to be drawn.
* struct gwin_lineparams *params : Ptr to other params.
*
* Returns:
* 0: Success.
* Error value otherwise.
*/
extern int gator_cursesgwin_drawrectangle(struct gwin *,
struct gwin_rectparams *);
/*
* Summary:
* Draw a rectangle in the given curses window.
*
* Args:
* struct gwin *gwp : Ptr to the curses window in which
* the rectangle is to be drawn.
* struct gwin_rectparams *params : Ptr to other params.
*
* Returns:
* 0: Success.
* Error value otherwise.
*/
extern int gator_cursesgwin_drawchar(struct gwin *, struct gwin_charparams *);
/*
* Summary:
* Draw a character in the given curses window.
*
* Args:
* struct gwin *gwp : Ptr to the curses window in which
* the character is to be drawn.
* struct gwin_charparams *params : Ptr to other params.
*
* Returns:
* 0: Success.
* Error value otherwise.
*/
extern int gator_cursesgwin_drawstring(struct gwin *, struct gwin_strparams *);
/*
* Summary:
* Draw a string in the given curses window.
*
* Args:
* struct gwin *gwp : Ptr to the curses window in which
* the string is to be drawn.
* struct gwin_strparams *params : Ptr to other params.
*
* Returns:
* 0: Success.
* Error value otherwise.
*/
extern int gator_cursesgwin_invert(struct gwin *, struct gwin_invparams *);
/*
* Summary:
* Invert a region in the given curses window.
*
* Args:
* struct gwin *gwp : Ptr to the curses window in which
* the inverted region lies.
* struct gwin_invparams *params : Ptr to other params.
*
* Returns:
* 0: Success.
* Error value otherwise.
*/
extern int gator_cursesgwin_getchar(struct gwin *);
extern int gator_cursesgwin_getdimensions(struct gwin *,
struct gwin_sizeparams *aparms);
extern int gator_cursesgwin_wait(struct gwin *);
#endif /* __gator_curseswindows_h */
|