diff --git a/src/lib/views/sunlight/include/sTypes.h b/src/lib/views/sunlight/include/sTypes.h index 9ceae16..25d297a 100644 --- a/src/lib/views/sunlight/include/sTypes.h +++ b/src/lib/views/sunlight/include/sTypes.h @@ -37,11 +37,16 @@ virtual ~sRGBA8Color(void) { }; }; // sRGBA8Color -#if 0 -class sUInt32 : public sStyle { +class sSize : public sStyle { public: - uInt32 -}; // sUInt32 -#endif + uInt32 size; + uInt32 width; + uInt32 height; + sSize(void) { size = width = height = 0; } + sSize(uInt32 _size) { size = _size; width = height = 0; } + sSize(uInt32, uInt32); + sSize(uInt32, uInt32, uInt32); + virtual ~sSize(void) { }; +}; // sSize #endif diff --git a/src/lib/views/sunlight/sTypes.cpp b/src/lib/views/sunlight/sTypes.cpp index c0f0840..20972c7 100644 --- a/src/lib/views/sunlight/sTypes.cpp +++ b/src/lib/views/sunlight/sTypes.cpp @@ -24,5 +24,19 @@ color.green = green; color.blue = blue; color.alpha = alpha; + return; } // sRGBA8Color::sRGBAColor +sSize::sSize(uInt32 _width, uInt32 _height) { + size = 0; + width = _width; + height = _height; + return; +} // sSize::sSize + +sSize::sSize(uInt32 _size, uInt32 _width, uInt32 _height) { + size = _size; + width = _width; + height = _height; + return; +} // sSize::sSize