LensStudio:Ui.Gui
ClassBuilt-in interface for GUI operations in plugins.
Index
Properties
Methods
Example
// Gui is the concrete implementation of IGui.
// Access via pluginSystem.findInterface(IGui.interfaceId).
// Provides createDialog(), createWidget(), dialogs, and workspaces.
const gui = this.pluginSystem.findInterface(IGui.interfaceId) as IGui;
console.log('IGui available:', !Editor.isNull(gui));
const dialog = gui.createDialog();
dialog.windowTitle = 'Created via Gui';
dialog.resize(300, 150);
console.log('Dialog created:', !Editor.isNull(dialog));
const widget = gui.createWidget();
console.log('Widget created:', !Editor.isNull(widget));
Extends
Properties
dialogs
readonlydialogs:IDialogs
Manager for all open dialogs.
Inherited from
interfaceId
staticinterfaceId:InterfaceId
Interface identifier for IGui.
Inherited from
Methods
createDialog()
createDialog():
Dialog
Create a new dialog window.
Returns
Inherited from
createWidget()
createWidget():
Widget
Create a new widget.
Returns
Inherited from
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