struct

Egui::Rect

Inherits Struct < Value < Object

Constructors

from_min_size(min : Pos2, size : Vec2) : Rect
Source
infinite

A rect containing every practical point — the default interaction clip for Uis that are not inside a clipping container.

Source
new(min : Pos2, max : Pos2)
Source
zero
Source

Instance methods

bottom
Source
center
Source
center_top
Source
contains?(p : Pos2) : Bool
Source
expand(amount : Float64) : Rect

egui Rect::expand(amount): grow symmetrically in all directions.

Source
height
Source
inspect(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)"
Source
intersects?(other : Rect) : Bool
Source
left
Source
left_center
Source
max=(max : Pos2)
Source
min=(min : Pos2)
Source
right
Source
shrink(amount : Float64) : Rect
Source
size
Source
translate(v : Vec2) : Rect
Source
union(other : Rect) : Rect
Source
width
Source