LEVIATHAN v962456e · 962456eee1

dagon

struct Rect

since 0.1.0-alpha.1linux

Constructors

new

new(Point p, Size s)

Fields

origin

Point origin

size

Size size

Methods

bottom

bottom() -> int

contains

contains(int px, int py) -> bool
contains(Point p) -> bool

cover

cover(Rect other) -> Rect

h

h() -> int

inset

inset(Insets i) -> Rect

intersect

intersect(Rect other) -> Rect

isEmpty

isEmpty() -> bool
right() -> int

shift

shift(int dx, int dy) -> Rect

w

w() -> int

x

x() -> int

y

y() -> int