|
Blender V4.5
|
#include <X11/XKBlib.h>#include <X11/Xatom.h>#include <X11/Xutil.h>#include <X11/keysym.h>#include "GHOST_EventButton.hh"#include "GHOST_EventCursor.hh"#include "GHOST_EventDragnDrop.hh"#include "GHOST_EventKey.hh"#include "GHOST_EventWheel.hh"#include "GHOST_SystemX11.hh"#include "GHOST_TimerManager.hh"#include "GHOST_WindowManager.hh"#include "GHOST_WindowX11.hh"#include "GHOST_utildefines.hh"#include "GHOST_Debug.hh"#include <sys/time.h>#include <unistd.h>#include <cstdio>#include <cstdlib>#include <iostream>#include <vector>Go to the source code of this file.
Classes | |
| struct | init_timestamp_data |
| class | DialogData |
Macros | |
| #define | USE_UNITY_WORKAROUND |
| #define | USE_NON_LATIN_KB_WORKAROUND |
| #define | GHOST_INTERN_ATOM_IF_EXISTS(atom) |
| #define | GHOST_INTERN_ATOM(atom) |
| #define | GXMAP(k, x, y) |
| #define | MAKE_ID(a, b, c, d) |
| #define | XCLIB_XCOUT_NONE 0 |
| #define | XCLIB_XCOUT_SENTCONVSEL 1 |
| #define | XCLIB_XCOUT_INCR 2 |
| #define | XCLIB_XCOUT_FALLBACK 3 |
| #define | XCLIB_XCOUT_FALLBACK_UTF8 4 |
| #define | XCLIB_XCOUT_FALLBACK_COMP 5 |
| #define | XCLIB_XCOUT_FALLBACK_TEXT 6 |
Functions | |
| static uchar | bit_is_on (const uchar *ptr, int bit) |
| static GHOST_TKey | ghost_key_from_keysym (const KeySym key) |
| static GHOST_TKey | ghost_key_from_keycode (const XkbDescPtr xkb_descr, const KeyCode keycode) |
| static GHOST_TKey | ghost_key_from_keysym_or_keycode (const KeySym key_sym, const XkbDescPtr xkb_descr, const KeyCode keycode) |
| static void | SleepTillEvent (Display *display, int64_t maxSleep) |
| static Bool | init_timestamp_scanner (Display *, XEvent *event, XPointer arg) |
| static GHOST_TSuccess | getCursorPosition_impl (Display *display, int32_t &x, int32_t &y, Window *child_return) |
| int | GHOST_X11_ApplicationErrorHandler (Display *display, XErrorEvent *event) |
| int | GHOST_X11_ApplicationIOErrorHandler (Display *) |
Message Box | |
| static void | split (const char *text, const char *seps, char ***str, int *count) |
Variables | |
| static char * | txt_cut_buffer = nullptr |
| static char * | txt_select_buffer = nullptr |
| #define GHOST_INTERN_ATOM | ( | atom | ) |
Referenced by GHOST_SystemX11::GHOST_SystemX11().
| #define GHOST_INTERN_ATOM_IF_EXISTS | ( | atom | ) |
Referenced by GHOST_SystemX11::GHOST_SystemX11().
Definition at line 1874 of file GHOST_SystemX11.cc.
| #define MAKE_ID | ( | a, | |
| b, | |||
| c, | |||
| d ) |
Definition at line 2004 of file GHOST_SystemX11.cc.
| #define USE_NON_LATIN_KB_WORKAROUND |
Definition at line 82 of file GHOST_SystemX11.cc.
| #define USE_UNITY_WORKAROUND |
Definition at line 78 of file GHOST_SystemX11.cc.
| #define XCLIB_XCOUT_FALLBACK 3 |
Definition at line 2037 of file GHOST_SystemX11.cc.
Referenced by GHOST_SystemX11::getClipboard().
| #define XCLIB_XCOUT_FALLBACK_COMP 5 |
Definition at line 2039 of file GHOST_SystemX11.cc.
Referenced by GHOST_SystemX11::getClipboard(), and GHOST_SystemX11::getClipboard_xcout().
| #define XCLIB_XCOUT_FALLBACK_TEXT 6 |
Definition at line 2040 of file GHOST_SystemX11.cc.
Referenced by GHOST_SystemX11::getClipboard(), and GHOST_SystemX11::getClipboard_xcout().
| #define XCLIB_XCOUT_FALLBACK_UTF8 4 |
Definition at line 2038 of file GHOST_SystemX11.cc.
Referenced by GHOST_SystemX11::getClipboard(), and GHOST_SystemX11::getClipboard_xcout().
| #define XCLIB_XCOUT_INCR 2 |
Definition at line 2036 of file GHOST_SystemX11.cc.
Referenced by GHOST_SystemX11::getClipboard_xcout().
| #define XCLIB_XCOUT_NONE 0 |
Definition at line 2034 of file GHOST_SystemX11.cc.
Referenced by GHOST_SystemX11::getClipboard(), and GHOST_SystemX11::getClipboard_xcout().
| #define XCLIB_XCOUT_SENTCONVSEL 1 |
Definition at line 2035 of file GHOST_SystemX11.cc.
Referenced by GHOST_SystemX11::getClipboard_xcout().
Definition at line 84 of file GHOST_SystemX11.cc.
References bit_is_on().
Referenced by bit_is_on().
|
static |
Definition at line 1728 of file GHOST_SystemX11.cc.
References Display, getCursorPosition_impl(), GHOST_kFailure, GHOST_kSuccess, Window, x, and y.
Referenced by GHOST_SystemX11::getCursorPosition(), getCursorPosition_impl(), and GHOST_SystemX11::setCursorPosition().
|
static |
Definition at line 2006 of file GHOST_SystemX11.cc.
References GHOST_ASSERT, ghost_key_from_keycode(), GHOST_kKeyAccentGrave, GHOST_kKeyGrLess, GHOST_kKeyUnknown, MAKE_ID, and printf.
Referenced by ghost_key_from_keycode(), and ghost_key_from_keysym_or_keycode().
|
static |
Definition at line 1879 of file GHOST_SystemX11.cc.
References ghost_key_from_keysym(), GHOST_kKey0, GHOST_kKeyA, GHOST_kKeyAccentGrave, GHOST_kKeyApp, GHOST_kKeyBackslash, GHOST_kKeyBackSpace, GHOST_kKeyCapsLock, GHOST_kKeyComma, GHOST_kKeyDelete, GHOST_kKeyDownArrow, GHOST_kKeyDownPage, GHOST_kKeyEnd, GHOST_kKeyEnter, GHOST_kKeyEqual, GHOST_kKeyEsc, GHOST_kKeyF1, GHOST_kKeyHome, GHOST_kKeyInsert, GHOST_kKeyLeftAlt, GHOST_kKeyLeftArrow, GHOST_kKeyLeftBracket, GHOST_kKeyLeftControl, GHOST_kKeyLeftHyper, GHOST_kKeyLeftOS, GHOST_kKeyLeftShift, GHOST_kKeyLinefeed, GHOST_kKeyMediaFirst, GHOST_kKeyMediaLast, GHOST_kKeyMediaPlay, GHOST_kKeyMediaStop, GHOST_kKeyMinus, GHOST_kKeyNumLock, GHOST_kKeyNumpad0, GHOST_kKeyNumpad1, GHOST_kKeyNumpad2, GHOST_kKeyNumpad3, GHOST_kKeyNumpad4, GHOST_kKeyNumpad5, GHOST_kKeyNumpad6, GHOST_kKeyNumpad7, GHOST_kKeyNumpad8, GHOST_kKeyNumpad9, GHOST_kKeyNumpadAsterisk, GHOST_kKeyNumpadEnter, GHOST_kKeyNumpadMinus, GHOST_kKeyNumpadPeriod, GHOST_kKeyNumpadPlus, GHOST_kKeyNumpadSlash, GHOST_kKeyPause, GHOST_kKeyPeriod, GHOST_kKeyPlus, GHOST_kKeyQuote, GHOST_kKeyRightAlt, GHOST_kKeyRightArrow, GHOST_kKeyRightBracket, GHOST_kKeyRightControl, GHOST_kKeyRightHyper, GHOST_kKeyRightOS, GHOST_kKeyRightShift, GHOST_kKeyScrollLock, GHOST_kKeySemicolon, GHOST_kKeySlash, GHOST_kKeySpace, GHOST_kKeyTab, GHOST_kKeyUnknown, GHOST_kKeyUpArrow, GHOST_kKeyUpPage, GXMAP, and printf.
Referenced by ghost_key_from_keysym(), ghost_key_from_keysym_or_keycode(), and GHOST_SystemX11::processEvents().
|
static |
Definition at line 1861 of file GHOST_SystemX11.cc.
References ghost_key_from_keycode(), ghost_key_from_keysym(), ghost_key_from_keysym_or_keycode(), and GHOST_kKeyUnknown.
Referenced by ghost_key_from_keysym_or_keycode().
| int GHOST_X11_ApplicationErrorHandler | ( | Display * | display, |
| XErrorEvent * | event ) |
These callbacks can be used for debugging, so we can break-point on an X11 error.
Dummy function to get around IO Handler exiting if device invalid Basically it will not crash blender now if you have a X device that is configured but not plugged in.
Definition at line 2643 of file GHOST_SystemX11.cc.
References Display, GHOST_ISystem::getSystem(), GHOST_X11_ApplicationErrorHandler(), and GHOST_ISystem::isDebugEnabled().
Referenced by GHOST_SystemX11::GHOST_SystemX11(), and GHOST_X11_ApplicationErrorHandler().
| int GHOST_X11_ApplicationIOErrorHandler | ( | Display * | display | ) |
Definition at line 2669 of file GHOST_SystemX11.cc.
References Display, GHOST_ISystem::getSystem(), GHOST_X11_ApplicationIOErrorHandler(), and GHOST_ISystem::isDebugEnabled().
Referenced by GHOST_SystemX11::GHOST_SystemX11(), and GHOST_X11_ApplicationIOErrorHandler().
|
static |
Definition at line 548 of file GHOST_SystemX11.cc.
References data, Display, and init_timestamp_scanner().
Referenced by init_timestamp_scanner().
Definition at line 522 of file GHOST_SystemX11.cc.
References Display, select, and SleepTillEvent().
Referenced by GHOST_SystemX11::processEvents(), and SleepTillEvent().
|
static |
Definition at line 2479 of file GHOST_SystemX11.cc.
References data, free(), i, split(), and str.
Referenced by GHOST_SystemX11::showMessageBox(), and split().
|
static |
Definition at line 96 of file GHOST_SystemX11.cc.
Referenced by GHOST_SystemX11::getClipboard(), and GHOST_SystemX11::putClipboard().
|
static |
Definition at line 97 of file GHOST_SystemX11.cc.
Referenced by GHOST_SystemX11::getClipboard(), and GHOST_SystemX11::putClipboard().