| alpha | The alpha blending used when drawing over the parent. Default is 0 (no blending). See also Box.setAlpha(). |
| bg:abguibase.Background | The background to draw, null for no background (transparent widget). |
| desiredSize | The desired size, null to compute it |
| fg | The foreground color |
| inset | The inset of the content (pixels on each of the four sides), 0 for none |
| parent:abguibase.Widget | The parent widget in the hierarchy |
| rect | The (absolute) position and size of this widget as [x, y, w, h] |
| valid | Whether this widget view is valid; false if it requires redrawing. |
| visible | Whether this widget is visible |
| desiredSize() | Compute the desired size of this widget, including the insets. |
| draw() | Draw this widget. |
| drawFocus() | Draw the focus. |
| focusable() | Check whether this widget can get the focus. |
| fullDraw() | Fully draw this widget. |
| gotFocus() | Called when this widget got the focus. |
| handled(event) | Handle an ui.cmd() event. |
| hasFocus() | Check whether this widget has the focus. |
| hide() | Hide this widget, i.e. make it invisible. |
| invalidate() | Make this widget invalid, i.e. request it being redrawn. |
| lostFocus() | Called when this widget lost the focus. |
| moveBy(dx, dy) | Move this widget by a vector. |
| moveTo(x, y) | Move this widget to a location. |
| requestFocus() | Request the focus on this widget. |
| setCentered(x=0, y=0, w=..., h=...) | Center this widget in a rectangle, using the desired size if possible, otherwise squeezing it into the available space. |
| setRect(x, y, w=..., h=...) | Set this widget's rectangle, i.e. lay it out on the canvas. |
| show() | Show this widget, i.e. make it visible. |
| validate() | Make this widget valid, i.e. redraw it if required. |