97 Rectangle() : left(0), top(0), width(0), height(0) {}
98 Rectangle(T l, T t, T w, T h) : left(l), top(t), width(w), height(h) {}
100 T left, top, width, height;
112 Colour(std::uint8_t red = 0, std::uint8_t green = 0, std::uint8_t blue = 0, std::uint8_t alpha = 255)
113 : r(red), g(green), b(blue), a(alpha) {}
114 std::uint8_t r, g, b, a;
116 bool operator == (
const Colour& other)
124 bool operator != (
const Colour& other)
126 return !(*
this == other);
129 explicit operator std::uint32_t()
const
131 return (r << 24) | (g << 16) | (b << 8) | a;