struct Tessell::Constraints

Overview

布局输入:两遍布局的约束下行阶段使用。

Defined in:

tessell/geometry.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(min_width : Float32 = 0.0_f32, max_width : Float32 = Float32::INFINITY, min_height : Float32 = 0.0_f32, max_height : Float32 = Float32::INFINITY) #

[View source]

Class Method Detail

def self.tight(size : Size) #

[View source]

Instance Method Detail

def constrain(size : Size) : Size #

[View source]
def loosen : Constraints #

[View source]
def max_height : Float32 #

[View source]
def max_width : Float32 #

[View source]
def min_height : Float32 #

[View source]
def min_width : Float32 #

[View source]