DesktopMessageBoxButtonRole enum

Namespace Runic.Platform in Runic.Platform 0.23.0

public enum DesktopMessageBoxButtonRole

The role of a DesktopMessageBoxButton.

Remarks

This set is open: a minor release may add roles, and a provider treats an unknown role as DesktopMessageBoxButtonRole.Normal.

Values

Normal

Normal = 0

An ordinary button.

Default

Default = 1

The button Return chooses and the platform emphasizes; at most one per box.

Cancel

Cancel = 2

The button Esc and the window's close button choose; at most one per box.

Remarks

Without a cancel button, Windows and macOS offer no way to close the box other than its buttons.

Destructive

Destructive = 3

A button that discards data, such as "Don't Save": styled as destructive on macOS 11 and later and on GTK 3.