OpenTTD Source 20260206-master-g4d4e37dbf1
OTTD_CocoaWindow Class Reference

Subclass of NSWindow to cater our special needs. More...

#include <cocoa_wnd.h>

Inheritance diagram for OTTD_CocoaWindow:

Instance Methods

(instancetype) - initWithContentRect:styleMask:backing:defer:driver:
 Initialize event system for the application rectangle.
(void) - setFrame:display:
 Define the rectangle we draw our window in.
(void) - refreshSystemSprites
(void) - touchBarButtonAction: [implementation]
(nullable NSTouchBar *) - makeTouchBar [implementation]
(nullable NSTouchBarItem *) - touchBar:makeItemForIdentifier: [implementation]

Detailed Description

Subclass of NSWindow to cater our special needs.

Definition at line 32 of file cocoa_wnd.h.

Method Documentation

◆ initWithContentRect:styleMask:backing:defer:driver:

- (instancetype) initWithContentRect: (NSRect) contentRect
styleMask: (NSUInteger) styleMask
backing: (NSBackingStoreType) backingType
defer: (BOOL) flag
driver: (VideoDriver_Cocoa *) drv 

Initialize event system for the application rectangle.

Definition at line 438 of file cocoa_wnd.mm.

References VideoDriver::GetCaption().

◆ makeTouchBar

- (nullable NSTouchBar *) makeTouchBar
implementation

Definition at line 474 of file cocoa_wnd.mm.

◆ refreshSystemSprites

- (void) refreshSystemSprites

Definition at line 507 of file cocoa_wnd.mm.

◆ setFrame:display:

- (void) setFrame: (NSRect) frameRect
display: (BOOL) flag 

Define the rectangle we draw our window in.

Definition at line 459 of file cocoa_wnd.mm.

◆ touchBar:makeItemForIdentifier:

- (nullable NSTouchBarItem *) touchBar: (NSTouchBar *) touchBar
makeItemForIdentifier: (NSTouchBarItemIdentifier) identifier 
implementation

Definition at line 493 of file cocoa_wnd.mm.

◆ touchBarButtonAction:

- (void) touchBarButtonAction: (id) sender
implementation

Definition at line 466 of file cocoa_wnd.mm.


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