#include <pgcolor.h>
Public Member Functions | |
| PG_Color () | |
| PG_Color (const SDL_Color &c) | |
| PG_Color (Uint32 c) | |
| PG_Color (Uint8 r, Uint8 g, Uint8 b) | |
| PG_Color & | operator= (const SDL_Color &c) |
| PG_Color & | operator= (Uint32 c) |
| operator Uint32 () const | |
| Uint32 | MapRGB (SDL_PixelFormat *format) const |
| Uint32 | MapRGBA (SDL_PixelFormat *format, Uint8 a) const |
| bool | operator!= (const PG_Color &c) const |
The purpose of this is to allow one to create new colors. If one is interested in using predefined color constants, see pgcolors.h (note the letter "s" at the end.) A PG_Color can be created from an SDL_Color, a Uint32, or RGB based system.
Definition at line 33 of file pgcolor.h.
|
|
Definition at line 15 of file pgcolor.cpp. |
|
|
Definition at line 21 of file pgcolor.cpp. |
|
|
Definition at line 25 of file pgcolor.cpp. |
|
||||||||||||||||
|
Definition at line 29 of file pgcolor.cpp. |
|
|
Definition at line 46 of file pgcolor.h. Referenced by PG_Widget::DrawHLine(), PG_Widget::DrawVLine(), parseObjectProps(), PG_Draw::DrawGradient(), PG_Draw::DrawThemedSurface(), PG_Draw::SetPixel(), PG_Application::RedrawBackground(), and PG_ThemeWidget::SetBackground(). |
|
||||||||||||
|
Definition at line 50 of file pgcolor.h. Referenced by PG_ThemeWidget::eventBlit(), BarGraphWidget::eventBlit(), and GraphWidget::mapColor(). |
|
|
Definition at line 49 of file pgcolor.cpp. |
|
|
|
|
|
Definition at line 41 of file pgcolor.cpp. |
|
|
Definition at line 33 of file pgcolor.cpp. |
1.4.2