#include <upalette.hpp>
Inheritance diagram for ufo::UPalette:
Public Types | |
enum | ColorGroup { Active, Inactive, Disabled, NColorGroupType } |
enum | ColorRole { Background, Foreground, Base, Text, Button, ButtonText, Light, MidLight, Dark, Mid, Highlight, HighlightedText, Link, LinkVisited, MaxColorRoles } |
Public Member Functions | |
UPalette (const UColor &background, const UColor &foreground, const UColor &base, const UColor &text, const UColor &light, const UColor &midLight, const UColor &dark, const UColor &mid, const UColor &highlight, const UColor &highlightedText, const UColor &button, const UColor &buttonText, const UColor &link, const UColor &linkVisited) | |
UPalette (const UColor &background, const UColor &foreground, const UColor &base, const UColor &text, const UColor &highlight, const UColor &highlightedText) | |
void | setColor (ColorRole role, const UColor &color) |
const UColor & | getColor (ColorRole role) const |
void | transcribe (const UPalette &pal) |
void | update (const UPalette &pal) |
const UColor & | background () const |
const UColor & | foreground () const |
const UColor & | base () const |
const UColor & | text () const |
const UColor & | button () const |
const UColor & | buttonText () const |
const UColor & | light () const |
const UColor & | midLight () const |
const UColor & | dark () const |
const UColor & | mid () const |
const UColor & | highlight () const |
const UColor & | highlightedText () const |
const UColor & | link () const |
const UColor & | linkVisited () const |
const UColor & | getColor (ColorGroup group, ColorRole role) const |
void | setColor (ColorGroup group, ColorRole role, const UColor &color) |
bool | operator== (const UPalette &pal) const |
bool | operator!= (const UPalette &pal) const |
Protected Member Functions | |
virtual std::ostream & | paramString (std::ostream &os) const |
|
Currently not used. |
|
|
used. |
|
Prints some useful internal data to the ostream os. This method is meant only for debugging purposes. Reimplemented from ufo::UObject.
|
|
used. |
|
Every color of |
|
Updates every default value of this palette with the given values of |