|
Blender V5.3
|
#include "GHOST_SystemCocoa.hh"#include "GHOST_EventButton.hh"#include "GHOST_EventCursor.hh"#include "GHOST_EventDragnDrop.hh"#include "GHOST_EventKey.hh"#include "GHOST_EventString.hh"#include "GHOST_EventTrackpad.hh"#include "GHOST_EventWheel.hh"#include "GHOST_TimerManager.hh"#include "GHOST_TimerTask.hh"#include "GHOST_WindowCocoa.hh"#include "GHOST_WindowManager.hh"#include <Carbon/Carbon.h>#include <sys/time.h>Go to the source code of this file.
Classes | |
| class | CocoaAppDelegate |
Macros | |
| #define | FIRSTFILEBUFLG 512 |
Typedefs | |
| typedef int | CGSConnectionID |
Functions | |
| static GHOST_TButton | convertButton (int button) |
| static GHOST_TKey | convertKey (int rawCode, unichar recvChar) |
| int | GHOST_HACK_getFirstFile (char buf[FIRSTFILEBUFLG]) |
| CGSConnectionID | CGSMainConnectionID (void) |
| CGError | CGSGetCursorScale (CGSConnectionID connection, CGFloat *scale) |
| static NSSize | getNSImagePixelSize (NSImage *image) |
| static blender::ImBuf * | NSImageToImBuf (NSImage *image) |
| static NSURL * | NSPasteboardGetImageFile () |
Variables | |
| static bool | g_hasFirstFile = false |
| static char | g_firstFileBuf [FIRSTFILEBUFLG] |
| __pad0__ | |
| #define FIRSTFILEBUFLG 512 |
Definition at line 332 of file GHOST_SystemCocoa.mm.
Referenced by GHOST_HACK_getFirstFile().
| typedef int CGSConnectionID |
Definition at line 857 of file GHOST_SystemCocoa.mm.
| CGError CGSGetCursorScale | ( | CGSConnectionID | connection, |
| CGFloat * | scale ) |
References CGSGetCursorScale(), and scale().
Referenced by CGSGetCursorScale(), and GHOST_SystemCocoa::getCursorPreferredLogicalSize().
| CGSConnectionID CGSMainConnectionID | ( | void | ) |
References CGSMainConnectionID().
Referenced by CGSMainConnectionID(), and GHOST_SystemCocoa::getCursorPreferredLogicalSize().
|
static |
Definition at line 45 of file GHOST_SystemCocoa.mm.
References convertButton(), GHOST_kButtonMaskButton4, GHOST_kButtonMaskButton5, GHOST_kButtonMaskButton6, GHOST_kButtonMaskButton7, GHOST_kButtonMaskLeft, GHOST_kButtonMaskMiddle, and GHOST_kButtonMaskRight.
Referenced by convertButton(), and GHOST_SystemCocoa::handleMouseEvent().
|
static |
Converts Mac raw-key codes (same for Cocoa & Carbon) into GHOST key codes
| rawCode | The raw physical key code |
| recvChar | the character ignoring modifiers (except for shift) |
Definition at line 74 of file GHOST_SystemCocoa.mm.
References convertKey(), GHOST_kKey0, GHOST_kKey1, GHOST_kKey2, GHOST_kKey3, GHOST_kKey4, GHOST_kKey5, GHOST_kKey6, GHOST_kKey7, GHOST_kKey8, GHOST_kKey9, GHOST_kKeyA, GHOST_kKeyAccentGrave, GHOST_kKeyB, GHOST_kKeyBackslash, GHOST_kKeyBackSpace, GHOST_kKeyC, GHOST_kKeyComma, GHOST_kKeyD, GHOST_kKeyDelete, GHOST_kKeyDownArrow, GHOST_kKeyDownPage, GHOST_kKeyE, GHOST_kKeyEnd, GHOST_kKeyEnter, GHOST_kKeyEqual, GHOST_kKeyEsc, GHOST_kKeyF, GHOST_kKeyF1, GHOST_kKeyF10, GHOST_kKeyF11, GHOST_kKeyF12, GHOST_kKeyF13, GHOST_kKeyF14, GHOST_kKeyF15, GHOST_kKeyF16, GHOST_kKeyF17, GHOST_kKeyF18, GHOST_kKeyF19, GHOST_kKeyF2, GHOST_kKeyF20, GHOST_kKeyF3, GHOST_kKeyF4, GHOST_kKeyF5, GHOST_kKeyF6, GHOST_kKeyF7, GHOST_kKeyF8, GHOST_kKeyF9, GHOST_kKeyG, GHOST_kKeyH, GHOST_kKeyHome, GHOST_kKeyI, GHOST_kKeyJ, GHOST_kKeyK, GHOST_kKeyL, GHOST_kKeyLeftArrow, GHOST_kKeyLeftBracket, GHOST_kKeyM, GHOST_kKeyMinus, GHOST_kKeyN, 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_kKeyO, GHOST_kKeyP, GHOST_kKeyPeriod, GHOST_kKeyPlus, GHOST_kKeyQ, GHOST_kKeyQuote, GHOST_kKeyR, GHOST_kKeyRightArrow, GHOST_kKeyRightBracket, GHOST_kKeyS, GHOST_kKeySemicolon, GHOST_kKeySlash, GHOST_kKeySpace, GHOST_kKeyT, GHOST_kKeyTab, GHOST_kKeyU, GHOST_kKeyUnknown, GHOST_kKeyUpArrow, GHOST_kKeyUpPage, GHOST_kKeyV, GHOST_kKeyW, GHOST_kKeyX, GHOST_kKeyY, and GHOST_kKeyZ.
Referenced by convertKey(), and GHOST_SystemCocoa::handleKeyEvent().
|
static |
Get the true pixel size of an NSImage object.
| image | NSImage to obtain the size of. |
Definition at line 1263 of file GHOST_SystemCocoa.mm.
References getNSImagePixelSize(), and image.
Referenced by GHOST_SystemCocoa::getClipboardImage(), getNSImagePixelSize(), and NSImageToImBuf().
| int GHOST_HACK_getFirstFile | ( | char | buf[FIRSTFILEBUFLG] | ) |
Definition at line 338 of file GHOST_SystemCocoa.mm.
References FIRSTFILEBUFLG, g_firstFileBuf, g_hasFirstFile, and GHOST_HACK_getFirstFile().
Referenced by GHOST_HACK_getFirstFile(), and main().
|
static |
Convert an NSImage to an ImBuf.
| image | NSImage to convert. |
Definition at line 1277 of file GHOST_SystemCocoa.mm.
References blender::ImBuf::byte_data_for_write(), blender::ByteData, getNSImagePixelSize(), image, imageSize(), blender::IMB_allocImBuf(), in, NSImageToImBuf(), and y.
Referenced by GHOST_SystemCocoa::getClipboardImage(), GHOST_SystemCocoa::handleDraggingEvent(), and NSImageToImBuf().
|
static |
Definition at line 2065 of file GHOST_SystemCocoa.mm.
References NSPasteboardGetImageFile().
Referenced by GHOST_SystemCocoa::getClipboardImage(), GHOST_SystemCocoa::hasClipboardImage(), and NSPasteboardGetImageFile().
| __pad0__ |
Definition at line 370 of file GHOST_SystemCocoa.mm.
|
static |
Definition at line 334 of file GHOST_SystemCocoa.mm.
Referenced by GHOST_HACK_getFirstFile().
|
static |
Definition at line 333 of file GHOST_SystemCocoa.mm.
Referenced by GHOST_HACK_getFirstFile().