form_win(3X)
π
form_win(3X) β make and break form window and subwindow associations π
okay bestie, welcome to the library calls page for form_win(3X), where we handle form window and subwindow associations like the main character energy they are. β¨
πΈ NAME πΈ
form_win β make and break form window and subwindow associations π
β¨ SYNOPSIS β¨
#include <form.h>
int set_form_win(FORM *form, WINDOW *win);
WINDOW *form_win(const FORM *form);
int set_form_sub(FORM *form, WINDOW *sub);
WINDOW *form_sub(const FORM *form);
int scale_form(const FORM *form, int *rows, int *columns);
π DESCRIPTION π
Every form has an associated pair of curses windows. The form window displays any title and border associated with the window; the form subwindow displays the items of the form that are currently available for selection. π«Ά
The first four functions β set_form_win, form_win, set_form_sub, and form_sub β get and set those windows. It is not necessary to set either window; by default, the driver code uses stdscr for both. No cap. π
In the set_ functions, window argument of NULL is treated as though it were stsdcr. A form argument of NULL is treated as a request to change the system default form window or subwindow.
The function scale_form returns the minimum size required for the subwindow of form. π
π RETURN VALUE π
Routines that return pointers return NULL on error. Routines that return an integer return one of the following error codes:
E_OKβ the routine succeeded. slay. βE_SYSTEM_ERRORβ system error occurred (seeerrno(3)). πE_BAD_ARGUMENTβ routine detected an incorrect or out-of-range argument. πE_POSTEDβ the form has already been posted. πE_NOT_CONNECTEDβ no items are connected to the form. π«
π¦ PORTABILITY π¦
These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions. fr fr. π¦
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. πβ¨
π SEE ALSO π
curses(3X)curs_variables(3X)form(3X)
This page is serving ncurses 6.5, dated 2024-12-28 β periodt. π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright 2018-2023,2024 Thomas E. Dickey
- Copyright 1998-2006,2010 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms