13 const Insets Insets::EMPTY = Insets{0, 0, 0, 0};
15 Insets::Insets(int32_t top, int32_t right, int32_t bottom, int32_t left)
16 : top(top), right(right), bottom(bottom), left(left) {}
18 Insets::Insets(int32_t topBottom, int32_t rightLeft)
19 : Insets(topBottom, rightLeft, topBottom, rightLeft) {}
21 Insets::Insets(int32_t inset)
22 : Insets(inset, inset) {}
24 Insets& Insets::operator+=(
const Insets& second)
27 right += second.right;
28 bottom += second.bottom;
34 Insets& Insets::operator-=(
const Insets& second)
37 right -= second.right;
38 bottom -= second.bottom;
44 Insets operator+(
const Insets& first,
const Insets& second)
52 Insets operator-(
const Insets& first,
const Insets& second)