class Tessell::Kit::OverlayHost

Defined in:

tessell/kit/overlay.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(viewport : Rect = Rect.new(0.0_f32, 0.0_f32, 800.0_f32, 600.0_f32)) #

[View source]

Instance Method Detail

def any? : Bool #

[View source]
def clear : Nil #

[View source]
def close(entry : OverlayEntry) : Bool #

[View source]
def close_owner(owner : Component) : Nil #

[View source]
def close_top : Bool #

[View source]
def context : Context | Nil #

[View source]
def context=(context : Context | Nil) #

[View source]
def empty? : Bool #

[View source]
def entries : Array(OverlayEntry) #

[View source]
def hit(point : Point) : OverlayEntry | Nil #

找到包含点的最上层 entry;屏外点击返回 nil。


[View source]
def layout(ctx : Context, viewport : Rect) : Nil #

[View source]
def modal? : Bool #

[View source]
def on_close : Proc(OverlayEntry, Nil) | Nil #

[View source]
def on_close=(on_close : Proc(OverlayEntry, Nil) | Nil) #

[View source]
def on_open : Proc(OverlayEntry, Nil) | Nil #

[View source]
def on_open=(on_open : Proc(OverlayEntry, Nil) | Nil) #

[View source]
def open(entry : OverlayEntry) : Nil #

[View source]
def top : OverlayEntry | Nil #

[View source]
def top_modal : OverlayEntry | Nil #

[View source]
def viewport : Rect #

[View source]
def viewport=(viewport : Rect) #

[View source]