class
Tessell::Kit::OverlayHost
- Tessell::Kit::OverlayHost
- Reference
- Object
Defined in:
tessell/kit/overlay.crConstructors
Instance Method Summary
- #any? : Bool
- #clear : Nil
- #close(entry : OverlayEntry) : Bool
- #close_owner(owner : Component) : Nil
- #close_top : Bool
- #context : Context | Nil
- #context=(context : Context | Nil)
- #empty? : Bool
- #entries : Array(OverlayEntry)
-
#hit(point : Point) : OverlayEntry | Nil
找到包含点的最上层 entry;屏外点击返回 nil。
- #layout(ctx : Context, viewport : Rect) : Nil
- #modal? : Bool
- #on_close : Proc(OverlayEntry, Nil) | Nil
- #on_close=(on_close : Proc(OverlayEntry, Nil) | Nil)
- #on_open : Proc(OverlayEntry, Nil) | Nil
- #on_open=(on_open : Proc(OverlayEntry, Nil) | Nil)
- #open(entry : OverlayEntry) : Nil
- #top : OverlayEntry | Nil
- #top_modal : OverlayEntry | Nil
- #viewport : Rect
- #viewport=(viewport : Rect)