#include <colour.hpp>
Public Member Functions | |
| colour () | |
| colour (unsigned int red, unsigned int green, unsigned int blue) | |
| unsigned int | get_red () const |
| unsigned int | get_green () const |
| unsigned int | get_blue () const |
| bool | similar_colour (const colour &colour) const |
Protected Attributes | |
| unsigned int | m_red |
| unsigned int | m_green |
| unsigned int | m_blue |
Definition at line 30 of file colour.hpp.
| obby::colour::colour | ( | ) |
Default constructor, leaves an uninitialised colour.
Definition at line 23 of file colour.cpp.
Referenced by similar_colour().
| obby::colour::colour | ( | unsigned int | red, | |
| unsigned int | green, | |||
| unsigned int | blue | |||
| ) |
Composes a new colour.
Definition at line 27 of file colour.cpp.
| unsigned int obby::colour::get_red | ( | ) | const |
Returns the red colour component.
Definition at line 32 of file colour.cpp.
References m_red.
Referenced by serialise::default_context_to< obby::colour >::to_string().
| unsigned int obby::colour::get_green | ( | ) | const |
Returns the green colour component.
Definition at line 37 of file colour.cpp.
References m_green.
Referenced by serialise::default_context_to< obby::colour >::to_string().
| unsigned int obby::colour::get_blue | ( | ) | const |
Returns the blue colour component.
Definition at line 42 of file colour.cpp.
References m_blue.
Referenced by serialise::default_context_to< obby::colour >::to_string().
| bool obby::colour::similar_colour | ( | const colour & | colour | ) | const |
Returns TRUE if colour is similar to this colour.
Definition at line 47 of file colour.cpp.
References colour(), m_blue, m_green, and m_red.
Referenced by obby::basic_buffer< Document, Selector >::check_colour().
unsigned int obby::colour::m_red [protected] |
unsigned int obby::colour::m_green [protected] |
unsigned int obby::colour::m_blue [protected] |
1.5.1