OpenTTD Source 20260206-master-g4d4e37dbf1
OTTD_CocoaWindowDelegate Class Reference

Delegate for our NSWindow to send ask for quit on close. More...

#include <cocoa_wnd.h>

Inheritance diagram for OTTD_CocoaWindowDelegate:

Instance Methods

(instancetype) - initWithDriver:
 Initialize the video driver.
(BOOL) - windowShouldClose:
 Handle closure requests.
(void) - windowDidEnterFullScreen:
 Window entered fullscreen mode (10.7).
(void) - windowDidChangeBackingProperties:
 Screen the window is on changed.
(NSApplicationPresentationOptions) - window:willUseFullScreenPresentationOptions:
 Presentation options to use for full screen mode.

Detailed Description

Delegate for our NSWindow to send ask for quit on close.

Definition at line 51 of file cocoa_wnd.h.

Method Documentation

◆ initWithDriver:

- (instancetype) initWithDriver: (VideoDriver_Cocoa *) drv
Initial value:

Initialize the video driver.

Definition at line 1382 of file cocoa_wnd.mm.

◆ window:willUseFullScreenPresentationOptions:

- (NSApplicationPresentationOptions) window: (NSWindow *) window
willUseFullScreenPresentationOptions: (NSApplicationPresentationOptions) proposedOptions 

Presentation options to use for full screen mode.

Definition at line 1424 of file cocoa_wnd.mm.

◆ windowDidChangeBackingProperties:

- (void) windowDidChangeBackingProperties: (NSNotification *) notification

Screen the window is on changed.

Definition at line 1413 of file cocoa_wnd.mm.

References AdjustGUIZoom(), and ReInitAllWindows().

◆ windowDidEnterFullScreen:

- (void) windowDidEnterFullScreen: (NSNotification *) aNotification

Window entered fullscreen mode (10.7).

Definition at line 1400 of file cocoa_wnd.mm.

◆ windowShouldClose:

- (BOOL) windowShouldClose: (id) sender

Handle closure requests.

Parameters
senderWhere the event comes from.

Definition at line 1393 of file cocoa_wnd.mm.


The documentation for this class was generated from the following files: