A callback function to be invoked when an element is touched.
An array containing an input's children. Available for type = ("scrollView" || "popover").
A hexadecimal uint32_t specifying the input's background color. If omitted, the default background color is used.
If true
, the Touch Bar input is greyed out and inoperable.
The URI of an icon file.
Readonly
keyThe lookup key for the button's localized text title.
The type of the input.
Takes one of:
button
:
A standard button.
If an image is available, only the image is displayed.
mainButton
:
An extra-wide button. Displays both the image and title.
scrubber
:
A Scrubber element. Not yet implemented, except in the case of Apple's
pre-built Share scrubber.
popover
:
An element that displays a new instance of nsTouchBar when tapped.
The elements in the new Touch Bar should be defined in the
input's children
property.
label
:
A text label.
scrollView
:
Contains several buttons, defined in the input's children
property.
The user can scroll through the buttons.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Generated using TypeDoc
Implements an input to be registered on the Mac Touch Bar.