OpenTTD Source 20260129-master-g2bb01bd0e4
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 477 of file cocoa_v.mm.

◆ 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 477 of file cocoa_v.mm.

◆ isOpaque

- (BOOL) isOpaque
implementation

Specifies whether the view is opaque.

Returns
Always yes.

Definition at line 477 of file cocoa_v.mm.

◆ updateLayer

- (void) updateLayer
implementation

Updates the layer based on driver data.

Definition at line 477 of file cocoa_v.mm.

◆ viewDidChangeBackingProperties

- (void) viewDidChangeBackingProperties
implementation

Updates members with new values after changes in driver.

Definition at line 477 of file cocoa_v.mm.

◆ wantsUpdateLayer

- (BOOL) wantsUpdateLayer
implementation

Specifies whether the view wants updates for layer.

Returns
Always yes.

Definition at line 477 of file cocoa_v.mm.

Field Documentation

◆ driver

- (VideoDriver_CocoaQuartz*) driver
protected

The driver to fix rendering for.

Definition at line 477 of file cocoa_v.mm.


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