Blender  V3.3
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 uint16_t uns16ReverseBits (uint16_t shrt)
 

Variables

 __pad0__
 
 associatedWindow = winCocoa
 

Macro Definition Documentation

◆ COCOA_VIEW_BASE_CLASS [1/2]

#define COCOA_VIEW_BASE_CLASS   NSOpenGLView

Definition at line 263 of file GHOST_WindowCocoa.mm.

◆ COCOA_VIEW_BASE_CLASS [2/2]

#define COCOA_VIEW_BASE_CLASS   NSView

Definition at line 263 of file GHOST_WindowCocoa.mm.

◆ COCOA_VIEW_CLASS [1/2]

#define COCOA_VIEW_CLASS   CocoaOpenGLView

Definition at line 262 of file GHOST_WindowCocoa.mm.

◆ COCOA_VIEW_CLASS [2/2]

#define COCOA_VIEW_CLASS   CocoaMetalView

Definition at line 262 of file GHOST_WindowCocoa.mm.

Function Documentation

◆ getImageCursor()

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

Definition at line 919 of file GHOST_WindowCocoa.mm.

References cursors, image(), and NULL.

Referenced by GHOST_WindowCocoa::getStandardCursor().

◆ postNotification()

static void postNotification ( )
static

Definition at line 876 of file GHOST_WindowCocoa.mm.

Referenced by GHOST_WindowCocoa::endProgressBar().

◆ uns16ReverseBits()

static uint16_t uns16ReverseBits ( uint16_t  shrt)
static

Reverse the bits in a uint16_t

Definition at line 1126 of file GHOST_WindowCocoa.mm.

Referenced by GHOST_WindowCocoa::setWindowCustomCursorShape().

Variable Documentation

◆ __pad0__

__pad0__

Definition at line 23 of file GHOST_WindowCocoa.mm.

◆ associatedWindow

associatedWindow = winCocoa

Definition at line 43 of file GHOST_WindowCocoa.mm.