Home | History | Annotate | Download | only in lua

Lines Matching defs:Rect

20 Sk.Rect = { left = 0, top = 0, right = 0, bottom = 0 }
21 Sk.Rect.__index = Sk.Rect
23 function Sk.Rect.new(l, t, r, b)
24 local rect
27 rect = { left = l, top = t, right = r, bottom = b }
30 rect = { right = l, bottom = t }
33 rect = {}
35 setmetatable(rect, Sk.Rect)
36 return rect;
39 function Sk.Rect:width()
43 function Sk.Rect:height()
47 function Sk.Rect:isEmpty()
51 function Sk.Rect:isFinite()
59 function Sk.Rect:setEmpty()
66 function Sk.Rect:set(l, t, r, b)
73 function Sk.Rect:offset(dx, dy)
82 function Sk.Rect:inset(dx, dy)