Egui::Rect
Inherits Struct < Value < Object
Constructors
from_min_size(min : Pos2, size : Vec2) : Rect
Sourceinfinite
A rect containing every practical point — the default interaction clip for Uis that are not inside a clipping container.
new(min : Pos2, max : Pos2)
Sourcezero
SourceInstance methods
bottom
Sourcecenter
Sourcecenter_top
Sourcecontains?(p : Pos2) : Bool
Sourceexpand(amount : Float64) : Rect
egui Rect::expand(amount): grow symmetrically in all directions.
height
Sourceinspect(io : IO) : Nil
Appends this struct's name and instance variables names and values to the given IO.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p1.to_s # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"
intersects?(other : Rect) : Bool
Sourceleft
Sourceleft_center
Sourcemax
Sourcemax=(max : Pos2)
Sourcemin
Sourcemin=(min : Pos2)
Sourceright
Sourceshrink(amount : Float64) : Rect
Sourcesize
Sourcetop
Sourcetranslate(v : Vec2) : Rect
Sourceunion(other : Rect) : Rect
Sourcewidth
Source