LensStudio:Ui.IGui
ClassMain interface for accessing UI dialogs, widgets, and workspaces in Lens Studio.
Index
Properties
Methods
Example
// IGui is the core GUI interface for creating dialogs and widgets.
// Access via pluginSystem.findInterface(IGui.interfaceId).
// Properties: dialogs (IDialogs), workspaces (IWorkspaceManager).
const gui = this.pluginSystem.findInterface(IGui.interfaceId) as IGui;
console.log('IGui available:', !Editor.isNull(gui));
const dialog = gui.createDialog();
console.log('createDialog():', !Editor.isNull(dialog));
const widget = gui.createWidget();
console.log('createWidget():', !Editor.isNull(widget));
const dialogs = gui.dialogs;
console.log('dialogs:', !Editor.isNull(dialogs));
const workspaces = gui.workspaces;
console.log('workspaces:', !Editor.isNull(workspaces));
Extends
Extended by
Properties
dialogs
readonlydialogs:IDialogs
Manager for all open dialogs.
interfaceId
staticinterfaceId:InterfaceId
Interface identifier for IGui.
Methods
createDialog()
createDialog():
Dialog
Create a new dialog window.
Returns
createWidget()
createWidget():
Widget
Create a new widget.
Returns
getTypeName()
staticgetTypeName():string
Returns the type name of this class.
Returns
string
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object is of the specified type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object refers to the same instance as the given object.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean