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)
  2. Menu createContextMenuFromAnnotatedCode(Widget w, T t)
    createContextMenuFromAnnotatedCode
    (
    T
    )
    (,
    ref T t
    )
    if (
    !is(T == class) &&
    !is(T == interface)
    )
  3. Menu createContextMenuFromAnnotatedCode(Widget w, T t)

See Also

Meta