Blender  V2.93
Classes | Macros | Functions | Variables
GHOST_WindowCocoa.mm File Reference
#include "GHOST_WindowCocoa.h"
#include "GHOST_ContextNone.h"
#include "GHOST_Debug.h"
#include "GHOST_SystemCocoa.h"
#include "GHOST_ContextCGL.h"
#include <Cocoa/Cocoa.h>
#include <Metal/Metal.h>
#include <QuartzCore/QuartzCore.h>
#include <sys/sysctl.h>
#include "GHOST_WindowViewCocoa.h"

Go to the source code of this file.

Classes

class  CocoaWindowDelegate
 
class  CocoaWindow
 

Macros

#define COCOA_VIEW_CLASS   CocoaOpenGLView
 
#define COCOA_VIEW_BASE_CLASS   NSOpenGLView
 
#define COCOA_VIEW_CLASS   CocoaMetalView
 
#define COCOA_VIEW_BASE_CLASS   NSView
 

Functions

static void postNotification ()
 
static NSCursor * getImageCursor (GHOST_TStandardCursor shape, NSString *name, NSPoint hotspot)
 
static GHOST_TUns16 uns16ReverseBits (GHOST_TUns16 shrt)
 

Variables

 __pad0__
 
 associatedWindow = winCocoa
 

Macro Definition Documentation

◆ COCOA_VIEW_BASE_CLASS [1/2]

#define COCOA_VIEW_BASE_CLASS   NSOpenGLView

Definition at line 283 of file GHOST_WindowCocoa.mm.

◆ COCOA_VIEW_BASE_CLASS [2/2]

#define COCOA_VIEW_BASE_CLASS   NSView

Definition at line 283 of file GHOST_WindowCocoa.mm.

◆ COCOA_VIEW_CLASS [1/2]

#define COCOA_VIEW_CLASS   CocoaOpenGLView

Definition at line 282 of file GHOST_WindowCocoa.mm.

◆ COCOA_VIEW_CLASS [2/2]

#define COCOA_VIEW_CLASS   CocoaMetalView

Definition at line 282 of file GHOST_WindowCocoa.mm.

Function Documentation

◆ getImageCursor()

static NSCursor* getImageCursor ( GHOST_TStandardCursor  shape,
NSString *  name,
NSPoint  hotspot 
)
static

Definition at line 940 of file GHOST_WindowCocoa.mm.

References cursors, and NULL.

Referenced by GHOST_WindowCocoa::getStandardCursor().

◆ postNotification()

static void postNotification ( )
static

Definition at line 897 of file GHOST_WindowCocoa.mm.

Referenced by GHOST_WindowCocoa::endProgressBar().

◆ uns16ReverseBits()

static GHOST_TUns16 uns16ReverseBits ( GHOST_TUns16  shrt)
static

Reverse the bits in a GHOST_TUns16

Definition at line 1147 of file GHOST_WindowCocoa.mm.

Referenced by GHOST_WindowCocoa::setWindowCustomCursorShape().

Variable Documentation

◆ __pad0__

__pad0__

Definition at line 43 of file GHOST_WindowCocoa.mm.

◆ associatedWindow

associatedWindow = winCocoa

Definition at line 63 of file GHOST_WindowCocoa.mm.