Private constructorProtected m_Protected m_Protected m_Protected m_Static Private s_Returns true if events are blocked; otherwise returns false.
If blocked is true, then events emitted by this event watcher will be blocked, meaning that emitting an event will not trigger any callback functions that are bound to it.
Returns the dom of this desktop.
Returns whether this desktop is enabled or not. By default, the value of this property is true.
Sets whether this desktop is enabled or not.
Returns the height of this widget.
Does nothing.
Returns the id of this widget.
Set the id of this widget to the given id. The id is utilized to set the style of the widget. See also css
Returns the left coordinate of this widget within its parent widget.
Sets the left coordinate of this widget within its parent widget.
The unit of left is px.
Returns the parent of this widget, or undefined if it does not have any parent widget.
Sets the parent of the widget to the given parent. If the new parent widget is the old parent widget, this function does nothing.
Returns the style of this widget.
Returns the tooltip of this widget. When the mouse hovers over the widget for a period of time(it can be set by Tooltip::WakeUpDelay), a message will automatically pop up, and it will disappear automatically when the mouse moves away. By default, the value of this property is an empty string.
Sets the tooltip of this widget to the given tooltip.
Returns the top coordinate of this widget within its parent widget.
Sets the top coordinate of this widget to the given top.
The unit of top is px.
Returns whether this desktop is visible or not. By default, the value of this property is true.
Sets whether this desktop is visible or not.
Returns the width of this desktop.
Does nothing.
Static senderReturns the object that sent the event.
Adds the attribute of this widget. The attribute is utilized to set the style. See also css
Adds the class name of this widget. The class name is utilized to set the style. See also css. All widgets with the same class name use the same style.
Protected attachAdds a callback function that's going to be called when the event is emitted.
Rest ...data: EventMap[K]Rest ...data: any[]Delegates this event watcher to handle the given watcher's event named name.
Protected detachEmits an arbitrary set of arguments to the callback function which is bound to the event named name.
Rest ...data: EventMap[K]Rest ...data: any[]Protected freeFrees the resources.See also destroy.
Inserts the child widget at index in the list of children.
Sets whether the widget uses flex layout.
Horizontal or vertical.
Optional alignItem: "center" | "inherit" | "stretch" | "flex-start" | "flex-end" | "initial" | "baseline"Optional spacing: numberthe spacing between widgets inside the layout.
Removes the specified watcher for the event named name.
Static instanceGenerated using TypeDoc
The Desktop is a root widget. There can only be one instance in an application.