OpenTTD Source 20260129-master-g2bb01bd0e4
TouchBarButton Struct Reference

Structure to store information about single touch bar button. More...

Data Fields

NSTouchBarItemIdentifier key
 Unique identifier for this button.
 
SpriteID sprite
 Sprite to display on button.
 
MainToolbarHotkeys hotkey
 Index of widget that corresponds to this button.
 
NSString * fallback_text
 Text to use if sprite is unavailable.
 

Detailed Description

Structure to store information about single touch bar button.

Definition at line 46 of file cocoa_wnd.mm.

Field Documentation

◆ fallback_text

NSString* TouchBarButton::fallback_text

Text to use if sprite is unavailable.

Definition at line 50 of file cocoa_wnd.mm.

◆ hotkey

MainToolbarHotkeys TouchBarButton::hotkey

Index of widget that corresponds to this button.

Definition at line 49 of file cocoa_wnd.mm.

◆ key

NSTouchBarItemIdentifier TouchBarButton::key

Unique identifier for this button.

Definition at line 47 of file cocoa_wnd.mm.

◆ sprite

SpriteID TouchBarButton::sprite

Sprite to display on button.

Definition at line 48 of file cocoa_wnd.mm.


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