the class to store a color More...
#include <libwps_internal.h>
| Public Member Functions | |
| WPSColor (uint32_t argb=0) | |
| constructor  More... | |
| WPSColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255) | |
| constructor from color  More... | |
| WPSColor (WPSColor const &)=default | |
| copy constructor  More... | |
| WPSColor (WPSColor &&)=default | |
| move assignement  More... | |
| WPSColor & | operator= (uint32_t argb) | 
| operator=  More... | |
| WPSColor & | operator= (WPSColor const &)=default | 
| operator=  More... | |
| WPSColor & | operator= (WPSColor &&)=default | 
| move operator=  More... | |
| uint32_t | value () const | 
| return the rgba value  More... | |
| unsigned char | getAlpha () const | 
| returns the alpha value  More... | |
| unsigned char | getBlue () const | 
| returns the green value  More... | |
| unsigned char | getRed () const | 
| returns the red value  More... | |
| unsigned char | getGreen () const | 
| returns the green value  More... | |
| bool | isBlack () const | 
| return true if the color is black  More... | |
| bool | isWhite () const | 
| return true if the color is white  More... | |
| bool | operator== (WPSColor const &c) const | 
| operator==  More... | |
| bool | operator!= (WPSColor const &c) const | 
| operator!=  More... | |
| bool | operator< (WPSColor const &c) const | 
| operator<  More... | |
| bool | operator<= (WPSColor const &c) const | 
| operator<=  More... | |
| bool | operator> (WPSColor const &c) const | 
| operator>  More... | |
| bool | operator>= (WPSColor const &c) const | 
| operator>=  More... | |
| std::string | str () const | 
| print the color in the form #rrggbb  More... | |
| Static Public Member Functions | |
| static WPSColor | black () | 
| return the back color  More... | |
| static WPSColor | white () | 
| return the white color  More... | |
| static WPSColor | barycenter (float alpha, WPSColor const &colA, float beta, WPSColor const &colB) | 
| return alpha*colA+beta*colB  More... | |
| Protected Attributes | |
| uint32_t | m_value | 
| the argb color  More... | |
| Friends | |
| std::ostream & | operator<< (std::ostream &o, WPSColor const &c) | 
| operator<< in the form #rrggbb  More... | |
the class to store a color
| 
 | inlineexplicit | 
constructor
Referenced by barycenter(), black(), and white().
| 
 | inline | 
constructor from color
| 
 | default | 
copy constructor
| 
 | default | 
move assignement
| 
 | static | 
return alpha*colA+beta*colB
Referenced by WPSGraphicStyle::Pattern::getAverageColor(), QuattroSpreadsheet::readCellStyle(), LotusStyleManager::readLineStyle(), WPS8Table::readMCLD(), WKS4Spreadsheet::readMsWorksStyle(), WPS8TextStyle::readParagraph(), QuattroGraph::readShapeHeader(), and QuattroGraph::readTextBox().
| 
 | inlinestatic | 
return the back color
Referenced by LotusStyleManagerInternal::ColorStyle::ColorStyle(), WPSGraphicStyle::Pattern::Pattern(), QuattroDosSpreadsheet::readCellProperty(), QuattroDosSpreadsheet::readCellStyle(), QuattroSpreadsheet::readCellStyle(), Quattro9Spreadsheet::readCellStyles(), QuattroDosChart::readChart(), LotusSpreadsheet::readExtraRowFormats(), LotusChart::readFramesStyle(), LotusStyleManager::readLineStyle(), WPS8Table::readMCLD(), WKS4Spreadsheet::readMsWorksStyle(), WPS8TextStyle::readParagraph(), LotusChart::readSerie(), Quattro9Graph::readShapeRec(), QuattroDosSpreadsheet::readUserStyle(), LotusStyleManager::updateSurfaceStyle(), and WPSGraphicStyle::WPSGraphicStyle().
| 
 | inline | 
returns the alpha value
| 
 | inline | 
returns the green value
Referenced by DosWordParser::readPAP().
| 
 | inline | 
returns the green value
Referenced by DosWordParser::readPAP().
| 
 | inline | 
returns the red value
Referenced by DosWordParser::readPAP().
| 
 | inline | 
return true if the color is black
Referenced by LotusSpreadsheetInternal::ExtraStyle::empty(), operator<<(), Quattro9Spreadsheet::readCellStyles(), LotusSpreadsheet::readExtraRowFormats(), LotusStyleManager::readFontStyleF0(), Quattro9Graph::readFrameHeader(), LotusChart::readFramesStyle(), LotusGraph::readGraphic(), QuattroParser::readPaneAttribute(), and Quattro9Graph::readShapeRec().
| 
 | inline | 
return true if the color is white
Referenced by WPSParagraph::addTo(), LotusSpreadsheetInternal::ExtraStyle::empty(), WPS8ParserInternal::operator<<(), WPS4TextInternal::operator<<(), operator<<(), LotusStyleManager::readCellStyleD2Data(), LotusStyleManager::readCellStyleE6(), Quattro9Spreadsheet::readCellStyles(), Quattro9Graph::readFrameHeader(), LotusChart::readFramesStyle(), and Quattro9Graph::readTextboxStyle().
| 
 | inline | 
operator!=
| 
 | inline | 
operator<
Referenced by operator>=().
| 
 | inline | 
operator<=
Referenced by operator>().
| 
 | inline | 
operator=
| 
 | inline | 
operator==
Referenced by operator!=().
| 
 | inline | 
operator>
| 
 | inline | 
operator>=
| std::string WPSColor::str | ( | ) | const | 
print the color in the form #rrggbb
Referenced by WPSGraphicStyle::addFrameTo(), WPSFont::addTo(), WPSParagraph::addTo(), WPSGraphicStyle::addTo(), and WPSBorder::addTo().
| 
 | inline | 
return the rgba value
| 
 | inlinestatic | 
return the white color
Referenced by LotusStyleManagerInternal::ColorStyle::ColorStyle(), WPSGraphicStyle::Pattern::Pattern(), QuattroSpreadsheet::readCellStyle(), Quattro9Spreadsheet::readCellStyles(), QuattroDosChart::readChart(), LotusChart::readFramesStyle(), LotusStyleManager::readLineStyle(), WPS8Table::readMCLD(), WKS4Spreadsheet::readMsWorksStyle(), WPS8TextStyle::readParagraph(), LotusChart::readSerie(), Quattro9Graph::readShapeRec(), WKS4Chart::updateChart(), and WPSGraphicStyle::WPSGraphicStyle().
| 
 | friend | 
operator<< in the form #rrggbb
| 
 | protected | 
the argb color
Referenced by barycenter(), getAlpha(), getBlue(), getGreen(), getRed(), isBlack(), isWhite(), operator<(), operator<<(), operator<=(), operator=(), operator==(), and value().