form_win(3X)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… 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 (see errno(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