2 * Copyright 2010, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
12 #include <SupportDefs.h>
30 Rectangle(const BRect
& rect
)
32 left(static_cast<T
>(rect
.left
)),
33 top(static_cast<T
>(rect
.top
)),
34 right(static_cast<T
>(rect
.right
)),
35 bottom(static_cast<T
>(rect
.bottom
))
40 Rectangle(T left
, T top
, T right
, T bottom
)
50 Rectangle
<T
>& operator=(const BRect
& rect
) {
51 left
= static_cast<T
>(rect
.left
);
52 top
= static_cast<T
>(rect
.top
);
53 right
= static_cast<T
>(rect
.right
);
54 bottom
= static_cast<T
>(rect
.bottom
);
76 typedef Rectangle
<int32
> RectInt32
;