Manuale PHP
Indietro |  | Avanti

# XCI. Newt Functions

# Introduzione

This is a PHP language extension for RedHat Newt library, a terminal-based window and widget library for writing applications with user friendly interface. Once this extension is enabled in PHP it will provide the use of Newt widgets, such as windows, buttons, checkboxes, radiobuttons, labels, editboxes, scrolls, textareas, scales, etc. Use of this extension if very similar to the original Newt API of C programming language.

# Requisiti

This module uses the functions of the RedHat Newt library. You need libnewt version >= 0.51.0.

# Installazione

This PECL extension is not bundled with PHP. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: http://pecl.php.net/package/newt.

In PHP 4 this PECL extensions source can be found in the `ext/` directory within the PHP source or at the PECL link above. In order to use these functions you must compile CGI or CLI PHP with newt support by using the --with-newt[=DIR] configure option.

> Nota: This extension is not available for Windows platform.

> You may need also curses and slang libraries, in order to compile this extension. To specify locations of these libraries, use the followin configuration options: --with-curses-dir=/path/to/libcurses --with-slang-dir=/path/to/libslang

# Tipi di risorse

This extension uses two resource types: "newt component" and "newt grid". Resource type "newt component" is returned by functions, which create common newt widgets (for example: newt_button()) Resource type "newt grid" is a special link identifier for components, returned by newt grid factory functions (for example: newt_create_grid())

# Costanti predefinite

Queste costanti sono definite da questa estensione e sono disponibili solo se l'estensione è stata compilata nel PHP o se è stata caricata dinamicamente a runtime.

`NEWT_COLORSET_ROOT` (integer)

`NEWT_COLORSET_BORDER` (integer)

`NEWT_COLORSET_WINDOW` (integer)

`NEWT_COLORSET_SHADOW` (integer)

`NEWT_COLORSET_TITLE` (integer)

`NEWT_COLORSET_BUTTON` (integer)

`NEWT_COLORSET_ACTBUTTON` (integer)

`NEWT_COLORSET_CHECKBOX` (integer)

`NEWT_COLORSET_ACTCHECKBOX` (integer)

`NEWT_COLORSET_ENTRY` (integer)

`NEWT_COLORSET_LABEL` (integer)

`NEWT_COLORSET_LISTBOX` (integer)

`NEWT_COLORSET_ACTLISTBOX` (integer)

`NEWT_COLORSET_TEXTBOX` (integer)

`NEWT_COLORSET_ACTTEXTBOX` (integer)

`NEWT_COLORSET_HELPLINE` (integer)

`NEWT_COLORSET_ROOTTEXT` (integer)

`NEWT_COLORSET_EMPTYSCALE` (integer)

`NEWT_COLORSET_FULLSCALE` (integer)

`NEWT_COLORSET_DISENTRY` (integer)

`NEWT_COLORSET_COMPACTBUTTON` (integer)

`NEWT_COLORSET_ACTSELLISTBOX` (integer)

`NEWT_COLORSET_SELLISTBOX` (integer)

`NEWT_ARG_LAST` (integer)

`NEWT_ARG_APPEND` (integer)

`NEWT_FLAGS_SET` (integer)

`NEWT_FLAGS_RESET` (integer)

`NEWT_FLAGS_TOGGLE` (integer)

`NEWT_FLAG_RETURNEXIT` (integer)

`NEWT_FLAG_HIDDEN` (integer)

`NEWT_FLAG_SCROLL` (integer)

`NEWT_FLAG_DISABLED` (integer)

`NEWT_FLAG_BORDER` (integer)

`NEWT_FLAG_WRAP` (integer)

`NEWT_FLAG_NOF12` (integer)

`NEWT_FLAG_MULTIPLE` (integer)

`NEWT_FLAG_SELECTED` (integer)

`NEWT_FLAG_CHECKBOX` (integer)

`NEWT_FLAG_PASSWORD` (integer)

`NEWT_FLAG_SHOWCURSOR` (integer)

`NEWT_FD_READ` (integer)

`NEWT_FD_WRITE` (integer)

`NEWT_FD_EXCEPT` (integer)

`NEWT_CHECKBOXTREE_UNSELECTABLE` (integer)

`NEWT_CHECKBOXTREE_HIDE_BOX` (integer)

`NEWT_CHECKBOXTREE_COLLAPSED` (integer)

`NEWT_CHECKBOXTREE_EXPANDED` (integer)

`NEWT_CHECKBOXTREE_UNSELECTED` (integer)

`NEWT_CHECKBOXTREE_SELECTED` (integer)

`NEWT_LISTBOX_RETURNEXIT` (integer)

`NEWT_ENTRY_SCROLL` (integer)

`NEWT_ENTRY_HIDDEN` (integer)

`NEWT_ENTRY_RETURNEXIT` (integer)

`NEWT_ENTRY_DISABLED` (integer)

`NEWT_TEXTBOX_WRAP` (integer)

`NEWT_TEXTBOX_SCROLL` (integer)

`NEWT_FORM_NOF12` (integer)

`NEWT_EXIT_HOTKEY` (integer)

`NEWT_EXIT_COMPONENT` (integer)

`NEWT_EXIT_FDREADY` (integer)

`NEWT_EXIT_TIMER` (integer)

`NEWT_KEY_TAB` (integer)

`NEWT_KEY_ENTER` (integer)

`NEWT_KEY_SUSPEND` (integer)

`NEWT_KEY_ESCAPE` (integer)

`NEWT_KEY_RETURN` (integer)

`NEWT_KEY_EXTRA_BASE` (integer)

`NEWT_KEY_UP` (integer)

`NEWT_KEY_DOWN` (integer)

`NEWT_KEY_LEFT` (integer)

`NEWT_KEY_RIGHT` (integer)

`NEWT_KEY_BKSPC` (integer)

`NEWT_KEY_DELETE` (integer)

`NEWT_KEY_HOME` (integer)

`NEWT_KEY_END` (integer)

`NEWT_KEY_UNTAB` (integer)

`NEWT_KEY_PGUP` (integer)

`NEWT_KEY_PGDN` (integer)

`NEWT_KEY_INSERT` (integer)

`NEWT_KEY_F1` (integer)

`NEWT_KEY_F2` (integer)

`NEWT_KEY_F3` (integer)

`NEWT_KEY_F4` (integer)

`NEWT_KEY_F5` (integer)

`NEWT_KEY_F6` (integer)

`NEWT_KEY_F7` (integer)

`NEWT_KEY_F8` (integer)

`NEWT_KEY_F9` (integer)

`NEWT_KEY_F10` (integer)

`NEWT_KEY_F11` (integer)

`NEWT_KEY_F12` (integer)

`NEWT_KEY_RESIZE` (integer)

`NEWT_ANCHOR_LEFT` (integer)

`NEWT_ANCHOR_RIGHT` (integer)

`NEWT_ANCHOR_TOP` (integer)

`NEWT_ANCHOR_BOTTOM` (integer)

`NEWT_GRID_FLAG_GROWX` (integer)

`NEWT_GRID_FLAG_GROWY` (integer)

`NEWT_GRID_EMPTY` (integer)

`NEWT_GRID_COMPONENT` (integer)

`NEWT_GRID_SUBGRID` (integer)

Indietro | Partenza | Avanti
syslog | Risali | newt_bell