createContextMenuFromAnnotatedCode

Context menus can have @hotkey, @label, @tip, @separator, and @icon

Note they can NOT have accelerators or toolbars; those annotations will be ignored.

Mark the functions callable from it with @context_menu { ... } Presence of other @menu(...) annotations will exclude it from the context menu at this time.

  1. Menu createContextMenuFromAnnotatedCode(TWidget w)
    createContextMenuFromAnnotatedCode
    (
    TWidget
    )
    (
    TWidget w
    )
    if (
    is(TWidget : Widget)
    )
  2. Menu createContextMenuFromAnnotatedCode(Widget w, T t)
  3. Menu createContextMenuFromAnnotatedCode(Widget w, T t)

See Also

Meta