ncurses-0.2.4: Modernised bindings to GNU ncurses

Safe HaskellNone

UI.NCurses.Panel

Synopsis

Documentation

newPanel :: Window -> Curses PanelSource

Creates a new Panel, on top of the panel stack.

deletePanel :: Panel -> Curses ()Source

Permanently removes the given panel from the panel stack.

refreshPanels :: Curses ()Source

Updates windows to account for the current panel stack order. The user must call render before changes are drawn to the screen.

panelAbove :: Panel -> Curses (Maybe Panel)Source

panelAbove p retrieve the panel above p.

panelBelow :: Panel -> Curses (Maybe Panel)Source

panelAbove p retrieve the panel below p.

panelTop :: Curses (Maybe Panel)Source

Retrieve the top–most panel in the stack.

panelBottom :: Curses (Maybe Panel)Source

Retrieve the bottom–most panel in the stack.

showPanel :: Panel -> Curses ()Source

Makes a hidden panel visible, and places it on the top of the stack.

hidePanel :: Panel -> Curses ()Source

Temporarily removes the given panel from the panel stack. Use showPanel to restore it.

panelHidden :: Panel -> Curses BoolSource

Checks if the given panel is currently visible.

movePanelSource

Arguments

:: Panel 
-> Integer

New upper–left row

-> Integer

New upper–left column

-> Curses () 

Move the panel so its upper–left corner is at the new coordinates.

raisePanel :: Panel -> Curses ()Source

Raise a bottom to the top of the stack.

lowerPanel :: Panel -> Curses ()Source

Lower a panel to the bottom of the stack.

getPanelWindow :: Panel -> Curses WindowSource

Retrieves which window a panel is drawn to.

replacePanelWindow :: Panel -> Window -> Curses ()Source

Replaces which window a panel is drawn to.