Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Draws a compact selector control and begins a work-area-bounded menu popup.

API: scripting
Project: Inno.Editor.ImGui
Scope: Editor

public bool InnoEditor.ImGui.ImGuiWidget.BeginMenuSelector(string id, string preview, float width, float minimumPopupWidth)

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.

true when the popup is open and its contents should be submitted; otherwise, false.

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.