Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
efc43d44
Kaydet (Commit)
efc43d44
authored
Haz 30, 2000
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document recently-added mouse-related functions
üst
01016fe9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
libcurses.tex
Doc/lib/libcurses.tex
+50
-0
No files found.
Doc/lib/libcurses.tex
Dosyayı görüntüle @
efc43d44
...
...
@@ -130,6 +130,27 @@ Flash the screen.
Flush all input buffers.
\end{funcdesc}
\begin{funcdesc}
{
getmouse
}{}
After
\method
{
getch()
}
returns
\constant
{
KEY
_
MOUSE
}
to signal a mouse
event, this method should be call to retrieve the queued mouse event,
represented as a 5-tuple
\code
{
(
\var
{
id
}
,
\var
{
x
}
,
\var
{
y
}
,
\var
{
z
}
,
\var
{
bstate
}
)
}
.
\var
{
id
}
is an ID value used to distinguish multiple devices,
and
\var
{
x
}
,
\var
{
y
}
,
\var
{
z
}
are the event's coordinates. (
\var
{
z
}
is currently unused.).
\var
{
bstate
}
is an integer value whose bits
will be set to indicate the type of event, and will be the bitwise OR
of one or more of the following constants, where
\var
{
n
}
is the button
number from 1 to 4:
\constant
{
BUTTON
\var
{
n
}_
PRESSED
}
,
\constant
{
BUTTON
\var
{
n
}_
RELEASED
}
,
\constant
{
BUTTON
\var
{
n
}_
CLICKED
}
,
\constant
{
BUTTON
\var
{
n
}_
DOUBLE
_
CLICKED
}
,
\constant
{
BUTTON
\var
{
n
}_
TRIPLE
_
CLICKED
}
,
\constant
{
BUTTON
_
SHIFT
}
,
\constant
{
BUTTON
_
CTRL
}
,
\constant
{
BUTTON
_
ALT
}
.
\end{funcdesc}
\begin{funcdesc}
{
getsyx
}{}
Returns the current coordinates of the virtual screen cursor in y and
x. If leaveok is currently true, then -1,-1 is returned.
...
...
@@ -221,6 +242,23 @@ If \var{yes} is 1, allow 8-bit characters. If \var{yes} is 0,
allow only 7-bit chars.
\end{funcdesc}
\begin{funcdesc}
{
mouseinterval
}{
interval
}
Sets the maximum time in millisecondsthat can elapse between press and
release events in order for them to be recognized as a click, and
returns the previous interval value. The default value is 200 msec,
or one fifth of a second.
\end{funcdesc}
\begin{funcdesc}
{
mousemask
}{
mousemask
}
Sets the mouse events to be reported, and returns a tuple
\code
{
(
\var
{
availmask
}
,
\var
{
oldmask
}
)
}
.
\var
{
availmask
}
indicates which of the
specified mouse events can be reported; on complete failure it returns
0.
\var
{
oldmask
}
is the previous value of the given window's mouse
event mask. If this function is never called, no mouse events are
ever reported.
\end{funcdesc}
\begin{funcdesc}
{
newpad
}{
nlines, ncols
}
Creates and returns a pointer to a new pad data structure with the
given number of lines and columns. A pad is returned as a
...
...
@@ -370,6 +408,11 @@ Push \var{ch} so the next \method{getch()} will return it.
is called.
\end{funcdesc}
\begin{funcdesc}
{
ungetmouse
}{
id, x, y, z, bstate
}
Push a
\constant
{
KEY
_
MOUSE
}
event onto the input queue, associating
the given state data with it.
\end{funcdesc}
\begin{funcdesc}
{
use
_
env
}{
flag
}
If used, this function should be called before
\function
{
initscr
}
or
newterm are called. When
\var
{
flag
}
is false, the values of
...
...
@@ -522,6 +565,13 @@ Add character \var{ch} with attribute \var{attr}, and immediately
call
\method
{
refresh
}
.
\end{methoddesc}
\begin{methoddesc}
{
enclose
}{
y, x
}
Tests whether the given pair of screen-relative character-cell
coordinates are enclosed by the given window, returning true or
false. It is useful for determining what subset of the screen
windows enclose the location of a mouse event.
\end{methoddesc}
\begin{methoddesc}
{
erase
}{}
Clear the window.
\end{methoddesc}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment