Preset defaults for common menu items.

Header#include "nativeui/menu_item.h"
Namespacenamespace nu
Typeenum class

For common menu items like Copy and Paste, manually implementing them for all platforms is very boring work. You can instead specify a role for a menu item, and Yue will automatically set labels, accelerators and actions for the menu item.

This type is an enum class with following values:

On macOS following values are also available: