Classes | Macros | Typedefs | Functions
cocoa_platform.h File Reference
#include <stdint.h>
#include <dlfcn.h>
#include <Carbon/Carbon.h>
#include "posix_thread.h"
#include "cocoa_joystick.h"
#include "nsgl_context.h"
#include "egl_context.h"
#include "osmesa_context.h"
Include dependency graph for cocoa_platform.h:

Go to the source code of this file.

Classes

struct  _GLFWcursorNS
 
struct  _GLFWlibraryNS
 
struct  _GLFWmonitorNS
 
struct  _GLFWtimerNS
 
struct  _GLFWwindowNS
 
struct  VkMacOSSurfaceCreateInfoMVK
 

Macros

#define _glfw_dlclose(handle)   dlclose(handle)
 
#define _glfw_dlopen(name)   dlopen(name, RTLD_LAZY | RTLD_LOCAL)
 
#define _glfw_dlsym(handle, name)   dlsym(handle, name)
 
#define _GLFW_EGL_NATIVE_DISPLAY   EGL_DEFAULT_DISPLAY
 
#define _GLFW_EGL_NATIVE_WINDOW   ((EGLNativeWindowType) window->ns.view)
 
#define _GLFW_PLATFORM_CURSOR_STATE   _GLFWcursorNS ns
 
#define _GLFW_PLATFORM_LIBRARY_TIMER_STATE   _GLFWtimerNS ns
 
#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE   _GLFWlibraryNS ns
 
#define _GLFW_PLATFORM_MONITOR_STATE   _GLFWmonitorNS ns
 
#define _GLFW_PLATFORM_WINDOW_STATE   _GLFWwindowNS ns
 
#define kTISPropertyUnicodeKeyLayoutData   _glfw.ns.tis.kPropertyUnicodeKeyLayoutData
 
#define LMGetKbdType   _glfw.ns.tis.GetKbdType
 
#define TISCopyCurrentKeyboardLayoutInputSource   _glfw.ns.tis.CopyCurrentKeyboardLayoutInputSource
 
#define TISGetInputSourceProperty   _glfw.ns.tis.GetInputSourceProperty
 

Typedefs

typedef struct _GLFWcursorNS _GLFWcursorNS
 
typedef struct _GLFWlibraryNS _GLFWlibraryNS
 
typedef struct _GLFWmonitorNS _GLFWmonitorNS
 
typedef struct _GLFWtimerNS _GLFWtimerNS
 
typedef struct _GLFWwindowNS _GLFWwindowNS
 
typedef voidid
 
typedef UInt8(* PFN_LMGetKbdType) (void)
 
typedef TISInputSourceRef(* PFN_TISCopyCurrentKeyboardLayoutInputSource) (void)
 
typedef void *(* PFN_TISGetInputSourceProperty) (TISInputSourceRef, CFStringRef)
 
typedef VkResult(APIENTRYPFN_vkCreateMacOSSurfaceMVK) (VkInstance, const VkMacOSSurfaceCreateInfoMVK *, const VkAllocationCallbacks *, VkSurfaceKHR *)
 
typedef VkFlags VkMacOSSurfaceCreateFlagsMVK
 
typedef struct VkMacOSSurfaceCreateInfoMVK VkMacOSSurfaceCreateInfoMVK
 

Functions

void _glfwInitTimerNS (void)
 
void _glfwPollMonitorsNS (void)
 
void _glfwRestoreVideoModeNS (_GLFWmonitor *monitor)
 
void _glfwSetVideoModeNS (_GLFWmonitor *monitor, const GLFWvidmode *desired)
 

Macro Definition Documentation

◆ _glfw_dlclose

#define _glfw_dlclose (   handle)    dlclose(handle)

Definition at line 56 of file cocoa_platform.h.

◆ _glfw_dlopen

#define _glfw_dlopen (   name)    dlopen(name, RTLD_LAZY | RTLD_LOCAL)

Definition at line 55 of file cocoa_platform.h.

◆ _glfw_dlsym

#define _glfw_dlsym (   handle,
  name 
)    dlsym(handle, name)

Definition at line 57 of file cocoa_platform.h.

◆ _GLFW_EGL_NATIVE_DISPLAY

#define _GLFW_EGL_NATIVE_DISPLAY   EGL_DEFAULT_DISPLAY

Definition at line 60 of file cocoa_platform.h.

