16#include <AppKit/AppKit.h>
17#include <Metal/Metal.h>
Definition MacOSWindow.hpp:22
MacOSWindow()
Definition MacOSWindow.hpp:35
ViewType getView() const
Gets the Cocoa content view.
UPtr< Pimpl > m
The pointer-to-implementation.
Definition MacOSWindow.hpp:29
void resize(double width, double height) final
Vector2 getSize() const final
PlatformWindowProperties mProperties
Definition MacOSWindow.hpp:32
void setTitle(const String &title) final
MacOSWindow(const PlatformWindowDescriptor &descriptor)
double getScalingFactor() const final
friend struct Pimpl
Definition MacOSWindow.hpp:25
void setFullscreen(bool fullscreen) final
bool isFullscreen() const final
void forwardEvent(AnyInputEvent &&event)
Forwards an event received by the window to the attached input provider.
String getTitle() const final
void * ViewType
A type that represents the NSView* when compiled for Objective-C or a void* when compiled for pure C+...
Definition MacOSWindow.hpp:77
Definition Application.hpp:19
std::unique_ptr< T, Deleter > UPtr
UPtr is a smart pointer that owns and manages another object through a pointer and disposes of that o...
Definition SmartPtr.hpp:28
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25