43 virtual void OnResize(
int width,
int height) = 0;
50 kWindowFlags_Borderless = 1 << 0,
51 kWindowFlags_Titled = 1 << 1,
52 kWindowFlags_Resizable = 1 << 2,
53 kWindowFlags_Maximizable = 1 << 3,
75 bool fullscreen,
unsigned int window_flags);
92 virtual int width()
const = 0;
97 virtual int height()
const = 0;
102 virtual bool is_fullscreen()
const = 0;
107 virtual double scale()
const = 0;
112 virtual void SetTitle(
const char* title) = 0;
122 virtual void Close() = 0;
127 virtual int DeviceToPixels(
int val)
const = 0;
132 virtual int PixelsToDevice(
int val)
const = 0;
136 virtual OverlayManager* overlay_manager()
const = 0;
138 friend class OverlayImpl;
virtual void OnResize(int width, int height)=0
Called when the Window is resized.
virtual void OnClose()=0
Called when the Window is closed.
A non-nullable smart pointer.
The header for View listener interfaces.
Interface for all Window-related events.
This is a set of common JavaScriptCore Helper functions to simplify sample code.
The header for all ref-counting utilities.
Interface for all ref-counted objects that will be managed using the Ref<> and RefPtr<> smart pointer...
WindowFlags
Window creation flags.
Window class, represents a platform window.
Monitor class, represents a platform monitor.