struct Tessell::Layout::LayoutBox

Overview

布局结果(不可变值)。子节点以绝对 Rect 存储;偏移可由子 rect.origin - rect.origin 推导。

Defined in:

tessell/layout.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rect : Rect, children : Array(LayoutBox) = [] of LayoutBox) #

[View source]

Instance Method Detail

def children : Array(LayoutBox) #

[View source]
def rect : Rect #

[View source]