class Panel
- Extends:
- UIComponent
Description:
Panel UI component, rectangular UI component that can be used in many different ways:
- Container for other components
- Horizontal or vertical line or rectangle
- Background can be set to color, image, and gradient (like in CSS), which opens lots of opportunities, such as animating background, streaming MJPEG video by setting frames as background of the panel sequentially, and more.
- As a canvas to draw Shapes or create an interactive game using Shapes drawn on this canvas.
Constructor
constructor([text])
Panel constructor. Creates an instance of Panel UI component.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
string |
Text associated with this Panel. It will be used, for example, for a tab name when this panel is added to Tabs component. |
Members
- [ readonly ] childCount
- [ readonly ] children
- [ readonly ] container
- [ readonly ] id
- [ readonly ] parent
- [ readonly ] screenPosition
Methods
From this class:
Inherited from UIComponent:
- addChild()
- addTo()
- anchor()
- background()
- border()
- bottom()
- center()
- child()
- childIndex()
- color()
- contextMenu()
- cursor()
- destroy()
- dragAction()
- dragData()
- dragDataType()
- dropAction()
- dropDataType()
- emit()
- emitFocusKeyEvents()
- enabled()
- focusable()
- focused()
- font()
- getAncestor()
- getWindow()
- height()
- hide()
- icon()
- index()
- isInside()
- layer()
- maxSize()
- minSize()
- move()
- onAncestorEvents()
- onComponentEvents()
- onContainerEvents()
- onDispose()
- onDragEvents()
- onDropEvents()
- onError()
- onFocusEvents()
- onKey()
- onMouseEvents()
- onMouseMotion()
- onMouseWheel()
- onPropertyChange()
- opacity()
- position()
- remove()
- right()
- size()
- snapshot()
- text()
- tooltip()
- updateUI()
- verifyComponent()
- visible()
- width()
- x()
- y()
