Module context_menu_area
Expand description
A context menu over any element: right-click it, or press the Menu key
or Shift+F10 while focus is inside it, and the shared ContextMenu
opens with the commands its owner offers there and then.
The entries are built when the menu opens, so they reflect what is true at that moment (what is selected, which layer the row is), and each runs a closure on the UI thread: an app dispatches its actions from there, the same actions its buttons and keys use.
Structs§
- Context
Menu Area - Menu
Entry - One row of a context menu: what it shows, and what choosing it does.
Type Aliases§
- Content
Menu Entries - The entries a menu offers where it opens, asked of the content: a list
answers for the row under the pointer, or its focused row when the
keyboard opened the menu (
None). - Menu
Entries - The entries a menu offers where it opens, at the pointer in window
coordinates (
Nonewhen the keyboard opened it).