/usr/include/gpac/events.h is in libgpac-dev 0.4.5+svn3462~dfsg0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 | /*
* GPAC - Multimedia Framework C SDK
*
* Copyright (c) Jean Le Feuvre 2000-2005
* All rights reserved
*
* This file is part of GPAC / Events management
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* GPAC 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; see the file COPYING. If not, write to
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#ifndef _GF_EVENTS_H_
#define _GF_EVENTS_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <gpac/math.h>
#include <gpac/tools.h>
/*
minimal event system
DO NOT CHANGE THEIR POSITION IN THE LIST, USED TO SPEED UP FILTERING OF USER INPUT EVENTS
*/
/*events*/
enum {
/******************************************************
Events used for both GPAC internals and DOM Events
*******************************************************/
/*MouseEvents*/
GF_EVENT_CLICK,
GF_EVENT_MOUSEUP,
GF_EVENT_MOUSEDOWN,
GF_EVENT_MOUSEOVER,
GF_EVENT_MOUSEOUT,
/*!! ALL MOUSE EVENTS SHALL BE DECLARED BEFORE MOUSEMOVE !! */
GF_EVENT_MOUSEMOVE,
/*mouse wheel event*/
GF_EVENT_MOUSEWHEEL,
/*Key Events*/
GF_EVENT_KEYUP,
GF_EVENT_KEYDOWN, /* covers KeyDown, KeyPress and AccessKey */
GF_EVENT_LONGKEYPRESS,
/*character input*/
GF_EVENT_TEXTINPUT,
/******************************************************
Events used for DOM Events only
*******************************************************/
GF_EVENT_TEXTSELECT,
/*DOM UIEvents*/
GF_EVENT_FOCUSIN,
GF_EVENT_FOCUSOUT,
GF_EVENT_ACTIVATE,
GF_EVENT_CHANGE,
GF_EVENT_FOCUS,
GF_EVENT_BLUR,
/*SVG (HTML) Events*/
GF_EVENT_LOAD,
GF_EVENT_UNLOAD,
GF_EVENT_ABORT,
GF_EVENT_ERROR,
GF_EVENT_RESIZE,
GF_EVENT_SCROLL,
GF_EVENT_ZOOM,
GF_EVENT_BEGIN, /*this is a fake event, it is NEVER fired, only used in SMIL begin*/
GF_EVENT_BEGIN_EVENT,
GF_EVENT_END, /*this is a fake event, it is NEVER fired, only used in SMIL end*/
GF_EVENT_END_EVENT,
GF_EVENT_REPEAT, /*this is a fake event, it is NEVER fired, only used in SMIL repeat*/
GF_EVENT_REPEAT_EVENT,
/*DOM MutationEvents - NOT SUPPORTED YET*/
GF_EVENT_TREE_MODIFIED,
GF_EVENT_NODE_INSERTED,
GF_EVENT_NODE_REMOVED,
GF_EVENT_NODE_INSERTED_DOC,
GF_EVENT_NODE_REMOVED_DOC,
GF_EVENT_ATTR_MODIFIED,
GF_EVENT_CHAR_DATA_MODIFIED,
GF_EVENT_NODE_NAME_CHANGED,
GF_EVENT_ATTR_NAME_CHANGED,
GF_EVENT_DCCI_PROP_CHANGE,
/*LASeR events*/
GF_EVENT_ACTIVATED,
GF_EVENT_DEACTIVATED,
GF_EVENT_PAUSE,
GF_EVENT_PAUSED_EVENT,
GF_EVENT_PLAY,
GF_EVENT_REPEAT_KEY,
GF_EVENT_RESUME_EVENT,
GF_EVENT_SHORT_ACCESSKEY,
/*pseudo-event, only used in LASeR coding*/
GF_EVENT_EXECUTION_TIME,
/*MediaAccess events - cf http://www.w3.org/TR/MediaAccessEvents*/
GF_EVENT_MEDIA_BEGIN_SESSION_SETUP,
GF_EVENT_MEDIA_END_SESSION_SETUP,
GF_EVENT_MEDIA_DATA_REQUEST,
GF_EVENT_MEDIA_PLAYABLE,
GF_EVENT_MEDIA_NOT_PLAYABLE,
GF_EVENT_MEDIA_DATA_PROGRESS,
GF_EVENT_MEDIA_END_OF_DATA,
GF_EVENT_MEDIA_STOP,
GF_EVENT_MEDIA_ERROR,
GF_EVENT_BATTERY,
GF_EVENT_CPU,
GF_EVENT_UNKNOWN,
/******************************************************
Events used for GPAC internals only
*******************************************************/
/*same as mousedown, generated internally by GPAC*/
GF_EVENT_DBLCLICK,
/*scene attached event, dispatched when the root node of a scene is loaded and
attached to the window or parent object (animation, inline, ...)*/
GF_EVENT_SCENE_ATTACHED,
/*VP resize attached event, dispatched when viewport of a scene is being modified
attached to the window or parent object (animation, inline, ...)*/
GF_EVENT_VP_RESIZE,
/*window events*/
/*size has changed - indicate new w & h in .x end .y fields of event.
When sent from gpac to a video plugin, indicates the output size should be changed. This is only sent when the plugin
manages the output video himself
When sent from a video plugin to gpac, indicates the output size has been changed. This is only sent when the plugin
manages the output video himself
*/
GF_EVENT_SIZE,
/*signals the scene size (if indicated in scene) upon connection (sent to the user event proc only)
if scene size hasn't changed (seeking or other) this event is not sent
*/
GF_EVENT_SCENE_SIZE,
GF_EVENT_SHOWHIDE, /*window show/hide (minimized or other). This is also sent to the user to signal focus switch in fullscreen*/
GF_EVENT_SET_CURSOR, /*set mouse cursor*/
GF_EVENT_SET_CAPTION, /*set window caption*/
GF_EVENT_MOVE, /*move window*/
GF_EVENT_REFRESH, /*window needs repaint (whenever needed, eg restore, hide->show, background refresh, paint)*/
GF_EVENT_QUIT, /*window is being closed*/
/*video hw setup message:
- when sent from gpac to plugin, indicates that the plugin should re-setup hardware context due to a window resize:
* for 2D output, this means resizing the backbuffer if needed (depending on HW constraints)
* for 3D output, this means re-setup of OpenGL context (depending on HW constraints). Depending on windowing systems
and implementations, it could be possible to resize a window without destroying the GL context.
- when sent from plugin to gpac, indicates that hardware resources must be resetup before next render step (this is mainly
due to discard all openGL textures and cached objects)
*/
GF_EVENT_VIDEO_SETUP,
/*queries the list of system colors - only exchanged between compositor and video output*/
GF_EVENT_SYS_COLORS,
/*indicates some text has been pasted - from video output to compositor only*/
GF_EVENT_PASTE_TEXT,
/*queries for text to be copied - from video output to compositor only*/
GF_EVENT_COPY_TEXT,
/*terminal events*/
GF_EVENT_CONNECT, /*signal URL is connected*/
GF_EVENT_DURATION, /*signal duration of presentation*/
GF_EVENT_EOS, /*signal End of scene playback*/
GF_EVENT_AUTHORIZATION, /*indicates a user and pass is queried*/
GF_EVENT_NAVIGATE, /*indicates the user app should load or jump to the given URL.*/
GF_EVENT_NAVIGATE_INFO, /*indicates the link or its description under the mouse pointer*/
GF_EVENT_MESSAGE, /*message from the MPEG-4 terminal*/
GF_EVENT_PROGRESS, /*progress message from the MPEG-4 terminal*/
GF_EVENT_FORWARDED, /*event forwarded by service (MPEG-2, RTP, ...)*/
GF_EVENT_VIEWPOINTS, /*indicates viewpoint list has changed - no struct associated*/
GF_EVENT_STREAMLIST, /*indicates stream list has changed - no struct associated - only used when no scene info is present*/
GF_EVENT_METADATA, /*indicates a change in associated metadata*/
GF_EVENT_MIGRATE, /*indicates a session migration request*/
GF_EVENT_DISCONNECT, /*indicates the current url should be disconnected*/
GF_EVENT_RESOLUTION, /*indicates the screen resolution has changed*/
GF_EVENT_OPENFILE,
/* Events for Keyboad */
GF_EVENT_TEXT_EDITING_START,
GF_EVENT_TEXT_EDITING_END
};
/*GPAC/DOM3 key codes*/
enum {
GF_KEY_UNIDENTIFIED = 0,
GF_KEY_ACCEPT = 1, /* "Accept" The Accept (Commit) key.*/
GF_KEY_AGAIN, /* "Again" The Again key.*/
GF_KEY_ALLCANDIDATES, /* "AllCandidates" The All Candidates key.*/
GF_KEY_ALPHANUM, /*"Alphanumeric" The Alphanumeric key.*/
GF_KEY_ALT, /*"Alt" The Alt (Menu) key.*/
GF_KEY_ALTGRAPH, /*"AltGraph" The Alt-Graph key.*/
GF_KEY_APPS, /*"Apps" The Application key.*/
GF_KEY_ATTN, /*"Attn" The ATTN key.*/
GF_KEY_BROWSERBACK, /*"BrowserBack" The Browser Back key.*/
GF_KEY_BROWSERFAVORITES, /*"BrowserFavorites" The Browser Favorites key.*/
GF_KEY_BROWSERFORWARD, /*"BrowserForward" The Browser Forward key.*/
GF_KEY_BROWSERHOME, /*"BrowserHome" The Browser Home key.*/
GF_KEY_BROWSERREFRESH, /*"BrowserRefresh" The Browser Refresh key.*/
GF_KEY_BROWSERSEARCH, /*"BrowserSearch" The Browser Search key.*/
GF_KEY_BROWSERSTOP, /*"BrowserStop" The Browser Stop key.*/
GF_KEY_CAPSLOCK, /*"CapsLock" The Caps Lock (Capital) key.*/
GF_KEY_CLEAR, /*"Clear" The Clear key.*/
GF_KEY_CODEINPUT, /*"CodeInput" The Code Input key.*/
GF_KEY_COMPOSE, /*"Compose" The Compose key.*/
GF_KEY_CONTROL, /*"Control" The Control (Ctrl) key.*/
GF_KEY_CRSEL, /*"Crsel" The Crsel key.*/
GF_KEY_CONVERT, /*"Convert" The Convert key.*/
GF_KEY_COPY, /*"Copy" The Copy key.*/
GF_KEY_CUT, /*"Cut" The Cut key.*/
GF_KEY_DOWN, /*"Down" The Down Arrow key.*/
GF_KEY_END, /*"End" The End key.*/
GF_KEY_ENTER, /*"Enter" The Enter key.
Note: This key identifier is also used for the Return (Macintosh numpad) key.*/
GF_KEY_ERASEEOF, /*"EraseEof" The Erase EOF key.*/
GF_KEY_EXECUTE, /*"Execute" The Execute key.*/
GF_KEY_EXSEL, /*"Exsel" The Exsel key.*/
GF_KEY_F1, /*"F1" The F1 key.*/
GF_KEY_F2, /*"F2" The F2 key.*/
GF_KEY_F3, /*"F3" The F3 key.*/
GF_KEY_F4, /*"F4" The F4 key.*/
GF_KEY_F5, /*"F5" The F5 key.*/
GF_KEY_F6, /*"F6" The F6 key.*/
GF_KEY_F7, /*"F7" The F7 key.*/
GF_KEY_F8, /*"F8" The F8 key.*/
GF_KEY_F9, /*"F9" The F9 key.*/
GF_KEY_F10, /*"F10" The F10 key.*/
GF_KEY_F11, /*"F11" The F11 key.*/
GF_KEY_F12, /*"F12" The F12 key.*/
GF_KEY_F13, /*"F13" The F13 key.*/
GF_KEY_F14, /*"F14" The F14 key.*/
GF_KEY_F15, /*"F15" The F15 key.*/
GF_KEY_F16, /*"F16" The F16 key.*/
GF_KEY_F17, /*"F17" The F17 key.*/
GF_KEY_F18, /*"F18" The F18 key.*/
GF_KEY_F19, /*"F19" The F19 key.*/
GF_KEY_F20, /*"F20" The F20 key.*/
GF_KEY_F21, /*"F21" The F21 key.*/
GF_KEY_F22, /*"F22" The F22 key.*/
GF_KEY_F23, /*"F23" The F23 key.*/
GF_KEY_F24, /*"F24" The F24 key.*/
GF_KEY_FINALMODE, /*"FinalMode" The Final Mode (Final) key used on some asian keyboards.*/
GF_KEY_FIND, /*"Find" The Find key.*/
GF_KEY_FULLWIDTH, /*"FullWidth" The Full-Width Characters key.*/
GF_KEY_HALFWIDTH, /*"HalfWidth" The Half-Width Characters key.*/
GF_KEY_HANGULMODE, /*"HangulMode" The Hangul (Korean characters) Mode key.*/
GF_KEY_HANJAMODE, /*"HanjaMode" The Hanja (Korean characters) Mode key.*/
GF_KEY_HELP, /*"Help" The Help key.*/
GF_KEY_HIRAGANA, /*"Hiragana" The Hiragana (Japanese Kana characters) key.*/
GF_KEY_HOME, /*"Home" The Home key.*/
GF_KEY_INSERT, /*"Insert" The Insert (Ins) key.*/
GF_KEY_JAPANESEHIRAGANA, /*"JapaneseHiragana" The Japanese-Hiragana key.*/
GF_KEY_JAPANESEKATAKANA, /*"JapaneseKatakana" The Japanese-Katakana key.*/
GF_KEY_JAPANESEROMAJI, /*"JapaneseRomaji" The Japanese-Romaji key.*/
GF_KEY_JUNJAMODE, /*"JunjaMode" The Junja Mode key.*/
GF_KEY_KANAMODE, /*"KanaMode" The Kana Mode (Kana Lock) key.*/
GF_KEY_KANJIMODE, /*"KanjiMode" The Kanji (Japanese name for ideographic characters of Chinese origin) Mode key.*/
GF_KEY_KATAKANA, /*"Katakana" The Katakana (Japanese Kana characters) key.*/
GF_KEY_LAUNCHAPPLICATION1, /*"LaunchApplication1" The Start Application One key.*/
GF_KEY_LAUNCHAPPLICATION2, /*"LaunchApplication2" The Start Application Two key.*/
GF_KEY_LAUNCHMAIL, /*"LaunchMail" The Start Mail key.*/
GF_KEY_LEFT, /*"Left" The Left Arrow key.*/
GF_KEY_META, /*"Meta" The Meta key.*/
GF_KEY_MEDIANEXTTRACK, /*"MediaNextTrack" The Media Next Track key.*/
GF_KEY_MEDIAPLAYPAUSE, /*"MediaPlayPause" The Media Play Pause key.*/
GF_KEY_MEDIAPREVIOUSTRACK, /*"MediaPreviousTrack" The Media Previous Track key.*/
GF_KEY_MEDIASTOP, /*"MediaStop" The Media Stok key.*/
GF_KEY_MODECHANGE, /*"ModeChange" The Mode Change key.*/
GF_KEY_NONCONVERT, /*"Nonconvert" The Nonconvert (Don't Convert) key.*/
GF_KEY_NUMLOCK, /*"NumLock" The Num Lock key.*/
GF_KEY_PAGEDOWN, /*"PageDown" The Page Down (Next) key.*/
GF_KEY_PAGEUP, /*"PageUp" The Page Up key.*/
GF_KEY_PASTE, /*"Paste" The Paste key.*/
GF_KEY_PAUSE, /*"Pause" The Pause key.*/
GF_KEY_PLAY, /*"Play" The Play key.*/
GF_KEY_PREVIOUSCANDIDATE, /*"PreviousCandidate" The Previous Candidate function key.*/
GF_KEY_PRINTSCREEN, /*"PrintScreen" The Print Screen (PrintScrn, SnapShot) key.*/
GF_KEY_PROCESS, /*"Process" The Process key.*/
GF_KEY_PROPS, /*"Props" The Props key.*/
GF_KEY_RIGHT, /*"Right" The Right Arrow key.*/
GF_KEY_ROMANCHARACTERS, /*"RomanCharacters" The Roman Characters function key.*/
GF_KEY_SCROLL, /*"Scroll" The Scroll Lock key.*/
GF_KEY_SELECT, /*"Select" The Select key.*/
GF_KEY_SELECTMEDIA, /*"SelectMedia" The Select Media key.*/
GF_KEY_SHIFT, /*"Shift" The Shift key.*/
GF_KEY_STOP, /*"Stop" The Stop key.*/
GF_KEY_UP, /*"Up" The Up Arrow key.*/
GF_KEY_UNDO, /*"Undo" The Undo key.*/
GF_KEY_VOLUMEDOWN, /*"VolumeDown" The Volume Down key.*/
GF_KEY_VOLUMEMUTE, /*"VolumeMute" The Volume Mute key.*/
GF_KEY_VOLUMEUP, /*"VolumeUp" The Volume Up key.*/
GF_KEY_WIN, /*"Win" The Windows Logo key.*/
GF_KEY_ZOOM, /*"Zoom" The Zoom key.*/
GF_KEY_BACKSPACE, /*"U+0008" The Backspace (Back) key.*/
GF_KEY_TAB, /*"U+0009" The Horizontal Tabulation (Tab) key.*/
GF_KEY_CANCEL, /*"U+0018" The Cancel key.*/
GF_KEY_ESCAPE, /*"U+001B" The Escape (Esc) key.*/
GF_KEY_SPACE, /*"U+0020" The Space (Spacebar) key.*/
GF_KEY_EXCLAMATION, /*"U+0021" The Exclamation Mark (Factorial, Bang) key (!).*/
GF_KEY_QUOTATION, /*"U+0022" The Quotation Mark (Quote Double) key (").*/
GF_KEY_NUMBER, /*"U+0023" The Number Sign (Pound Sign, Hash, Crosshatch, Octothorpe) key (#).*/
GF_KEY_DOLLAR, /*"U+0024" The Dollar Sign (milreis, escudo) key ($).*/
GF_KEY_AMPERSAND, /*"U+0026" The Ampersand key (&).*/
GF_KEY_APOSTROPHE, /*"U+0027" The Apostrophe (Apostrophe-Quote, APL Quote) key (').*/
GF_KEY_LEFTPARENTHESIS, /*"U+0028" The Left Parenthesis (Opening Parenthesis) key (().*/
GF_KEY_RIGHTPARENTHESIS, /*"U+0029" The Right Parenthesis (Closing Parenthesis) key ()).*/
GF_KEY_STAR, /*"U+002A" The Asterix (Star) key (*).*/
GF_KEY_PLUS, /*"U+002B" The Plus Sign (Plus) key (+).*/
GF_KEY_COMMA, /*"U+002C" The Comma (decimal separator) sign key (,).*/
GF_KEY_HYPHEN, /*"U+002D" The Hyphen-minus (hyphen or minus sign) key (-).*/
GF_KEY_FULLSTOP, /*"U+002E" The Full Stop (period, dot, decimal point) key (.).*/
GF_KEY_SLASH, /*"U+002F" The Solidus (slash, virgule, shilling) key (/).*/
GF_KEY_0, /*"U+0030" The Digit Zero key (0).*/
GF_KEY_1, /*"U+0031" The Digit One key (1).*/
GF_KEY_2, /*"U+0032" The Digit Two key (2).*/
GF_KEY_3, /*"U+0033" The Digit Three key (3).*/
GF_KEY_4, /*"U+0034" The Digit Four key (4).*/
GF_KEY_5, /*"U+0035" The Digit Five key (5).*/
GF_KEY_6, /*"U+0036" The Digit Six key (6).*/
GF_KEY_7, /*"U+0037" The Digit Seven key (7).*/
GF_KEY_8, /*"U+0038" The Digit Eight key (8).*/
GF_KEY_9, /*"U+0039" The Digit Nine key (9).*/
GF_KEY_COLON, /*"U+003A" The Colon key (:).*/
GF_KEY_SEMICOLON, /*"U+003B" The Semicolon key (;).*/
GF_KEY_LESSTHAN, /*"U+003C" The Less-Than Sign key (<).*/
GF_KEY_EQUALS, /*"U+003D" The Equals Sign key (=).*/
GF_KEY_GREATERTHAN, /*"U+003E" The Greater-Than Sign key (>).*/
GF_KEY_QUESTION, /*"U+003F" The Question Mark key (?).*/
GF_KEY_AT, /*"U+0040" The Commercial At (@) key.*/
GF_KEY_A, /*"U+0041" The Latin Capital Letter A key (A).*/
GF_KEY_B, /*"U+0042" The Latin Capital Letter B key (B).*/
GF_KEY_C, /*"U+0043" The Latin Capital Letter C key (C).*/
GF_KEY_D, /*"U+0044" The Latin Capital Letter D key (D).*/
GF_KEY_E, /*"U+0045" The Latin Capital Letter E key (E).*/
GF_KEY_F, /*"U+0046" The Latin Capital Letter F key (F).*/
GF_KEY_G, /*"U+0047" The Latin Capital Letter G key (G).*/
GF_KEY_H, /*"U+0048" The Latin Capital Letter H key (H).*/
GF_KEY_I, /*"U+0049" The Latin Capital Letter I key (I).*/
GF_KEY_J, /*"U+004A" The Latin Capital Letter J key (J).*/
GF_KEY_K, /*"U+004B" The Latin Capital Letter K key (K).*/
GF_KEY_L, /*"U+004C" The Latin Capital Letter L key (L).*/
GF_KEY_M, /*"U+004D" The Latin Capital Letter M key (M).*/
GF_KEY_N, /*"U+004E" The Latin Capital Letter N key (N).*/
GF_KEY_O, /*"U+004F" The Latin Capital Letter O key (O).*/
GF_KEY_P, /*"U+0050" The Latin Capital Letter P key (P).*/
GF_KEY_Q, /*"U+0051" The Latin Capital Letter Q key (Q).*/
GF_KEY_R, /*"U+0052" The Latin Capital Letter R key (R).*/
GF_KEY_S, /*"U+0053" The Latin Capital Letter S key (S).*/
GF_KEY_T, /*"U+0054" The Latin Capital Letter T key (T).*/
GF_KEY_U, /*"U+0055" The Latin Capital Letter U key (U).*/
GF_KEY_V, /*"U+0056" The Latin Capital Letter V key (V).*/
GF_KEY_W, /*"U+0057" The Latin Capital Letter W key (W).*/
GF_KEY_X, /*"U+0058" The Latin Capital Letter X key (X).*/
GF_KEY_Y, /*"U+0059" The Latin Capital Letter Y key (Y).*/
GF_KEY_Z, /*"U+005A" The Latin Capital Letter Z key (Z).*/
GF_KEY_LEFTSQUAREBRACKET, /*"U+005B" The Left Square Bracket (Opening Square Bracket) key ([).*/
GF_KEY_BACKSLASH, /*"U+005C" The Reverse Solidus (Backslash) key (\).*/
GF_KEY_RIGHTSQUAREBRACKET, /*"U+005D" The Right Square Bracket (Closing Square Bracket) key (]).*/
GF_KEY_CIRCUM, /*"U+005E" The Circumflex Accent key (^).*/
GF_KEY_UNDERSCORE, /*"U+005F" The Low Sign (Spacing Underscore, Underscore) key (_).*/
GF_KEY_GRAVEACCENT, /*"U+0060" The Grave Accent (Back Quote) key (`).*/
GF_KEY_LEFTCURLYBRACKET, /*"U+007B" The Left Curly Bracket (Opening Curly Bracket, Opening Brace, Brace Left) key ({).*/
GF_KEY_PIPE, /*"U+007C" The Vertical Line (Vertical Bar, Pipe) key (|).*/
GF_KEY_RIGHTCURLYBRACKET, /*"U+007D" The Right Curly Bracket (Closing Curly Bracket, Closing Brace, Brace Right) key (}).*/
GF_KEY_DEL, /*"U+007F" The Delete (Del) Key.*/
GF_KEY_INVERTEXCLAMATION, /*"U+00A1" The Inverted Exclamation Mark key (�).*/
GF_KEY_DEADGRAVE, /*"U+0300" The Combining Grave Accent (Greek Varia, Dead Grave) key.*/
GF_KEY_DEADEACUTE, /*"U+0301" The Combining Acute Accent (Stress Mark, Greek Oxia, Tonos, Dead Eacute) key.*/
GF_KEY_DEADCIRCUM, /*"U+0302" The Combining Circumflex Accent (Hat, Dead Circumflex) key.*/
GF_KEY_DEADTILDE, /*"U+0303" The Combining Tilde (Dead Tilde) key.*/
GF_KEY_DEADMACRON, /*"U+0304" The Combining Macron (Long, Dead Macron) key.*/
GF_KEY_DEADBREVE, /*"U+0306" The Combining Breve (Short, Dead Breve) key.*/
GF_KEY_DEADABOVEDOT, /*"U+0307" The Combining Dot Above (Derivative, Dead Above Dot) key.*/
GF_KEY_DEADDIARESIS, /*"U+0308" The Combining Diaeresis (Double Dot Abode, Umlaut, Greek Dialytika, Double Derivative, Dead Diaeresis) key.*/
GF_KEY_DEADRINGABOVE, /*"U+030A" The Combining Ring Above (Dead Above Ring) key.*/
GF_KEY_DEADDOUBLEACUTE, /*"U+030B" The Combining Double Acute Accent (Dead Doubleacute) key.*/
GF_KEY_DEADCARON, /*"U+030C" The Combining Caron (Hacek, V Above, Dead Caron) key.*/
GF_KEY_DEADCEDILLA, /*"U+0327" The Combining Cedilla (Dead Cedilla) key.*/
GF_KEY_DEADOGONEK, /*"U+0328" The Combining Ogonek (Nasal Hook, Dead Ogonek) key.*/
GF_KEY_DEADIOTA, /*"U+0345" The Combining Greek Ypogegrammeni (Greek Non-Spacing Iota Below, Iota Subscript, Dead Iota) key.*/
GF_KEY_EURO, /*"U+20AC" The Euro Currency Sign key (�).*/
GF_KEY_DEADVOICESOUND, /*"U+3099" The Combining Katakana-Hiragana Voiced Sound Mark (Dead Voiced Sound) key.*/
GF_KEY_DEADSEMIVOICESOUND, /*"U+309A" The Combining Katakana-Hiragana Semi-Voiced Sound Mark (Dead Semivoiced Sound) key. */
/* STB */
GF_KEY_CHANNELUP, /*ChannelUp*/
GF_KEY_CHANNELDOWN, /*ChannelDown*/
GF_KEY_TEXT, /*Text*/
GF_KEY_INFO, /*Info*/
GF_KEY_EPG, /*EPG*/
GF_KEY_RECORD, /*Record*/
GF_KEY_BEGINPAGE, /*BeginPage*/
/* end STB */
/*non-dom keys, used in LASeR*/
GF_KEY_CELL_SOFT1, /*soft1 key of cell phones*/
GF_KEY_CELL_SOFT2, /*soft2 key of cell phones*/
/*for joystick handling*/
GF_KEY_JOYSTICK
};
/*key modifiers state - set by terminal (not set by video driver)*/
enum
{
GF_KEY_MOD_SHIFT = (1),
GF_KEY_MOD_CTRL = (1<<2),
GF_KEY_MOD_ALT = (1<<3),
GF_KEY_EXT_NUMPAD = (1<<4),
GF_KEY_EXT_LEFT = (1<<5),
GF_KEY_EXT_RIGHT = (1<<6)
};
/*mouse button modifiers*/
enum
{
GF_MOUSE_LEFT = 0,
GF_MOUSE_MIDDLE,
GF_MOUSE_RIGHT
};
/*event proc return value: ignored*/
typedef struct
{
/*GF_EVENT_MOUSEMOVE, GF_EVENT_MOUSEWHEEL, GF_EVENT_MOUSEDOWN, GF_EVENT_MOUSEUP*/
u8 type;
/*mouse location in output window, 2D-like: top-left (0,0), increasing y towards bottom*/
s32 x, y;
/*wheel position (wheel current delta / wheel absolute delta) for GF_EVENT_MouseWheel*/
Fixed wheel_pos;
/*0: left - 1: middle, 2- right*/
u32 button;
/*key modifier*/
u32 key_states;
} GF_EventMouse;
/*event proc return value: ignored*/
typedef struct
{
/*GF_EVENT_KEYDOWN and GF_EVENT_KEYUP*/
u8 type;
/*above GPAC/DOM key code*/
u32 key_code;
/* hadrware key value (matching ASCI) */
u32 hw_code;
/*key modifier*/
u32 flags;
} GF_EventKey;
/*event proc return value: ignored*/
typedef struct
{
/*GF_EVENT_TEXTINPUT*/
u8 type;
/*above virtual key code*/
u32 unicode_char;
} GF_EventChar;
/*event proc return value: ignored*/
typedef struct
{
/*GF_EVENT_SIZE*/
u8 type;
/*width and height*/
u16 width, height;
} GF_EventSize;
/*event proc return value: ignored*/
typedef struct
{
/*GF_EVENT_VIDEO_SETUP*/
u8 type;
/*width and height of visual surface to allocate*/
u16 width, height;
/*indicates whether double buffering is desired*/
Bool back_buffer;
/*indicates whether system memory for the backbuffer is desired (no video blitting)*/
Bool system_memory;
/*indicates whether opengl context shall be created. Values are:
0: no opengl context shall be created
1: opengl context shall be created for the main window and set as the current one
2: an extra opengl context shall be created for offscreen rendering and set as the current one
if not supported, mix of 2D (raster) and 3D (openGL) will be disabled
*/
u32 opengl_mode;
} GF_EventVideoSetup;
/*event proc return value: ignored
this event may be triggered by the compositor if owning window or if shortcut fullscreen is detected*/
typedef struct
{
/*GF_EVENT_SHOWHIDE*/
u8 type;
/*0: hidden - 1: visible - 2: fullscreen*/
u32 show_type;
} GF_EventShow;
/*sensor signaling*/
enum
{
GF_CURSOR_NORMAL = 0x00,
GF_CURSOR_ANCHOR,
GF_CURSOR_TOUCH,
/*discSensor, cylinderSensor, sphereSensor*/
GF_CURSOR_ROTATE,
/*proximitySensor & proximitySensor2D*/
GF_CURSOR_PROXIMITY,
/*planeSensor & planeSensor2D*/
GF_CURSOR_PLANE,
/*collision*/
GF_CURSOR_COLLIDE,
GF_CURSOR_HIDE,
};
/*event proc return value: ignored*/
typedef struct
{
/*GF_EVENT_SET_CURSOR*/
u8 type;
/*set if is visible*/
u32 cursor_type;
} GF_EventCursor;
/*event proc return value: ignored*/
typedef struct
{
/*GF_EVENT_SET_CAPTION*/
u8 type;
/*window style flags - NOT USED YET*/
const char *caption;
} GF_EventCaption;
/*event proc: never posted*/
typedef struct
{
/*GF_EVENT_MOVE*/
u8 type;
s32 x, y;
/*0: absolute positionning, 1: relative move, 2: use alignment constraints*/
Bool relative;
/*0: left/top, 1: middle, 2: right/bottom*/
u8 align_x, align_y;
} GF_EventMove;
/*duration may be signaled several times: it may change when setting up streams
event proc return value: ignored*/
typedef struct
{
/*GF_EVENT_DURATION*/
u8 type;
/*duration in seconds*/
Double duration;
/*is seeking supported for service*/
Bool can_seek;
} GF_EventDuration;
/*event proc return value: 0 if URL not supported, 1 if accepted (it is the user responsability to load the url)
YOU SHALL NOT DIRECTLY OPEN THE NEW URL IN THE EVENT PROC, THIS WOULD DEADLOCK THE TERMINAL
*/
typedef struct
{
/*GF_EVENT_NAVIGATE and GF_EVENT_NAVIGATE_INFO*/
u8 type;
/*new url to open / data to handle*/
const char *to_url;
/*parameters (cf vrml spec) - UNUSED for GF_EVENT_NAVIGATE_INFO*/
u32 param_count;
const char **parameters;
} GF_EventNavigate;
/*event proc return value: ignored*/
typedef struct
{
/*GF_EVENT_MESSAGE*/
u8 type;
/*name of service issuing the message*/
const char *service;
/*message*/
const char *message;
/*error if any*/
GF_Err error;
} GF_EventMessage;
/*event proc return value: ignored*/
typedef struct
{
/*GF_EVENT_PROGRESS*/
u8 type;
/*name of service issuing the progress notif*/
const char *service;
/*progress type: 0: buffering, 1: downloading, 2: importing (BT/VRML/...)*/
u32 progress_type;
/*amount done and total amount of operation.
For buffer events, expresses current and total desired stream buffer in scene in milliseconds
For download events, expresses current and total size of download in bytes
For import events, no units defined (depends on importers)
*/
u32 done, total;
/* for download events */
u32 bytes_per_seconds;
} GF_EventProgress;
/*event proc return value: ignored*/
typedef struct
{
/*GF_EVENT_CONNECT*/
u8 type;
/*sent upon connection/deconnection completion. if any error, it is signaled through message event*/
Bool is_connected;
} GF_EventConnect;
/*event proc return value: 1 if info has been completed, 0 otherwise (and operation this request was for
will then fail)*/
typedef struct
{
/*GF_EVENT_AUTHORIZATION*/
u8 type;
/*the URL the auth request is for*/
const char *site_url;
/*user name (provided buffer can hold 50 bytes). It may already be formated, or an empty ("") string*/
char *user;
/*password (provided buffer can hold 50 bytes)*/
char *password;
} GF_EventAuthorize;
/*event proc return value: 1 if info has been completed, 0 otherwise */
typedef struct
{
/*GF_EVENT_SYS_COLORS*/
u8 type;
/*ARGB colors, in order:
ActiveBorder, ActiveCaption, AppWorkspace, Background, ButtonFace, ButtonHighlight, ButtonShadow,
ButtonText, CaptionText, GrayText, Highlight, HighlightText, InactiveBorder, InactiveCaption,
InactiveCaptionText, InfoBackground, InfoText, Menu, MenuText, Scrollbar, ThreeDDarkShadow,
ThreeDFace, ThreeDHighlight, ThreeDLightShadow, ThreeDShadow, Window, WindowFrame, WindowText
*/
u32 sys_colors[28];
} GF_EventSysColors;
/*Mutation AttrChangeType Signaling*/
enum
{
GF_MUTATION_ATTRCHANGE_MODIFICATION = 0x01,
GF_MUTATION_ATTRCHANGE_ADDITION = 0x02,
GF_MUTATION_ATTRCHANGE_REMOVAL = 0x03,
};
typedef struct {
/* GF_EVENT_TREE_MODIFIED, GF_EVENT_NODE_INSERTED, GF_EVENT_NODE_REMOVED, GF_EVENT_NODE_INSERTED_DOC, GF_EVENT_NODE_REMOVED_DOC, GF_EVENT_ATTR_MODIFIED, GF_EVENT_CHAR_DATA_MODIFIED */
u8 type;
void *relatedNode;
void *prevValue;
void *newValue;
void *attrName;
u8 attrChange;
} GF_EventMutation;
enum
{
/*events forwarded from MPEG-2 stack*/
GF_EVT_FORWARDED_MPEG2 = 0,
/*events forwarded from RTP/RTSP/IP stack (not used yet)*/
GF_EVT_FORWARDED_RTP_RTSP
};
typedef struct {
/* GF_EVENT_OPENFILE*/
u8 type;
u32 nb_files;
char **files;
} GF_EventOpenFile;
typedef struct {
/* GF_EVENT_FORWARDED*/
u8 type;
/*one of te above event*/
u8 forward_type;
/*original type of event as forwarded by the service*/
u32 service_event_type;
/*parameter of event as forwarded by the service - creation/deletion is handled by the service*/
void *param;
} GF_EventForwarded;
typedef union
{
u8 type;
GF_EventMouse mouse;
GF_EventKey key;
GF_EventChar character;
GF_EventSize size;
GF_EventShow show;
GF_EventDuration duration;
GF_EventNavigate navigate;
GF_EventMessage message;
GF_EventProgress progress;
GF_EventConnect connect;
GF_EventCaption caption;
GF_EventCursor cursor;
GF_EventAuthorize auth;
GF_EventSysColors sys_cols;
GF_EventMove move;
GF_EventVideoSetup setup;
GF_EventMutation mutation;
GF_EventForwarded forwarded_event;
GF_EventOpenFile open_file;
} GF_Event;
#ifdef __cplusplus
}
#endif
#endif /*_GF_EVENTS_H_*/
|