OpenTTD Source 20260206-master-g4d4e37dbf1
OTTD_QuartzView Class Reference

Subclass of OTTD_CocoaView to fix Quartz rendering. More...

Inheritance diagram for OTTD_QuartzView:

Instance Methods

(instancetype) - initWithFrame:andDriver:
 Construct new instance.
(BOOL) - acceptsFirstResponder [implementation]
 Specifies whether the view accepts first responder.
(BOOL) - isOpaque [implementation]
 Specifies whether the view is opaque.
(BOOL) - wantsUpdateLayer [implementation]
 Specifies whether the view wants updates for layer.
(void) - updateLayer [implementation]
 Updates the layer based on driver data.
(void) - viewDidChangeBackingProperties [implementation]
 Updates members with new values after changes in driver.

Protected Attributes

VideoDriver_CocoaQuartzdriver
 The driver to fix rendering for.

Detailed Description

Subclass of OTTD_CocoaView to fix Quartz rendering.

Definition at line 476 of file cocoa_v.mm.

Method Documentation

◆ acceptsFirstResponder

- (BOOL) acceptsFirstResponder
implementation

Specifies whether the view accepts first responder.

Returns
Always no.

Definition at line 509 of file cocoa_v.mm.

References acceptsFirstResponder.

Referenced by acceptsFirstResponder.

◆ initWithFrame:andDriver:

- (instancetype) initWithFrame: (NSRect) frameRect
andDriver: (VideoDriver_CocoaQuartz *) drv 

Construct new instance.

Parameters
frameRectSize of frame.
drvDriver to fix rendering for.
Returns
The newly created instance.

Definition at line 490 of file cocoa_v.mm.

◆ isOpaque

- (BOOL) isOpaque
implementation

Specifies whether the view is opaque.

Returns
Always yes.

Definition at line 518 of file cocoa_v.mm.

References isOpaque.

Referenced by isOpaque.

◆ updateLayer

- (void) updateLayer
implementation

Updates the layer based on driver data.

Definition at line 533 of file cocoa_v.mm.

References driver, and updateLayer.

Referenced by updateLayer.

◆ viewDidChangeBackingProperties

- (void) viewDidChangeBackingProperties
implementation

Updates members with new values after changes in driver.

Definition at line 544 of file cocoa_v.mm.

References viewDidChangeBackingProperties.

Referenced by viewDidChangeBackingProperties.

◆ wantsUpdateLayer

- (BOOL) wantsUpdateLayer
implementation

Specifies whether the view wants updates for layer.

Returns
Always yes.

Definition at line 527 of file cocoa_v.mm.

References wantsUpdateLayer.

Referenced by wantsUpdateLayer.

Field Documentation

◆ driver

- (VideoDriver_CocoaQuartz*) driver
protected

The driver to fix rendering for.

Definition at line 477 of file cocoa_v.mm.

Referenced by updateLayer.


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