ncurses_mousemaskPodręcznik PHPPoprzedniNastępnyncurses_mousemask (PHP 4 >= 4.2.0)ncurses_mousemask -- Sets mouse optionsDescriptionint ncurses_mousemask ( int newmask, int oldmask)OstrzeżenieTa funkcja jest w stadium
EKSPERYMENTALNYM. Oznacza to, że zachowanie funkcji, jej
nazwa, w zasadzie wszystko udokumentowane tutaj może zostać zmienione w
przyszłych wersjach PHP bez wcześniejszego uprzedzenia. Używaj tej funkcji na
własne ryzyko.
Function ncurses_mousemask() will set mouse events
to be reported. By default no mouse events will be reported. The
function ncurses_mousemask() will return a
mask to indicated which of the in parameter
newmask
specified mouse events can be reported. On complete failure, it
returns 0. In parameter oldmask, which is
passed by reference ncurses_mousemask()
returns the previous value of mouse event mask.
Mouse events are represented bei NCURSES_KEY_MOUSE in the
ncurses_wgetch() input stream. To read the
event data and pop the event of of queue, call
ncurses_getmouse().
As a side effect, setting a zero mousemask in
newmask turns off the mouse
pointer. Setting a non zero value turns mouse pointer on.
mouse mask options can be set with the following predefined
constants:
NCURSES_BUTTON1_PRESSEDNCURSES_BUTTON1_RELEASEDNCURSES_BUTTON1_CLICKEDNCURSES_BUTTON1_DOUBLE_CLICKEDNCURSES_BUTTON1_TRIPLE_CLICKEDNCURSES_BUTTON2_PRESSEDNCURSES_BUTTON2_RELEASEDNCURSES_BUTTON2_CLICKEDNCURSES_BUTTON2_DOUBLE_CLICKEDNCURSES_BUTTON2_TRIPLE_CLICKEDNCURSES_BUTTON3_PRESSEDNCURSES_BUTTON3_RELEASEDNCURSES_BUTTON3_CLICKEDNCURSES_BUTTON3_DOUBLE_CLICKEDNCURSES_BUTTON3_TRIPLE_CLICKEDNCURSES_BUTTON4_PRESSEDNCURSES_BUTTON4_RELEASEDNCURSES_BUTTON4_CLICKEDNCURSES_BUTTON4_DOUBLE_CLICKEDNCURSES_BUTTON4_TRIPLE_CLICKEDNCURSES_BUTTON_SHIFT>NCURSES_BUTTON_CTRLNCURSES_BUTTON_ALTNCURSES_ALL_MOUSE_EVENTSNCURSES_REPORT_MOUSE_POSITION
See also: ncurses_getmouse(),
ncurses_ungetmouse()
ncurese_getch()
Przykład 1. ncurses_mousemask() example$newmask = NCURSES_BUTTON1_CLICKED + NCURSES_BUTTON1_RELEASED;
$mask = ncurses_mousemask($newmask, &$oldmask);
if ($mask & $newmask){
printf ("All specified mouse options will be supported\n");
}
PoprzedniSpis treściNastępnyncurses_mouseintervalPoczątek rozdziałuncurses_move
Wyszukiwarka
Podobne podstrony:
function ncurses can change colorfunction ncurses keyokfunction ncurses clearfunction ncurses vlinefunction ncurses halfdelayfunction ncurses addnstrfunction ncurses mouseintervalfunction ncurses scrlfunction ncurses curs setfunction ncurses killcharfunction ncurses inchfunction ncurses slk attronfunction ncurses addstrfunction ncurses mvhlinefunction ncurses insdellnfunction ncurses standoutfunction ncurses addchnstrwięcej podobnych podstron