Synced
ImGuiWidget.BeginMenuSelector
Section titled “ImGuiWidget.BeginMenuSelector”
- Draws a compact selector control and begins a work-area-bounded menu popup.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public bool InnoEditor.ImGui.ImGuiWidget.BeginMenuSelector(string id, string preview, float width, float minimumPopupWidth)Parameters
Section titled “Parameters”Parameter id: Stable selector identifier in the current ImGui scope.
Parameter preview: Text displayed by the closed selector.
Parameter width: Width reserved for the selector control.
Parameter minimumPopupWidth: Minimum outer width of the popup, including its window padding.
Returns
Section titled “Returns”true when the popup is open and its contents should be submitted; otherwise, false.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when id is empty.
Exception T:System.ArgumentNullException: Thrown when preview is null.
Exception T:System.ArgumentOutOfRangeException: Thrown when width or minimumPopupWidth is not positive.