Expand description

NCurses Panels module

Panels are NCurses windows with the added feature of depth. Panel functions allow the use of stacked windows and ensure the proper portions of each window and the NCurses stdscr() window are hidden or displayed when panels are added, moved, modified or removed. The set of currently visible panels is the stack of panels. The stdscr() window is beneath all panels, and is not considered part of the stack.

A window is associated with every panel. The panel routines enable you to create, move, hide, and show panels, as well as position a panel at any desired location in the stack.

Panel routines are a functional layer added to NCurses, make only high-level NCurses calls, and work anywhere terminfo NCurses does.

Enums

NCursesw panels errors.

Functions

Puts panel at the bottom of all panels.

Screen function, returns a pointer to the topmost panel in the given screen.

Removes the given panel from the stack and deallocates the PANEL structure (but not its associated window).

Screen function, returns a pointer to the lowest panel in the given screen.

Removes the given panel from the panel stack and thus hides it from view. The PANEL structure is not lost, merely removed from the stack.

Moves the given panel window so that its upper-left corner is at origin.y, origin.x. It does not change the position of the panel in the stack. Be sure to use this function, not mvwin(), to move a panel window.

Allocates a PANEL structure, associates it with win, places the panel on the top of the stack (causes it to be displayed above any other panel) and returns a pointer to the new panel.

Returns a pointer to the panel above pan. If the panel argument is None, it returns a pointer to the bottom panel in the stack.

Returns a pointer to the panel just below pan. If the panel argument is None, it returns a pointer to the top panel in the stack.

Returns true if the panel is in the panel stack, false if it is not.

Returns the user pointer for a given panel.

Returns a pointer to the window of the given panel.

Replaces the current window of panel with window (useful, for example if you want to resize a panel; if you’re using ncurses, you can call replace_panel() on the output of wresize(3x)). It does not change the position of the panel in the stack.

Sets the panel’s user pointer.

Makes a hidden panel visible by placing it on top of the panels in the panel stack.

Puts the given visible panel on top of all panels in the stack.

Refreshes the virtual screen to reflect the relations between the panels in the stack.

Screen function of update_panels().

Type Definitions