pinq_def_string_data(3g) — Subroutines
Name
pinq_def_string_data − Returns string information.
Operating States: PHOP, ∗, ∗, ∗
PHIGS standard function
Syntax
void pinq_def_string_data (
Pint wstype, /∗ (I) Workstation type. ∗/
Pint dev_num, /∗ (I) Logical input device number. ∗/
Pstore store, /∗ (I) Handle to store the object.
store manages the memory
referenced by ∗pets and
∗string_data. ∗/
Pint ∗error_ind, /∗ (O) Error indicator. ∗/
Pint ∗max_size, /∗ (O) Maximum input buffer size. ∗/
Pint_list ∗∗pets, /∗ (O) List of PETS. ∗/
Plimit ∗echo_area, /∗ (O) Default echo area, in device
coordinates. ∗/
Pstring_data ∗∗string_data /∗ (O) Default data record. ∗/
)
Data Structures
typedef void ∗Pstore;
typedef struct {
Pint num_ints; /∗ number of Pints in the list ∗/
Pint ∗ints; /∗ list of integers ∗/
} Pint_list;
typedef struct {
Pfloat x_min; /∗ x minimum ∗/
Pfloat x_max; /∗ x maximum ∗/
Pfloat y_min; /∗ y minimum ∗/
Pfloat y_max; /∗ y maximum ∗/
} Plimit;
typedef struct { /∗ string data record ∗/
Pint in_buf_size; /∗ input buffer size ∗/
Pint init_pos; /∗ initial editing position ∗/
union Pstring_pets {
struct Pstring_pet_r1 {
char ∗title_string; /∗ title string for the device ∗/
} pet_r1;
} pets;
} Pstring_data;
Description
pinq_def_string_data queries the workstation description table and returns values for the following:
•Maximum string input buffer size
•List of available prompt and echo types
•Default echo area in device coordinates
•Default string data record
See Also
pcreate_store
pdel_store
pinit_string
pinq_def_string_data3