1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<fpdoc-descriptions>
<!--
$Id: gpm.xml,v 1.3 2005/04/29 07:57:29 michael Exp $
This file is part of the FPC documentation.
Copyright (C) 1997, by Michael Van Canneyt
The FPC documentation is free text; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The FPC Documentation is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the FPC documentation; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
-->
<package name="rtl">
<module name="gpm">
<short>Interface to GPM (General Purpose Mouse) library</short>
<descr>
<p>
The <file>GPM</file> unit implements an interface to <file>libgpm</file>,
the console program for mouse handling. This unit was created by Peter
Vreman, and is only available on Linux.
</p>
<p>
When this unit is used, your program is linked to the C libraries, so
you must take care of the C library version. Also, it will only work with
version 1.17 or higher of the <file>libgpm</file> library.
</p>
</descr>
<element name="_PATH_VARRUN">
<short>Location of run PID files directory.</short>
</element>
<element name="_PATH_DEV">
<short>Location of <file>/dev</file> directory.</short>
</element>
<element name="GPM_NODE_DIR">
<short>Where to write socket.</short>
</element>
<element name="GPM_NODE_DIR_MODE">
<short>Mode of socket.</short>
</element>
<element name="GPM_NODE_PID">
<short>Name of PID file.</short>
</element>
<element name="GPM_NODE_DEV">
<short>Device socket filename</short>
</element>
<element name="GPM_NODE_CTL">
<short>Control socket</short>
</element>
<element name="GPM_NODE_FIFO">
<short>FIFO name</short>
</element>
<element name="GPM_B_LEFT">
<short>Left mouse button identifier.</short>
</element>
<element name="GPM_B_MIDDLE">
<short>Middle mouse button identifier.</short>
</element>
<element name="GPM_B_RIGHT">
<short>Right mouse button identifier.</short>
</element>
<element name="GPM_MOVE">
<short>Mouse move event.</short>
</element>
<element name="GPM_DRAG">
<short>Mouse drag event.</short>
</element>
<element name="GPM_DOWN">
<short>Mouse button down event.</short>
</element>
<element name="GPM_UP">
<short>Mouse button up event.</short>
</element>
<element name="GPM_SINGLE">
<short>Mouse single click event.</short>
</element>
<element name="GPM_DOUBLE">
<short>Mouse double click event.</short>
</element>
<element name="GPM_TRIPLE">
<short>Mouse triple click event.</short>
</element>
<element name="GPM_MFLAG">
<short>Motion flag.</short>
</element>
<element name="GPM_HARD">
<short>?</short>
</element>
<element name="GPM_ENTER">
<short>Enter area event.</short>
</element>
<element name="GPM_LEAVE">
<short>Leave area event.</short>
</element>
<element name="GPM_TOP">
<short>Top of area.</short>
</element>
<element name="GPM_BOT">
<short>Bottom of area.</short>
</element>
<element name="GPM_LFT">
<short>Left side of area.</short>
</element>
<element name="GPM_RGT">
<short>Right side of area.</short>
</element>
<element name="TGpmEtype">
<short>Type for event type.</short>
</element>
<element name="TGpmMargin">
<short>Type to hold area margin.</short>
</element>
<element name="PGpmEvent">
<short>Pointer to <link id="TGpmEvent"/> record</short>
</element>
<element name="PGpm_Event">
<short>Pointer to <link id="TGpm_Event"/> record</short>
</element>
<element name="TGpmEvent">
<short>Alias for <link id="TGPM_EVent"/> record</short>
</element>
<element name="Tgpm_event">
<short>GPM event record</short>
<descr>
<var>Tgpm_event</var> describes the events that are reported by GPM.
</descr>
</element>
<element name="Tgpm_event.buttons">
<short>Pressed buttons</short>
</element>
<element name="Tgpm_event.modifiers">
<short>Modifier flags</short>
</element>
<element name="Tgpm_event.vc">
<short>Virtual console</short>
</element>
<element name="Tgpm_event.dx">
<short>Change in horizontal position since last event</short>
</element>
<element name="Tgpm_event.dy">
<short>Change in vertical position since last event</short>
</element>
<element name="Tgpm_event.x">
<short>Horizontal position of event</short>
</element>
<element name="Tgpm_event.y">
<short>Vertical position of event</short>
</element>
<element name="Tgpm_event.EventType">
<short>Event type</short>
</element>
<element name="Tgpm_event.clicks">
<short>Number of clicks</short>
</element>
<element name="Tgpm_event.margin">
<short>Position where mouse cursor left the screen.</short>
</element>
<element name="TGpmHandler">
<short>Mouse event handler callback.</short>
</element>
<element name="PGpmConnect">
<short>Pointer to <link id="TGpmConnect"/> record.</short>
</element>
<element name="PGpm_Connect">
<short>Pointer to <link id="TGpm_Connect"/> record.</short>
</element>
<element name="TGpmConnect">
<short>Alias for <link id="TGpm_Connect"/> record.</short>
</element>
<element name="TGpm_Connect">
<short>GPM server connection information.</short>
</element>
<element name="TGpm_Connect.eventMask">
<short>Mask with events which client is interested in</short>
</element>
<element name="TGpm_Connect.defaultMask">
<short>Mask with events that should be handled with defaults</short>
</element>
<element name="TGpm_Connect.minMod">
<short>Minimum amount of modifiers required for client</short>
</element>
<element name="TGpm_Connect.maxMod">
<short>Maximum amount of modifiers client can handle</short>
</element>
<element name="TGpm_Connect.pid">
<short>PID of connecting application</short>
</element>
<element name="TGpm_Connect.vc">
<short>Virtual console that should be handled.</short>
</element>
<element name="PGpmRoi">
<short>Pointer to <link id="TGpmRoi"/> record.</short>
</element>
<element name="TGpmRoi">
<short>Alias for <link id="TGpm_roi"/>Record</short>
</element>
<element name="Pgpm_roi">
<short>Pointer to <link id="Tgpm_roi"/> record.</short>
</element>
<element name="Tgpm_roi">
<short>Record used to define regions of interest.</short>
</element>
<element name="Tgpm_roi.xMin">
<short>Minimum horizontal position.</short>
</element>
<element name="Tgpm_roi.xMax">
<short>Maximum horizontal position.</short>
</element>
<element name="Tgpm_roi.yMin">
<short>Minimum vertical position.</short>
</element>
<element name="Tgpm_roi.yMax">
<short>Maximum horizontal position.</short>
</element>
<element name="Tgpm_roi.minMod">
<short>Minimum modifiers required</short>
</element>
<element name="Tgpm_roi.maxMod">
<short>Maximum modifiers allowed</short>
</element>
<element name="Tgpm_roi.eventMask">
<short>Events to signal</short>
</element>
<element name="Tgpm_roi.owned">
<short>?</short>
</element>
<element name="Tgpm_roi.handler">
<short>Handler to call in case of event.</short>
</element>
<element name="Tgpm_roi.clientdata">
<short>Clientdata to pass to event handler</short>
</element>
<element name="Tgpm_roi.prev">
<short>Previous region of interest.</short>
</element>
<element name="Tgpm_roi.next">
<short>Next region of interest.</short>
</element>
<element name="gpm_flag">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_fd">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_morekeys">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_zerobased">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_visiblepointer">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_mx">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_my">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_timeout">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="_gpm_buf">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="_gpm_arg">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_handler">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_data">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_roi_handler">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_roi_data">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_roi">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_current_roi">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="gpm_consolefd">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="Gpm_HandleRoi">
<short>Internal gpm library variable. Do not use.</short>
</element>
<element name="Gpm_AnyDouble">
<short>Check whether event has double click event.</short>
<descr>
<var>Gpm_AnyDouble</var> returns <var>True</var> if <var>EventType</var> contains
the <var>GPM_DOUBLE</var> flag, <var>False</var> otherwise.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_StrictSingle"/>
<link id="Gpm_AnySingle"/>
<link id="Gpm_StrictDouble"/>
<link id="Gpm_StrictTriple"/>
<link id="Gpm_AnyTriple"/>
</seealso>
</element>
<element name="Gpm_AnySingle">
<short>Check whether event has a single click event.</short>
<descr>
<var>Gpm_AnySingle</var> returns <var>True</var> if <var>EventType</var> contains
the <var>GPM_SINGLE</var> flag, <var>False</var> otherwise.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_StrictSingle"/>
<link id="Gpm_AnyDouble"/>
<link id="Gpm_StrictDouble"/>
<link id="Gpm_StrictTriple"/>
<link id="Gpm_AnyTriple"/>
</seealso>
</element>
<element name="Gpm_AnyTriple">
<short>Check whether event has a triple click event.</short>
<descr>
<var>Gpm_AnySingle</var> returns <var>True</var> if <var>EventType</var> contains
the <var>GPM_TRIPLE</var> flag, <var>False</var> otherwise.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_StrictSingle"/>
<link id="Gpm_AnyDouble"/>
<link id="Gpm_StrictDouble"/>
<link id="Gpm_StrictTriple"/>
<link id="Gpm_AnySingle"/>
</seealso>
</element>
<element name="Gpm_Close">
<short>Close connection to GPM server.</short>
<descr>
<p>
<var>Gpm_Close</var> closes the current connection, and pops the connection
stack; this means that the previous connection becomes active again.
</p>
<p>
The function returns -1 if the current connection is not the last one,
and it returns 0 if the current connection is the last one.
</p>
<p>
for an example, see <link id="Gpm_GetEvent"/>.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_Open"/>
</seealso>
</element>
<element name="Gpm_FitValues">
<short>Change coordinates to fit physical screen.</short>
<descr>
<var>Gpm_fitValues</var> changes <var>x</var> and <var>y</var> so they fit in the visible
screen. The actual mouse pointer is not affected by this function.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_FitValuesM"/>
</seealso>
</element>
<element name="Gpm_FitValuesM">
<short>Change coordinates to fit margin.</short>
<descr>
<var>Gpm_FitValuesM</var> changes <var>x</var> and <var>y</var> so they fit in the margin
indicated by <var>margin</var>. If <var>margin</var> is -1, then the values are fitted
to the screen. The actual mouse pointer is not affected by this function.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_FitValues"/>
</seealso>
</element>
<element name="Gpm_GetEvent">
<short>Get event from event queue.</short>
<descr>
<p>
<var>Gpm_GetEvent</var> Reads an event from the file descriptor <var>gpm_fd</var>.
This file is only for internal use and should never be called by a client
application.
</p>
<p>
It returns 1 on success, and -1 on failure.
</p>
</descr>
<errors>
On error, -1 is returned.
</errors>
<seealso>
<link id="Gpm_GetSnapshot"/>
</seealso>
<example file="gpmex/gpmex"/>
</element>
<element name="Gpm_GetLibVersion">
<short>Return GPM library version.</short>
<descr>
<p>
<var>Gpm_GetLibVersion</var> returns a pointer to a version string, and returns
in <var>where</var> an integer representing the version. The version string
represents the version of the gpm library.
</p>
<p>
The return value is a pchar, which should not be deallocated, i.e. it is not
on the heap.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_GetServerVersion"/>
</seealso>
</element>
<element name="Gpm_GetServerVersion">
<short>Return GPM server version.</short>
<descr>
<p>
<var>Gpm_GetServerVersion</var> returns a pointer to a version string, and
returns in <var>where</var> an integer representing the version. The version string
represents the version of the gpm server program.
</p>
<p>
The return value is a pchar, which should not be deallocated, i.e. it is not
on the heap.
</p>
</descr>
<errors>
If the gpm program is not present, then the function returns <var>Nil</var>
</errors>
<seealso>
<link id="Gpm_GetLibVersion"/>
</seealso>
</element>
<element name="Gpm_GetSnapshot">
<short>Return servers' current image of mouse state.</short>
<descr>
<p>
<var>Gpm_GetSnapshot</var> returns the picture that the server has of the
current situation in <var>Event</var>.
This call will not read the current situation from the mouse file
descriptor, but returns a buffered version.
</p>
<p>
The function returns the number of mouse buttons, or -1 if this information
is not available.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_GetEvent"/>
</seealso>
</element>
<element name="Gpm_LowerRoi">
<short>Lower a region of interest in the stack.</short>
<descr>
<p>
<var>Gpm_LowerRoi</var> lowers the region of interest <var>which</var> after
<var>after</var>. If <var>after</var> is <var>Nil</var>, the region of interest is moved to
the bottom of the stack.
</p>
<p>
The return value is the new top of the region-of-interest stack.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_RaiseRoi"/>
<link id="Gpm_PopRoi"/>
<link id="Gpm_PushRoi"/>
</seealso>
</element>
<element name="Gpm_Open">
<short>Open connection to GPM server.</short>
<descr>
<p>
<var>Gpm_Open</var> opens a new connection to the mouse server. The connection
is described by the fields of the <var>conn</var> record of type
<link id="TGPMConnect"/>.
</p>
<p>
if <var>Flag</var> is 0, then the application only receives events that come from
its own terminal device. If it is negative it will receive all events. If
the value is positive then it is considered a console number to which to
connect.
</p>
<p>
The return value is -1 on error, or the file descriptor used to communicate
with the client. Under an X-Term the return value is -2.
</p>
<p>
for an example, see <link id="Gpm_GetEvent"/>.
</p>
</descr>
<errors>
On Error, the return value is -1.
</errors>
<seealso>
<link id="Gpm_Open"/>
</seealso>
</element>
<element name="Gpm_PopRoi">
<short>Pop region of interest from the stack.</short>
<descr>
<var>Gpm_PopRoi</var> pops the topmost region of interest from the stack.
It returns the next element on the stack, or <var>Nil</var> if the current
element was the last one.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_RaiseRoi"/>
<link id="Gpm_LowerRoi"/>
<link id="Gpm_PushRoi"/>
</seealso>
</element>
<element name="Gpm_PushRoi">
<short>Push region of interest on the stack.</short>
<descr>
<p>
<var>Gpm_PushRoi</var> puts a new <em>region of interest</em> on the stack.
The region of interest is defined by a rectangle described by the corners
<var>(X1,Y1)</var> and <var>(X2,Y2)</var>.
</p>
<p>
The <var>mask</var> describes which events the handler {fun} will handle;
<var>ExtraData</var> will be put in the <var>xtradata</var> field of the {TGPM_Roi}
record passed to the <var>fun</var> handler.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_RaiseRoi"/>
<link id="Gpm_PopRoi"/>
<link id="Gpm_LowerRoi"/>
</seealso>
</element>
<element name="Gpm_RaiseRoi">
<short>Raise region of interest in the stack.</short>
<descr>
<var>Gpm_RaiseRoi</var> raises the <em>region of interest</em> <var>which</var> till it
is on top of region <var>before</var>. If <var>before</var> is nil then the region is
put on top of the stack. The returned value is the top of the stack.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_PushRoi"/>
<link id="Gpm_PopRoi"/>
<link id="Gpm_LowerRoi"/>
</seealso>
</element>
<element name="Gpm_Repeat">
<short>Check for presence of mouse event.</short>
<descr>
<var>Gpm_Repeat</var> returns 1 of no mouse event arrives in the next
<var>millisec</var> miiliseconds, it returns 0 otherwise.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_GetEvent"/>
</seealso>
</element>
<element name="Gpm_StrictDouble">
<short>Check whether event contains only a double-click event.</short>
<descr>
<var>Gpm_StrictDouble</var> returns true if <var>EventType</var> contains only a
doubleclick event, <var>False</var> otherwise.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_StrictSingle"/>
<link id="Gpm_AnyTriple"/>
<link id="Gpm_AnyDouble"/>
<link id="Gpm_StrictTriple"/>
<link id="Gpm_AnySingle"/>
</seealso>
</element>
<element name="Gpm_StrictSingle">
<short>Check whether event contains only a single-click event.</short>
<descr>
<var>Gpm_StrictDouble</var> returns <var>True</var> if <var>EventType</var> contains only a
singleclick event, <var>False</var> otherwise.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_AnyTriple"/>
<link id="Gpm_StrictDouble"/>
<link id="Gpm_AnyDouble"/>
<link id="Gpm_StrictTriple"/>
<link id="Gpm_AnySingle"/>
</seealso>
</element>
<element name="Gpm_StrictTriple">
<short>Check whether event contains only a triple-click event.</short>
<descr>
<var>Gpm_StrictTriple</var> returns true if <var>EventType</var> contains only a
triple click event, <var>False</var> otherwise.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Gpm_AnyTriple"/>
<link id="Gpm_StrictDouble"/>
<link id="Gpm_AnyDouble"/>
<link id="Gpm_StrictSingle"/>
<link id="Gpm_AnySingle"/>
</seealso>
</element>
<element name="GPM_MAGIC">
<short>Constant identifying GPM in <link id="Gpm_Open"/>.</short>
</element>
<element name="baseUnix">
<short>Basic UNIX definitions</short>
</element>
<!-- variable Visibility: default -->
<element name="Tgpm_event.wdx">
<short>Horizontal size</short>
</element>
<!-- variable Visibility: default -->
<element name="Tgpm_event.wdy">
<short>Vertical size</short>
</element>
</module>
</package>
</fpdoc-descriptions>
|