.. index:: pair: class; EE::System::tColor .. _doxid-class_e_e_1_1_system_1_1t_color: template class EE::System::tColor ================================= .. toctree:: :hidden: Overview ~~~~~~~~ Template class for a RGBA color. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include template class tColor { public: // fields :ref:`Uint32` :target:`Value`; T :target:`r`; T :target:`g`; T :target:`b`; T :target:`a`; T :target:`h`; T :target:`s`; T :target:`v`; struct EE::System::tColor::@4::@8 :target:`hsv`; T :target:`l`; struct EE::System::tColor::@4::@9 :target:`hsl`; // construction :target:`tColor`(); :ref:`tColor`(T r, T g, T b, T a); :ref:`tColor`(const :ref:`tRGB`& Col); :ref:`tColor`(const :ref:`tRGB`& Col, T a); :target:`tColor`(const tColor& Col); :ref:`tColor`(const :ref:`Uint32`& Col); // methods :ref:`Uint32` :ref:`getValue`() const; void :ref:`assign`(T r, T g, T b, T a); void :ref:`assign`(const tColor& Col); bool :target:`operator==`(const tColor& Col) const; bool :target:`operator!=`(const tColor& Col) const; tColor :target:`operator+`(const tColor& Col) const; tColor :target:`operator-`(const tColor& Col) const; tColor :target:`operator*`(const tColor& Col) const; :ref:`tRGB` :target:`toRGB`(); }; .. _details-class_e_e_1_1_system_1_1t_color: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Template class for a RGBA color. Construction ------------ .. index:: pair: function; tColor .. _doxid-class_e_e_1_1_system_1_1t_color_1a21ec4b34e973426fb8ec8256785e5356: .. ref-code-block:: cpp :class: doxyrest-title-code-block tColor(T r, T g, T b, T a) Creates an RGBA color from each component. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - r - Red component * - g - Green component * - b - Blue component * - a - Alpha component .. index:: pair: function; tColor .. _doxid-class_e_e_1_1_system_1_1t_color_1a6558ec27a3a27ab87a07e7cf9c815ac3: .. ref-code-block:: cpp :class: doxyrest-title-code-block tColor(const :ref:`tRGB`& Col) Creates a RGBA color from a :ref:`RGB ` color, the Alpha component is set as non-transparent. .. index:: pair: function; tColor .. _doxid-class_e_e_1_1_system_1_1t_color_1ade3421eb7490efb6c7843f0e7d6ce290: .. ref-code-block:: cpp :class: doxyrest-title-code-block tColor(const :ref:`tRGB`& Col, T a) Creates a RGBA color from a :ref:`RGB ` color. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - Col - The :ref:`RGB ` color * - a - The Alpha component value .. index:: pair: function; tColor .. _doxid-class_e_e_1_1_system_1_1t_color_1a432b52f68801f904319f3cd353680437: .. ref-code-block:: cpp :class: doxyrest-title-code-block tColor(const :ref:`Uint32`& Col) From a 32 bits value with RGBA byte order Methods ------- .. index:: pair: function; getValue .. _doxid-class_e_e_1_1_system_1_1t_color_1a1b81d7e8386a7ce568338133fa6692a7: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Uint32` getValue() const .. rubric:: Returns: The color represented as an Uint32 ( as 0xRRGGBBAA for Little Endian ) .. index:: pair: function; assign .. _doxid-class_e_e_1_1_system_1_1t_color_1a1358556d14d99100dfd2a3b93dd571bd: .. ref-code-block:: cpp :class: doxyrest-title-code-block void assign(T r, T g, T b, T a) Assign the RGBA colors, from each component. .. index:: pair: function; assign .. _doxid-class_e_e_1_1_system_1_1t_color_1ac7e4ea6276e57a3a2084bf7f25c7dd8a: .. ref-code-block:: cpp :class: doxyrest-title-code-block void assign(const tColor& Col) Assign the color value from other RGBA color.