◆ _GLFW_EGL_NATIVE_WINDOW

#define _GLFW_EGL_NATIVE_WINDOW   ((EGLNativeWindowType) window->ns.view)

Definition at line 59 of file cocoa_platform.h.

◆ _GLFW_PLATFORM_CURSOR_STATE

#define _GLFW_PLATFORM_CURSOR_STATE   _GLFWcursorNS ns

Definition at line 66 of file cocoa_platform.h.

◆ _GLFW_PLATFORM_LIBRARY_TIMER_STATE

#define _GLFW_PLATFORM_LIBRARY_TIMER_STATE   _GLFWtimerNS ns

Definition at line 64 of file cocoa_platform.h.

◆ _GLFW_PLATFORM_LIBRARY_WINDOW_STATE

#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE   _GLFWlibraryNS ns

Definition at line 63 of file cocoa_platform.h.

◆ _GLFW_PLATFORM_MONITOR_STATE

#define _GLFW_PLATFORM_MONITOR_STATE   _GLFWmonitorNS ns

Definition at line 65 of file cocoa_platform.h.

◆ _GLFW_PLATFORM_WINDOW_STATE

#define _GLFW_PLATFORM_WINDOW_STATE   _GLFWwindowNS ns

Definition at line 62 of file cocoa_platform.h.

◆ kTISPropertyUnicodeKeyLayoutData

#define kTISPropertyUnicodeKeyLayoutData   _glfw.ns.tis.kPropertyUnicodeKeyLayoutData

Definition at line 69 of file cocoa_platform.h.

◆ LMGetKbdType

#define LMGetKbdType   _glfw.ns.tis.GetKbdType

Definition at line 75 of file cocoa_platform.h.

◆ TISCopyCurrentKeyboardLayoutInputSource

#define TISCopyCurrentKeyboardLayoutInputSource   _glfw.ns.tis.CopyCurrentKeyboardLayoutInputSource

Definition at line 71 of file cocoa_platform.h.

◆ TISGetInputSourceProperty

#define TISGetInputSourceProperty   _glfw.ns.tis.GetInputSourceProperty

Definition at line 73 of file cocoa_platform.h.

Typedef Documentation

◆ _GLFWcursorNS

typedef struct _GLFWcursorNS _GLFWcursorNS

◆ _GLFWlibraryNS

◆ _GLFWmonitorNS

◆ _GLFWtimerNS

typedef struct _GLFWtimerNS _GLFWtimerNS

◆ _GLFWwindowNS

typedef struct _GLFWwindowNS _GLFWwindowNS

◆ id

typedef void* id

Definition at line 34 of file cocoa_platform.h.

◆ PFN_LMGetKbdType

typedef UInt8(* PFN_LMGetKbdType) (void)

Definition at line 74 of file cocoa_platform.h.

◆ PFN_TISCopyCurrentKeyboardLayoutInputSource

typedef TISInputSourceRef(* PFN_TISCopyCurrentKeyboardLayoutInputSource) (void)

Definition at line 70 of file cocoa_platform.h.

◆ PFN_TISGetInputSourceProperty

typedef void*(* PFN_TISGetInputSourceProperty) (TISInputSourceRef, CFStringRef)

Definition at line 72 of file cocoa_platform.h.

◆ PFN_vkCreateMacOSSurfaceMVK

typedef VkResult(APIENTRY * PFN_vkCreateMacOSSurfaceMVK) (VkInstance, const VkMacOSSurfaceCreateInfoMVK *, const VkAllocationCallbacks *, VkSurfaceKHR *)

Definition at line 47 of file cocoa_platform.h.

◆ VkMacOSSurfaceCreateFlagsMVK

Definition at line 37 of file cocoa_platform.h.

◆ VkMacOSSurfaceCreateInfoMVK

Function Documentation

◆ _glfwInitTimerNS()

void _glfwInitTimerNS ( void  )

Definition at line 38 of file cocoa_time.c.

◆ _glfwPollMonitorsNS()

void _glfwPollMonitorsNS ( void  )

◆ _glfwRestoreVideoModeNS()

void _glfwRestoreVideoModeNS ( _GLFWmonitor monitor)

◆ _glfwSetVideoModeNS()

void _glfwSetVideoModeNS ( _GLFWmonitor monitor,
const GLFWvidmode desired 
)


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22