foo-webview-sdk
    Preparing search index...

    Interface SmpRawMenuItem

    Raw menu item returned by the C++ menu API (menu.getMainMenu / menu.getContextMenu). Recursive: submenu items carry a children array of the same shape.

    interface SmpRawMenuItem {
        addressCandidates?: MenuAddressCandidate[];
        checked?: boolean;
        children?: SmpRawMenuItem[];
        commandId?: number;
        enabled?: boolean;
        executable?: boolean;
        flags?: number;
        guid?: string;
        label?: string;
        path?: string;
        source?:
            | "mainmenu_static"
            | "mainmenu_dynamic"
            | "contextmenu_static"
            | "contextmenu_dynamic"
            | "hmenu_fallback";
        stateKnown?: boolean;
        subGuid?: string;
        type?: "command"
        | "separator"
        | "submenu";
        unaddressableReason?:
            | "dynamicParent"
            | "noStableIdentifier"
            | "ambiguousMatch"
            | "missingDynamicIdentifier"
            | "incompleteHierarchy";
    }
    Index
    addressCandidates?: MenuAddressCandidate[]

    Diagnostic alternatives, never an automatic dispatch choice.

    checked?: boolean
    children?: SmpRawMenuItem[]
    commandId?: number

    Context menu uses commandId; main menu uses path or guid.

    enabled?: boolean

    Normalized state. Preferred over decoding SmpRawMenuItem.flags, which cannot express "not observed": a zero flag word and a genuinely enabled item are indistinguishable.

    executable?: boolean

    Whether the host can uniquely address this main-menu command.

    flags?: number
    guid?: string
    label?: string
    path?: string
    source?:
        | "mainmenu_static"
        | "mainmenu_dynamic"
        | "contextmenu_static"
        | "contextmenu_dynamic"
        | "hmenu_fallback"

    Native source, including the dynamic kind when its child identifier is missing.

    stateKnown?: boolean

    False when enabled / checked carry no observation.

    subGuid?: string

    Sub-command GUID of a dynamic submenu child.

    type?: "command" | "separator" | "submenu"
    unaddressableReason?:
        | "dynamicParent"
        | "noStableIdentifier"
        | "ambiguousMatch"
        | "missingDynamicIdentifier"
        | "incompleteHierarchy"

    Why the host cannot provide a complete main-menu execution address.