ProtectedconstructorOptionalisInternalConstructor: booleanProtected_closeProtected_isProtected_optionsProtected_rememberingProtected Static ReadonlypreviousStatic ReadonlywindowThe default window content padding to be used for drop down windows.
Static ReadonlywindowThe default window padding to be used for drop down windows.
Returns the DPI scale factor.
Sets the height of the window in points.
Sets the height of the window in pixels.
Check whether the window was destroyed.
Checks whether the window currently has keyboard focus.
Gets the key window which owns this window.
Returns the X position of the window in screen coordinates in points.
Specifies the local shortcut context. This context will be automatically disabled whenever the user switches focus from the context.
Gets the parent EditorWindow.
Gets the RenderWindow associated with this EditorWindow.
Specifies the global shortcut context. This context will be always enabled as long as the window is active.
Returns the X position of the window in screen coordinates in points.
Sets the width of the window in points.
Sets the width of the window in pixels.
ProtectedonProtectedonProtectedonVirtualMethod to override to implement initialization of custom windows. Called by the engine after window creation.
StaticconstructOpens a DropDownWindow of the specified type.
The type of the DropDownWindow to open.
The parent key window, if null, will use the current.
The window options.
The optional element to anchor the drop down window.
The optional anchor position. If anchorElement is not null, the value is relative to it, otherwise absolute.
OptionalparentWindow: EditorWindowOptional. A custom parent window of the drop down. Will use the parent from the anchor if null.
OptionalwindowOptions: anyOptional. The window options that will be passed to onInitialize.
The newly constructed DropDownWindow.
Protected StaticconstructConstructs the DropDownWindow from script.
StaticopenOpens an inline DropDownWindow that can be constructed in the specified onInitialize callback.
The onInitialize callback can return a value that is passed to the onClose callback through the second argument.
The parent key window, if null, will use the current.
The callback that will be called when the window is being initialized and the UI should be populated.
OptionalonClose: ((window: DropDownWindow, options?: T) => void)The optional callback when the window is being closed.
Optionaloptions: TOptionalanchorPosition: Immutable<Vector2>The optional anchor position. If anchorElement is not null, the value is relative to it, otherwise absolute.
OptionaldropdownOptions: EnumValueTyped<DropDownWindowOption, number>The optional popover options.
OptionalparentWindow: EditorWindowThe optional parent window.
Optionalidentifier: stringThe newly constructed window.
The InlineDropDownWindow class provides a quick way to construct inline dropdown windows. The user of the class provides a callback that will be invoked when the window contents will be created. The inline callout window can be dismissed by pressing the
Escapebutton.Note
This class should not be used for complex windows and interactions. It aims to provide a quick way to construct a window without the need for subclassing, only to display a handful of UI elements.