Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include
File: form.h
/****************************************************************************
[0] Fix | Delete
* Copyright (c) 1998-2016,2017 Free Software Foundation, Inc. *
[1] Fix | Delete
* *
[2] Fix | Delete
* Permission is hereby granted, free of charge, to any person obtaining a *
[3] Fix | Delete
* copy of this software and associated documentation files (the *
[4] Fix | Delete
* "Software"), to deal in the Software without restriction, including *
[5] Fix | Delete
* without limitation the rights to use, copy, modify, merge, publish, *
[6] Fix | Delete
* distribute, distribute with modifications, sublicense, and/or sell *
[7] Fix | Delete
* copies of the Software, and to permit persons to whom the Software is *
[8] Fix | Delete
* furnished to do so, subject to the following conditions: *
[9] Fix | Delete
* *
[10] Fix | Delete
* The above copyright notice and this permission notice shall be included *
[11] Fix | Delete
* in all copies or substantial portions of the Software. *
[12] Fix | Delete
* *
[13] Fix | Delete
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
[14] Fix | Delete
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
[15] Fix | Delete
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
[16] Fix | Delete
* IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
[17] Fix | Delete
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
[18] Fix | Delete
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
[19] Fix | Delete
* THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
[20] Fix | Delete
* *
[21] Fix | Delete
* Except as contained in this notice, the name(s) of the above copyright *
[22] Fix | Delete
* holders shall not be used in advertising or otherwise to promote the *
[23] Fix | Delete
* sale, use or other dealings in this Software without prior written *
[24] Fix | Delete
* authorization. *
[25] Fix | Delete
****************************************************************************/
[26] Fix | Delete
[27] Fix | Delete
/****************************************************************************
[28] Fix | Delete
* Author: Juergen Pfeifer, 1995,1997 *
[29] Fix | Delete
****************************************************************************/
[30] Fix | Delete
[31] Fix | Delete
/* $Id: form.h,v 0.27 2017/02/11 16:35:42 tom Exp $ */
[32] Fix | Delete
[33] Fix | Delete
#ifndef FORM_H
[34] Fix | Delete
#define FORM_H
[35] Fix | Delete
/* *INDENT-OFF*/
[36] Fix | Delete
[37] Fix | Delete
#include <curses.h>
[38] Fix | Delete
#include <eti.h>
[39] Fix | Delete
[40] Fix | Delete
#ifdef __cplusplus
[41] Fix | Delete
extern "C" {
[42] Fix | Delete
#endif
[43] Fix | Delete
[44] Fix | Delete
#ifndef FORM_PRIV_H
[45] Fix | Delete
typedef void *FIELD_CELL;
[46] Fix | Delete
#endif
[47] Fix | Delete
[48] Fix | Delete
#ifndef NCURSES_FIELD_INTERNALS
[49] Fix | Delete
#define NCURSES_FIELD_INTERNALS /* nothing */
[50] Fix | Delete
#endif
[51] Fix | Delete
[52] Fix | Delete
typedef int Form_Options;
[53] Fix | Delete
typedef int Field_Options;
[54] Fix | Delete
[55] Fix | Delete
/**********
[56] Fix | Delete
* _PAGE *
[57] Fix | Delete
**********/
[58] Fix | Delete
[59] Fix | Delete
typedef struct pagenode
[60] Fix | Delete
#if !NCURSES_OPAQUE_FORM
[61] Fix | Delete
{
[62] Fix | Delete
short pmin; /* index of first field on page */
[63] Fix | Delete
short pmax; /* index of last field on page */
[64] Fix | Delete
short smin; /* index of top leftmost field on page */
[65] Fix | Delete
short smax; /* index of bottom rightmost field on page */
[66] Fix | Delete
}
[67] Fix | Delete
#endif /* !NCURSES_OPAQUE_FORM */
[68] Fix | Delete
_PAGE;
[69] Fix | Delete
[70] Fix | Delete
/**********
[71] Fix | Delete
* FIELD *
[72] Fix | Delete
**********/
[73] Fix | Delete
[74] Fix | Delete
typedef struct fieldnode
[75] Fix | Delete
#if 1 /* not yet: !NCURSES_OPAQUE_FORM */
[76] Fix | Delete
{
[77] Fix | Delete
unsigned short status; /* flags */
[78] Fix | Delete
short rows; /* size in rows */
[79] Fix | Delete
short cols; /* size in cols */
[80] Fix | Delete
short frow; /* first row */
[81] Fix | Delete
short fcol; /* first col */
[82] Fix | Delete
int drows; /* dynamic rows */
[83] Fix | Delete
int dcols; /* dynamic cols */
[84] Fix | Delete
int maxgrow; /* maximum field growth */
[85] Fix | Delete
int nrow; /* off-screen rows */
[86] Fix | Delete
short nbuf; /* additional buffers */
[87] Fix | Delete
short just; /* justification */
[88] Fix | Delete
short page; /* page on form */
[89] Fix | Delete
short index; /* into form -> field */
[90] Fix | Delete
int pad; /* pad character */
[91] Fix | Delete
chtype fore; /* foreground attribute */
[92] Fix | Delete
chtype back; /* background attribute */
[93] Fix | Delete
Field_Options opts; /* options */
[94] Fix | Delete
struct fieldnode * snext; /* sorted order pointer */
[95] Fix | Delete
struct fieldnode * sprev; /* sorted order pointer */
[96] Fix | Delete
struct fieldnode * link; /* linked field chain */
[97] Fix | Delete
struct formnode * form; /* containing form */
[98] Fix | Delete
struct typenode * type; /* field type */
[99] Fix | Delete
void * arg; /* argument for type */
[100] Fix | Delete
FIELD_CELL * buf; /* field buffers */
[101] Fix | Delete
void * usrptr; /* user pointer */
[102] Fix | Delete
/*
[103] Fix | Delete
* The wide-character configuration requires extra information. Because
[104] Fix | Delete
* there are existing applications that manipulate the members of FIELD
[105] Fix | Delete
* directly, we cannot make the struct opaque, except by changing the ABI.
[106] Fix | Delete
* Offsets of members up to this point are the same in the narrow- and
[107] Fix | Delete
* wide-character configuration. But note that the type of buf depends on
[108] Fix | Delete
* the configuration, and is made opaque for that reason.
[109] Fix | Delete
*/
[110] Fix | Delete
NCURSES_FIELD_INTERNALS
[111] Fix | Delete
}
[112] Fix | Delete
#endif /* NCURSES_OPAQUE_FORM */
[113] Fix | Delete
FIELD;
[114] Fix | Delete
[115] Fix | Delete
[116] Fix | Delete
/*********
[117] Fix | Delete
* FORM *
[118] Fix | Delete
*********/
[119] Fix | Delete
[120] Fix | Delete
typedef struct formnode
[121] Fix | Delete
#if 1 /* not yet: !NCURSES_OPAQUE_FORM */
[122] Fix | Delete
{
[123] Fix | Delete
unsigned short status; /* flags */
[124] Fix | Delete
short rows; /* size in rows */
[125] Fix | Delete
short cols; /* size in cols */
[126] Fix | Delete
int currow; /* current row in field window */
[127] Fix | Delete
int curcol; /* current col in field window */
[128] Fix | Delete
int toprow; /* in scrollable field window */
[129] Fix | Delete
int begincol; /* in horiz. scrollable field */
[130] Fix | Delete
short maxfield; /* number of fields */
[131] Fix | Delete
short maxpage; /* number of pages */
[132] Fix | Delete
short curpage; /* index into page */
[133] Fix | Delete
Form_Options opts; /* options */
[134] Fix | Delete
WINDOW * win; /* window */
[135] Fix | Delete
WINDOW * sub; /* subwindow */
[136] Fix | Delete
WINDOW * w; /* window for current field */
[137] Fix | Delete
FIELD ** field; /* field [maxfield] */
[138] Fix | Delete
FIELD * current; /* current field */
[139] Fix | Delete
_PAGE * page; /* page [maxpage] */
[140] Fix | Delete
void * usrptr; /* user pointer */
[141] Fix | Delete
[142] Fix | Delete
void (*forminit)(struct formnode *);
[143] Fix | Delete
void (*formterm)(struct formnode *);
[144] Fix | Delete
void (*fieldinit)(struct formnode *);
[145] Fix | Delete
void (*fieldterm)(struct formnode *);
[146] Fix | Delete
[147] Fix | Delete
}
[148] Fix | Delete
#endif /* !NCURSES_OPAQUE_FORM */
[149] Fix | Delete
FORM;
[150] Fix | Delete
[151] Fix | Delete
[152] Fix | Delete
/**************
[153] Fix | Delete
* FIELDTYPE *
[154] Fix | Delete
**************/
[155] Fix | Delete
[156] Fix | Delete
typedef struct typenode
[157] Fix | Delete
#if !NCURSES_OPAQUE_FORM
[158] Fix | Delete
{
[159] Fix | Delete
unsigned short status; /* flags */
[160] Fix | Delete
long ref; /* reference count */
[161] Fix | Delete
struct typenode * left; /* ptr to operand for | */
[162] Fix | Delete
struct typenode * right; /* ptr to operand for | */
[163] Fix | Delete
[164] Fix | Delete
void* (*makearg)(va_list *); /* make fieldtype arg */
[165] Fix | Delete
void* (*copyarg)(const void *); /* copy fieldtype arg */
[166] Fix | Delete
void (*freearg)(void *); /* free fieldtype arg */
[167] Fix | Delete
[168] Fix | Delete
#if NCURSES_INTEROP_FUNCS
[169] Fix | Delete
union {
[170] Fix | Delete
bool (*ofcheck)(FIELD *,const void *); /* field validation */
[171] Fix | Delete
bool (*gfcheck)(FORM*,FIELD *,const void*); /* generic field validation */
[172] Fix | Delete
} fieldcheck;
[173] Fix | Delete
union {
[174] Fix | Delete
bool (*occheck)(int,const void *); /* character validation */
[175] Fix | Delete
bool (*gccheck)(int,FORM*,
[176] Fix | Delete
FIELD*,const void*); /* generic char validation */
[177] Fix | Delete
} charcheck;
[178] Fix | Delete
union {
[179] Fix | Delete
bool (*onext)(FIELD *,const void *); /* enumerate next value */
[180] Fix | Delete
bool (*gnext)(FORM*,FIELD*,const void*); /* generic enumerate next */
[181] Fix | Delete
} enum_next;
[182] Fix | Delete
union {
[183] Fix | Delete
bool (*oprev)(FIELD *,const void *); /* enumerate prev value */
[184] Fix | Delete
bool (*gprev)(FORM*,FIELD*,const void*); /* generic enumerate prev */
[185] Fix | Delete
} enum_prev;
[186] Fix | Delete
void* (*genericarg)(void*); /* Alternate Arg method */
[187] Fix | Delete
#else
[188] Fix | Delete
bool (*fcheck)(FIELD *,const void *); /* field validation */
[189] Fix | Delete
bool (*ccheck)(int,const void *); /* character validation */
[190] Fix | Delete
[191] Fix | Delete
bool (*next)(FIELD *,const void *); /* enumerate next value */
[192] Fix | Delete
bool (*prev)(FIELD *,const void *); /* enumerate prev value */
[193] Fix | Delete
#endif
[194] Fix | Delete
}
[195] Fix | Delete
#endif /* !NCURSES_OPAQUE_FORM */
[196] Fix | Delete
FIELDTYPE;
[197] Fix | Delete
[198] Fix | Delete
typedef void (*Form_Hook)(FORM *);
[199] Fix | Delete
[200] Fix | Delete
/***************************
[201] Fix | Delete
* miscellaneous #defines *
[202] Fix | Delete
***************************/
[203] Fix | Delete
[204] Fix | Delete
/* field justification */
[205] Fix | Delete
#define NO_JUSTIFICATION (0)
[206] Fix | Delete
#define JUSTIFY_LEFT (1)
[207] Fix | Delete
#define JUSTIFY_CENTER (2)
[208] Fix | Delete
#define JUSTIFY_RIGHT (3)
[209] Fix | Delete
[210] Fix | Delete
/* field options */
[211] Fix | Delete
#define O_VISIBLE (0x0001U)
[212] Fix | Delete
#define O_ACTIVE (0x0002U)
[213] Fix | Delete
#define O_PUBLIC (0x0004U)
[214] Fix | Delete
#define O_EDIT (0x0008U)
[215] Fix | Delete
#define O_WRAP (0x0010U)
[216] Fix | Delete
#define O_BLANK (0x0020U)
[217] Fix | Delete
#define O_AUTOSKIP (0x0040U)
[218] Fix | Delete
#define O_NULLOK (0x0080U)
[219] Fix | Delete
#define O_PASSOK (0x0100U)
[220] Fix | Delete
#define O_STATIC (0x0200U)
[221] Fix | Delete
#define O_DYNAMIC_JUSTIFY (0x0400U) /* ncurses extension */
[222] Fix | Delete
#define O_NO_LEFT_STRIP (0x0800U) /* ncurses extension */
[223] Fix | Delete
[224] Fix | Delete
/* form options */
[225] Fix | Delete
#define O_NL_OVERLOAD (0x0001U)
[226] Fix | Delete
#define O_BS_OVERLOAD (0x0002U)
[227] Fix | Delete
[228] Fix | Delete
/* form driver commands */
[229] Fix | Delete
#define REQ_NEXT_PAGE (KEY_MAX + 1) /* move to next page */
[230] Fix | Delete
#define REQ_PREV_PAGE (KEY_MAX + 2) /* move to previous page */
[231] Fix | Delete
#define REQ_FIRST_PAGE (KEY_MAX + 3) /* move to first page */
[232] Fix | Delete
#define REQ_LAST_PAGE (KEY_MAX + 4) /* move to last page */
[233] Fix | Delete
[234] Fix | Delete
#define REQ_NEXT_FIELD (KEY_MAX + 5) /* move to next field */
[235] Fix | Delete
#define REQ_PREV_FIELD (KEY_MAX + 6) /* move to previous field */
[236] Fix | Delete
#define REQ_FIRST_FIELD (KEY_MAX + 7) /* move to first field */
[237] Fix | Delete
#define REQ_LAST_FIELD (KEY_MAX + 8) /* move to last field */
[238] Fix | Delete
#define REQ_SNEXT_FIELD (KEY_MAX + 9) /* move to sorted next field */
[239] Fix | Delete
#define REQ_SPREV_FIELD (KEY_MAX + 10) /* move to sorted prev field */
[240] Fix | Delete
#define REQ_SFIRST_FIELD (KEY_MAX + 11) /* move to sorted first field */
[241] Fix | Delete
#define REQ_SLAST_FIELD (KEY_MAX + 12) /* move to sorted last field */
[242] Fix | Delete
#define REQ_LEFT_FIELD (KEY_MAX + 13) /* move to left to field */
[243] Fix | Delete
#define REQ_RIGHT_FIELD (KEY_MAX + 14) /* move to right to field */
[244] Fix | Delete
#define REQ_UP_FIELD (KEY_MAX + 15) /* move to up to field */
[245] Fix | Delete
#define REQ_DOWN_FIELD (KEY_MAX + 16) /* move to down to field */
[246] Fix | Delete
[247] Fix | Delete
#define REQ_NEXT_CHAR (KEY_MAX + 17) /* move to next char in field */
[248] Fix | Delete
#define REQ_PREV_CHAR (KEY_MAX + 18) /* move to prev char in field */
[249] Fix | Delete
#define REQ_NEXT_LINE (KEY_MAX + 19) /* move to next line in field */
[250] Fix | Delete
#define REQ_PREV_LINE (KEY_MAX + 20) /* move to prev line in field */
[251] Fix | Delete
#define REQ_NEXT_WORD (KEY_MAX + 21) /* move to next word in field */
[252] Fix | Delete
#define REQ_PREV_WORD (KEY_MAX + 22) /* move to prev word in field */
[253] Fix | Delete
#define REQ_BEG_FIELD (KEY_MAX + 23) /* move to first char in field */
[254] Fix | Delete
#define REQ_END_FIELD (KEY_MAX + 24) /* move after last char in fld */
[255] Fix | Delete
#define REQ_BEG_LINE (KEY_MAX + 25) /* move to beginning of line */
[256] Fix | Delete
#define REQ_END_LINE (KEY_MAX + 26) /* move after last char in line */
[257] Fix | Delete
#define REQ_LEFT_CHAR (KEY_MAX + 27) /* move left in field */
[258] Fix | Delete
#define REQ_RIGHT_CHAR (KEY_MAX + 28) /* move right in field */
[259] Fix | Delete
#define REQ_UP_CHAR (KEY_MAX + 29) /* move up in field */
[260] Fix | Delete
#define REQ_DOWN_CHAR (KEY_MAX + 30) /* move down in field */
[261] Fix | Delete
[262] Fix | Delete
#define REQ_NEW_LINE (KEY_MAX + 31) /* insert/overlay new line */
[263] Fix | Delete
#define REQ_INS_CHAR (KEY_MAX + 32) /* insert blank char at cursor */
[264] Fix | Delete
#define REQ_INS_LINE (KEY_MAX + 33) /* insert blank line at cursor */
[265] Fix | Delete
#define REQ_DEL_CHAR (KEY_MAX + 34) /* delete char at cursor */
[266] Fix | Delete
#define REQ_DEL_PREV (KEY_MAX + 35) /* delete char before cursor */
[267] Fix | Delete
#define REQ_DEL_LINE (KEY_MAX + 36) /* delete line at cursor */
[268] Fix | Delete
#define REQ_DEL_WORD (KEY_MAX + 37) /* delete word at cursor */
[269] Fix | Delete
#define REQ_CLR_EOL (KEY_MAX + 38) /* clear to end of line */
[270] Fix | Delete
#define REQ_CLR_EOF (KEY_MAX + 39) /* clear to end of field */
[271] Fix | Delete
#define REQ_CLR_FIELD (KEY_MAX + 40) /* clear entire field */
[272] Fix | Delete
#define REQ_OVL_MODE (KEY_MAX + 41) /* begin overlay mode */
[273] Fix | Delete
#define REQ_INS_MODE (KEY_MAX + 42) /* begin insert mode */
[274] Fix | Delete
#define REQ_SCR_FLINE (KEY_MAX + 43) /* scroll field forward a line */
[275] Fix | Delete
#define REQ_SCR_BLINE (KEY_MAX + 44) /* scroll field backward a line */
[276] Fix | Delete
#define REQ_SCR_FPAGE (KEY_MAX + 45) /* scroll field forward a page */
[277] Fix | Delete
#define REQ_SCR_BPAGE (KEY_MAX + 46) /* scroll field backward a page */
[278] Fix | Delete
#define REQ_SCR_FHPAGE (KEY_MAX + 47) /* scroll field forward half page */
[279] Fix | Delete
#define REQ_SCR_BHPAGE (KEY_MAX + 48) /* scroll field backward half page */
[280] Fix | Delete
#define REQ_SCR_FCHAR (KEY_MAX + 49) /* horizontal scroll char */
[281] Fix | Delete
#define REQ_SCR_BCHAR (KEY_MAX + 50) /* horizontal scroll char */
[282] Fix | Delete
#define REQ_SCR_HFLINE (KEY_MAX + 51) /* horizontal scroll line */
[283] Fix | Delete
#define REQ_SCR_HBLINE (KEY_MAX + 52) /* horizontal scroll line */
[284] Fix | Delete
#define REQ_SCR_HFHALF (KEY_MAX + 53) /* horizontal scroll half line */
[285] Fix | Delete
#define REQ_SCR_HBHALF (KEY_MAX + 54) /* horizontal scroll half line */
[286] Fix | Delete
[287] Fix | Delete
#define REQ_VALIDATION (KEY_MAX + 55) /* validate field */
[288] Fix | Delete
#define REQ_NEXT_CHOICE (KEY_MAX + 56) /* display next field choice */
[289] Fix | Delete
#define REQ_PREV_CHOICE (KEY_MAX + 57) /* display prev field choice */
[290] Fix | Delete
[291] Fix | Delete
#define MIN_FORM_COMMAND (KEY_MAX + 1) /* used by form_driver */
[292] Fix | Delete
#define MAX_FORM_COMMAND (KEY_MAX + 57) /* used by form_driver */
[293] Fix | Delete
[294] Fix | Delete
#if defined(MAX_COMMAND)
[295] Fix | Delete
# if (MAX_FORM_COMMAND > MAX_COMMAND)
[296] Fix | Delete
# error Something is wrong -- MAX_FORM_COMMAND is greater than MAX_COMMAND
[297] Fix | Delete
# elif (MAX_COMMAND != (KEY_MAX + 128))
[298] Fix | Delete
# error Something is wrong -- MAX_COMMAND is already inconsistently defined.
[299] Fix | Delete
# endif
[300] Fix | Delete
#else
[301] Fix | Delete
# define MAX_COMMAND (KEY_MAX + 128)
[302] Fix | Delete
#endif
[303] Fix | Delete
[304] Fix | Delete
/*************************
[305] Fix | Delete
* standard field types *
[306] Fix | Delete
*************************/
[307] Fix | Delete
extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ALPHA;
[308] Fix | Delete
extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ALNUM;
[309] Fix | Delete
extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ENUM;
[310] Fix | Delete
extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_INTEGER;
[311] Fix | Delete
extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_NUMERIC;
[312] Fix | Delete
extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_REGEXP;
[313] Fix | Delete
[314] Fix | Delete
/************************************
[315] Fix | Delete
* built-in additional field types *
[316] Fix | Delete
* They are not defined in SVr4 *
[317] Fix | Delete
************************************/
[318] Fix | Delete
extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_IPV4; /* Internet IP Version 4 address */
[319] Fix | Delete
[320] Fix | Delete
/***********************
[321] Fix | Delete
* FIELDTYPE routines *
[322] Fix | Delete
***********************/
[323] Fix | Delete
extern NCURSES_EXPORT(FIELDTYPE *) new_fieldtype (
[324] Fix | Delete
bool (* const field_check)(FIELD *,const void *),
[325] Fix | Delete
bool (* const char_check)(int,const void *));
[326] Fix | Delete
extern NCURSES_EXPORT(FIELDTYPE *) link_fieldtype(
[327] Fix | Delete
FIELDTYPE *, FIELDTYPE *);
[328] Fix | Delete
[329] Fix | Delete
extern NCURSES_EXPORT(int) free_fieldtype (FIELDTYPE *);
[330] Fix | Delete
extern NCURSES_EXPORT(int) set_fieldtype_arg (FIELDTYPE *,
[331] Fix | Delete
void * (* const make_arg)(va_list *),
[332] Fix | Delete
void * (* const copy_arg)(const void *),
[333] Fix | Delete
void (* const free_arg)(void *));
[334] Fix | Delete
extern NCURSES_EXPORT(int) set_fieldtype_choice (FIELDTYPE *,
[335] Fix | Delete
bool (* const next_choice)(FIELD *,const void *),
[336] Fix | Delete
bool (* const prev_choice)(FIELD *,const void *));
[337] Fix | Delete
[338] Fix | Delete
/*******************
[339] Fix | Delete
* FIELD routines *
[340] Fix | Delete
*******************/
[341] Fix | Delete
extern NCURSES_EXPORT(FIELD *) new_field (int,int,int,int,int,int);
[342] Fix | Delete
extern NCURSES_EXPORT(FIELD *) dup_field (FIELD *,int,int);
[343] Fix | Delete
extern NCURSES_EXPORT(FIELD *) link_field (FIELD *,int,int);
[344] Fix | Delete
[345] Fix | Delete
extern NCURSES_EXPORT(int) free_field (FIELD *);
[346] Fix | Delete
extern NCURSES_EXPORT(int) field_info (const FIELD *,int *,int *,int *,int *,int *,int *);
[347] Fix | Delete
extern NCURSES_EXPORT(int) dynamic_field_info (const FIELD *,int *,int *,int *);
[348] Fix | Delete
extern NCURSES_EXPORT(int) set_max_field ( FIELD *,int);
[349] Fix | Delete
extern NCURSES_EXPORT(int) move_field (FIELD *,int,int);
[350] Fix | Delete
extern NCURSES_EXPORT(int) set_field_type (FIELD *,FIELDTYPE *,...);
[351] Fix | Delete
extern NCURSES_EXPORT(int) set_new_page (FIELD *,bool);
[352] Fix | Delete
extern NCURSES_EXPORT(int) set_field_just (FIELD *,int);
[353] Fix | Delete
extern NCURSES_EXPORT(int) field_just (const FIELD *);
[354] Fix | Delete
extern NCURSES_EXPORT(int) set_field_fore (FIELD *,chtype);
[355] Fix | Delete
extern NCURSES_EXPORT(int) set_field_back (FIELD *,chtype);
[356] Fix | Delete
extern NCURSES_EXPORT(int) set_field_pad (FIELD *,int);
[357] Fix | Delete
extern NCURSES_EXPORT(int) field_pad (const FIELD *);
[358] Fix | Delete
extern NCURSES_EXPORT(int) set_field_buffer (FIELD *,int,const char *);
[359] Fix | Delete
extern NCURSES_EXPORT(int) set_field_status (FIELD *,bool);
[360] Fix | Delete
extern NCURSES_EXPORT(int) set_field_userptr (FIELD *, void *);
[361] Fix | Delete
extern NCURSES_EXPORT(int) set_field_opts (FIELD *,Field_Options);
[362] Fix | Delete
extern NCURSES_EXPORT(int) field_opts_on (FIELD *,Field_Options);
[363] Fix | Delete
extern NCURSES_EXPORT(int) field_opts_off (FIELD *,Field_Options);
[364] Fix | Delete
[365] Fix | Delete
extern NCURSES_EXPORT(chtype) field_fore (const FIELD *);
[366] Fix | Delete
extern NCURSES_EXPORT(chtype) field_back (const FIELD *);
[367] Fix | Delete
[368] Fix | Delete
extern NCURSES_EXPORT(bool) new_page (const FIELD *);
[369] Fix | Delete
extern NCURSES_EXPORT(bool) field_status (const FIELD *);
[370] Fix | Delete
[371] Fix | Delete
extern NCURSES_EXPORT(void *) field_arg (const FIELD *);
[372] Fix | Delete
[373] Fix | Delete
extern NCURSES_EXPORT(void *) field_userptr (const FIELD *);
[374] Fix | Delete
[375] Fix | Delete
extern NCURSES_EXPORT(FIELDTYPE *) field_type (const FIELD *);
[376] Fix | Delete
[377] Fix | Delete
extern NCURSES_EXPORT(char *) field_buffer (const FIELD *,int);
[378] Fix | Delete
[379] Fix | Delete
extern NCURSES_EXPORT(Field_Options) field_opts (const FIELD *);
[380] Fix | Delete
[381] Fix | Delete
/******************
[382] Fix | Delete
* FORM routines *
[383] Fix | Delete
******************/
[384] Fix | Delete
[385] Fix | Delete
extern NCURSES_EXPORT(FORM *) new_form (FIELD **);
[386] Fix | Delete
[387] Fix | Delete
extern NCURSES_EXPORT(FIELD **) form_fields (const FORM *);
[388] Fix | Delete
extern NCURSES_EXPORT(FIELD *) current_field (const FORM *);
[389] Fix | Delete
[390] Fix | Delete
extern NCURSES_EXPORT(WINDOW *) form_win (const FORM *);
[391] Fix | Delete
extern NCURSES_EXPORT(WINDOW *) form_sub (const FORM *);
[392] Fix | Delete
[393] Fix | Delete
extern NCURSES_EXPORT(Form_Hook) form_init (const FORM *);
[394] Fix | Delete
extern NCURSES_EXPORT(Form_Hook) form_term (const FORM *);
[395] Fix | Delete
extern NCURSES_EXPORT(Form_Hook) field_init (const FORM *);
[396] Fix | Delete
extern NCURSES_EXPORT(Form_Hook) field_term (const FORM *);
[397] Fix | Delete
[398] Fix | Delete
extern NCURSES_EXPORT(int) free_form (FORM *);
[399] Fix | Delete
extern NCURSES_EXPORT(int) set_form_fields (FORM *,FIELD **);
[400] Fix | Delete
extern NCURSES_EXPORT(int) field_count (const FORM *);
[401] Fix | Delete
extern NCURSES_EXPORT(int) set_form_win (FORM *,WINDOW *);
[402] Fix | Delete
extern NCURSES_EXPORT(int) set_form_sub (FORM *,WINDOW *);
[403] Fix | Delete
extern NCURSES_EXPORT(int) set_current_field (FORM *,FIELD *);
[404] Fix | Delete
extern NCURSES_EXPORT(int) unfocus_current_field (FORM *);
[405] Fix | Delete
extern NCURSES_EXPORT(int) field_index (const FIELD *);
[406] Fix | Delete
extern NCURSES_EXPORT(int) set_form_page (FORM *,int);
[407] Fix | Delete
extern NCURSES_EXPORT(int) form_page (const FORM *);
[408] Fix | Delete
extern NCURSES_EXPORT(int) scale_form (const FORM *,int *,int *);
[409] Fix | Delete
extern NCURSES_EXPORT(int) set_form_init (FORM *,Form_Hook);
[410] Fix | Delete
extern NCURSES_EXPORT(int) set_form_term (FORM *,Form_Hook);
[411] Fix | Delete
extern NCURSES_EXPORT(int) set_field_init (FORM *,Form_Hook);
[412] Fix | Delete
extern NCURSES_EXPORT(int) set_field_term (FORM *,Form_Hook);
[413] Fix | Delete
extern NCURSES_EXPORT(int) post_form (FORM *);
[414] Fix | Delete
extern NCURSES_EXPORT(int) unpost_form (FORM *);
[415] Fix | Delete
extern NCURSES_EXPORT(int) pos_form_cursor (FORM *);
[416] Fix | Delete
extern NCURSES_EXPORT(int) form_driver (FORM *,int);
[417] Fix | Delete
# if NCURSES_WIDECHAR
[418] Fix | Delete
extern NCURSES_EXPORT(int) form_driver_w (FORM *,int,wchar_t);
[419] Fix | Delete
# endif
[420] Fix | Delete
extern NCURSES_EXPORT(int) set_form_userptr (FORM *,void *);
[421] Fix | Delete
extern NCURSES_EXPORT(int) set_form_opts (FORM *,Form_Options);
[422] Fix | Delete
extern NCURSES_EXPORT(int) form_opts_on (FORM *,Form_Options);
[423] Fix | Delete
extern NCURSES_EXPORT(int) form_opts_off (FORM *,Form_Options);
[424] Fix | Delete
extern NCURSES_EXPORT(int) form_request_by_name (const char *);
[425] Fix | Delete
[426] Fix | Delete
extern NCURSES_EXPORT(const char *) form_request_name (int);
[427] Fix | Delete
[428] Fix | Delete
extern NCURSES_EXPORT(void *) form_userptr (const FORM *);
[429] Fix | Delete
[430] Fix | Delete
extern NCURSES_EXPORT(Form_Options) form_opts (const FORM *);
[431] Fix | Delete
[432] Fix | Delete
extern NCURSES_EXPORT(bool) data_ahead (const FORM *);
[433] Fix | Delete
extern NCURSES_EXPORT(bool) data_behind (const FORM *);
[434] Fix | Delete
[435] Fix | Delete
#if NCURSES_SP_FUNCS
[436] Fix | Delete
extern NCURSES_EXPORT(FORM *) NCURSES_SP_NAME(new_form) (SCREEN*, FIELD **);
[437] Fix | Delete
#endif
[438] Fix | Delete
[439] Fix | Delete
#ifdef __cplusplus
[440] Fix | Delete
}
[441] Fix | Delete
#endif
[442] Fix | Delete
/* *INDENT-ON*/
[443] Fix | Delete
[444] Fix | Delete
#endif /* FORM_H */
[445] Fix | Delete
[446] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function