final class UISeparator
package smidr.widgets
extends UIComponent
@:build(openfl.utils._internal.AssetsMacro.initBinding())@:autoBuild(openfl.utils._internal.AssetsMacro.initBinding())A 1px themed divider line (horizontal by default).
Constructor
@:value({ vertical : false })new(length:Float, vertical:Bool = false)
Parameters:
length | the line length |
|---|---|
vertical |
|
Methods
Inherited Variables
Defined by UIComponent
@:value(MouseCursor.BUTTON)hoverCursor:MouseCursor = MouseCursor.BUTTON
Native cursor while hovering (interactive widgets; null keeps the arrow).
@:value(false)longPressable:Bool = false
Opts a subclass that overrides onRightPress (without setting onRightClick) into
long-press-as-right-click on touch. Widgets with onRightClick set are included
automatically.
@:value(null)onClick:() ‑> Void = null
Fired on a completed click (press + release on this widget). Requires an interactive widget.
@:value(null)onHover:() ‑> Void = null
Fired when the cursor first enters this widget (hover-driven descriptions/previews). Interactive widgets only.
@:value(null)onRightClick:() ‑> Void = null
Fired on a right mouse press over this widget (context menus). Only interactive widgets
receive pointer events, so this never fires on passive widgets like UILabel/UIPanel —
attach it to a UIButton (or another interactive widget) instead. On touch, a long-press
fires the same path (see UIRoot.longPressMs).
@:value(null)tooltipShortcut:String = null
Optional right-aligned shortcut hint rendered in the tooltip.
@:value(0)read onlyw:Float = 0
Layout width in UI units (independent of DisplayObject's content-derived width).
Inherited Methods
Defined by UIComponent
resize(width:Float, height:Float):Void
Sets the layout size and repaints when it changed.
Parameters:
width | the new layout width in UI units |
|---|---|
height | the new layout height in UI units |