OpenWalnut
1.5.0dev
|
Wraps the WColor class for scripts. More...
#include <WColorWrapper.h>
Public Member Functions | |
WColorWrapper (float r, float g, float b, float a) | |
Contructs a new wrapper. More... | |
~WColorWrapper () | |
Destructor. More... | |
float | getR () const |
Get the red component. More... | |
float | getG () const |
Get the green component. More... | |
float | getB () const |
Get the blue component. More... | |
float | getA () const |
Get the alpha component. More... | |
void | setR (float r) |
Set the red component. More... | |
void | setG (float g) |
Set the green component. More... | |
void | setB (float b) |
Set the blue component. More... | |
void | setA (float a) |
Set the alpha component. More... | |
WColor const & | get () const |
Get the wrapped color. More... | |
Private Attributes | |
WColor | m_color |
The color. More... | |
Wraps the WColor class for scripts.
Definition at line 33 of file WColorWrapper.h.
|
inline |
Contructs a new wrapper.
r | The red component in [0,1]. |
g | The green component in [0,1]. |
b | The blue component in [0,1]. |
a | The alpha component in [0,1]. |
Definition at line 44 of file WColorWrapper.h.
|
inline |
Destructor.
Definition at line 52 of file WColorWrapper.h.
|
inline |
Get the wrapped color.
Definition at line 141 of file WColorWrapper.h.
References m_color.
Referenced by WPropertyWrapper::setColor().
|
inline |
Get the alpha component.
Definition at line 91 of file WColorWrapper.h.
References m_color.
|
inline |
Get the blue component.
Definition at line 81 of file WColorWrapper.h.
References m_color.
|
inline |
Get the green component.
Definition at line 71 of file WColorWrapper.h.
References m_color.
|
inline |
Get the red component.
Definition at line 61 of file WColorWrapper.h.
References m_color.
|
inline |
Set the alpha component.
a | The alpha component. |
Definition at line 131 of file WColorWrapper.h.
References m_color.
|
inline |
Set the blue component.
b | The blue component. |
Definition at line 121 of file WColorWrapper.h.
References m_color.
|
inline |
Set the green component.
g | The green component. |
Definition at line 111 of file WColorWrapper.h.
References m_color.
|
inline |
Set the red component.
r | The red component. |
Definition at line 101 of file WColorWrapper.h.
References m_color.
|
private |