Public Member Functions | Public Attributes | Private Attributes

UT_RGBColor Class Reference

#include <ut_color.h>

List of all members.

Public Member Functions

 UT_RGBColor ()
 UT_RGBColor (unsigned char, unsigned char, unsigned char, bool bTransparent=false)
 UT_RGBColor (const UT_RGBColor &)
 UT_RGBColor (const UT_ColorPatImpl *pattern)
 ~UT_RGBColor ()
bool operator!= (const UT_RGBColor &op1)
bool operator== (const UT_RGBColor &op1)
bool operator%= (const UT_RGBColor &op1)
UT_RGBColoroperator^= (const UT_RGBColor &op1)
UT_RGBColoroperator+= (const unsigned char inc)
UT_RGBColoroperator+= (const UT_RGBColor &inc)
UT_RGBColoroperator-= (const UT_RGBColor &inc)
UT_RGBColoroperator= (const UT_RGBColor &inc)
bool isTransparent () const
bool setColor (const char *pszColor)
bool isPattern () const
const UT_ColorPatImplpattern () const
void setPattern (const UT_ColorPatImpl *p)

Public Attributes

unsigned char m_red
unsigned char m_grn
unsigned char m_blu
bool m_bIsTransparent

Private Attributes

const UT_ColorPatImplm_patImpl

Constructor & Destructor Documentation

UT_RGBColor::UT_RGBColor (  ) 

References m_bIsTransparent, m_blu, m_grn, and m_red.

UT_RGBColor::UT_RGBColor ( unsigned char  red,
unsigned char  grn,
unsigned char  blu,
bool  bTransparent = false 
)

References m_bIsTransparent, m_blu, m_grn, and m_red.

UT_RGBColor::UT_RGBColor ( const UT_RGBColor c  ) 
UT_RGBColor::UT_RGBColor ( const UT_ColorPatImpl pattern  ) 
UT_RGBColor::~UT_RGBColor (  ) 

References DELETEP, and m_patImpl.


Member Function Documentation

bool UT_RGBColor::isPattern (  )  const [inline]
bool UT_RGBColor::isTransparent (  )  const [inline]
bool UT_RGBColor::operator!= ( const UT_RGBColor op1  )  [inline]

References m_blu, m_grn, and m_red.

bool UT_RGBColor::operator%= ( const UT_RGBColor op1  )  [inline]

References m_blu, m_grn, m_red, and UT_RGBCOLOR_PROXIMITY.

UT_RGBColor& UT_RGBColor::operator+= ( const unsigned char  inc  )  [inline]
UT_RGBColor& UT_RGBColor::operator+= ( const UT_RGBColor inc  )  [inline]

References m_blu, m_grn, and m_red.

UT_RGBColor& UT_RGBColor::operator-= ( const UT_RGBColor inc  )  [inline]

References m_blu, m_grn, and m_red.

UT_RGBColor & UT_RGBColor::operator= ( const UT_RGBColor inc  ) 
bool UT_RGBColor::operator== ( const UT_RGBColor op1  )  [inline]

References m_blu, m_grn, and m_red.

UT_RGBColor& UT_RGBColor::operator^= ( const UT_RGBColor op1  )  [inline]

References m_blu, m_grn, and m_red.

const UT_ColorPatImpl* UT_RGBColor::pattern (  )  const [inline]
bool UT_RGBColor::setColor ( const char *  pszColor  ) 
void UT_RGBColor::setPattern ( const UT_ColorPatImpl p  )  [inline]

Member Data Documentation

unsigned char UT_RGBColor::m_blu

Referenced by _convertGdkRGBA(), AP_Dialog_Styles::_createCharPreviewFromGC(), FV_View::_drawResizeHandle(), fp_TextRun::_fillRect(), XAP_Win32Dialog_FontChooser::_onInitDialog(), s_RTF_ListenerWriteDoc::_openFrame(), s_KWord_1_Listener::_openSpan(), AP_Dialog_Styles::_populateAbiPreview(), AP_CocoaDialog_FormatFrame::_populateWindowData, GR_CairoGraphics::_setSource(), IE_Exp_RTF::_write_rtf_header(), AP_Preview_Paragraph_Block::AP_Preview_Paragraph_Block(), AbiWidget_ViewListener::color(), fp_Run::draw(), XAP_UnixHildonDialog_FontChooser::fillFontInfo(), GR_Win32Graphics::fillRect(), XAP_Win32Toolbar_Icons::getBitmapForIcon(), AP_Dialog_Styles::ModifyFont(), operator!=(), operator%=(), operator+=(), operator-=(), operator=(), operator==(), operator==(), operator^=(), GR_Win32Graphics::polygon(), XAP_Win32Dialog_FontChooser::runModal(), AP_Win32Dialog_Background::runModal(), s_doFontDlg(), AP_Dialog_FormatTable::setBackgroundColor(), AP_Win32Dialog_FormatTable::setBackgroundColorInGUI(), AP_Dialog_FormatFrame::setBGColor(), AP_Dialog_FormatTable::setBorderColor(), AP_Dialog_Border_Shading::setBorderColor(), AP_Dialog_FormatFrame::setBorderColorBottom(), AP_Win32Dialog_Border_Shading::setBorderColorInGUI(), AP_UnixDialog_Border_Shading::setBorderColorInGUI(), AP_Dialog_FormatFrame::setBorderColorLeft(), AP_Dialog_FormatFrame::setBorderColorRight(), AP_Dialog_FormatFrame::setBorderColorTop(), UT_HashColor::setColor(), setColor(), GR_Win32Graphics::setColor(), AP_Dialog_Background::setColor(), AP_Dialog_Border_Shading::setShadingColor(), AP_Win32Dialog_Border_Shading::setShadingColorInGUI(), AP_UnixDialog_Border_Shading::setShadingColorInGUI(), XAP_CocoaToolPalette::sync, AP_Dialog_FormatTable::toggleLineType(), AP_Dialog_FormatFrame::toggleLineType(), AP_Dialog_Border_Shading::toggleLineType(), UT_colorToHex(), UT_parseCMYKColor(), UT_parseColor(), UT_parseGrayColor(), UT_RGBColor(), UT_setColor(), and UT_Xpm2Bmp().

unsigned char UT_RGBColor::m_grn

Referenced by _convertGdkRGBA(), AP_Dialog_Styles::_createCharPreviewFromGC(), FV_View::_drawResizeHandle(), fp_TextRun::_fillRect(), XAP_Win32Dialog_FontChooser::_onInitDialog(), s_RTF_ListenerWriteDoc::_openFrame(), s_KWord_1_Listener::_openSpan(), AP_Dialog_Styles::_populateAbiPreview(), AP_CocoaDialog_FormatFrame::_populateWindowData, GR_CairoGraphics::_setSource(), IE_Exp_RTF::_write_rtf_header(), AP_Preview_Paragraph_Block::AP_Preview_Paragraph_Block(), AbiWidget_ViewListener::color(), fp_Run::draw(), XAP_UnixHildonDialog_FontChooser::fillFontInfo(), GR_Win32Graphics::fillRect(), XAP_Win32Toolbar_Icons::getBitmapForIcon(), AP_Dialog_Styles::ModifyFont(), operator!=(), operator%=(), operator+=(), operator-=(), operator=(), operator==(), operator==(), operator^=(), GR_Win32Graphics::polygon(), XAP_Win32Dialog_FontChooser::runModal(), AP_Win32Dialog_Background::runModal(), s_doFontDlg(), AP_Dialog_FormatTable::setBackgroundColor(), AP_Win32Dialog_FormatTable::setBackgroundColorInGUI(), AP_Dialog_FormatFrame::setBGColor(), AP_Dialog_FormatTable::setBorderColor(), AP_Dialog_Border_Shading::setBorderColor(), AP_Dialog_FormatFrame::setBorderColorBottom(), AP_Win32Dialog_Border_Shading::setBorderColorInGUI(), AP_UnixDialog_Border_Shading::setBorderColorInGUI(), AP_Dialog_FormatFrame::setBorderColorLeft(), AP_Dialog_FormatFrame::setBorderColorRight(), AP_Dialog_FormatFrame::setBorderColorTop(), UT_HashColor::setColor(), setColor(), GR_Win32Graphics::setColor(), AP_Dialog_Background::setColor(), AP_Dialog_Border_Shading::setShadingColor(), AP_Win32Dialog_Border_Shading::setShadingColorInGUI(), AP_UnixDialog_Border_Shading::setShadingColorInGUI(), XAP_CocoaToolPalette::sync, AP_Dialog_FormatTable::toggleLineType(), AP_Dialog_FormatFrame::toggleLineType(), AP_Dialog_Border_Shading::toggleLineType(), UT_colorToHex(), UT_parseCMYKColor(), UT_parseColor(), UT_parseGrayColor(), UT_RGBColor(), UT_setColor(), and UT_Xpm2Bmp().

unsigned char UT_RGBColor::m_red

Referenced by _convertGdkRGBA(), AP_Dialog_Styles::_createCharPreviewFromGC(), FV_View::_drawResizeHandle(), fp_TextRun::_fillRect(), XAP_Win32Dialog_FontChooser::_onInitDialog(), s_RTF_ListenerWriteDoc::_openFrame(), s_KWord_1_Listener::_openSpan(), AP_Dialog_Styles::_populateAbiPreview(), AP_CocoaDialog_FormatFrame::_populateWindowData, GR_CairoGraphics::_setSource(), IE_Exp_RTF::_write_rtf_header(), AP_Preview_Paragraph_Block::AP_Preview_Paragraph_Block(), AbiWidget_ViewListener::color(), fp_Run::draw(), XAP_UnixHildonDialog_FontChooser::fillFontInfo(), GR_Win32Graphics::fillRect(), XAP_Win32Toolbar_Icons::getBitmapForIcon(), AP_Dialog_Styles::ModifyFont(), operator!=(), operator%=(), operator+=(), operator-=(), operator=(), operator==(), operator==(), operator^=(), GR_Win32Graphics::polygon(), XAP_Win32Dialog_FontChooser::runModal(), AP_Win32Dialog_Background::runModal(), s_doFontDlg(), AP_Dialog_FormatTable::setBackgroundColor(), AP_Win32Dialog_FormatTable::setBackgroundColorInGUI(), AP_Dialog_FormatFrame::setBGColor(), AP_Dialog_FormatTable::setBorderColor(), AP_Dialog_Border_Shading::setBorderColor(), AP_Dialog_FormatFrame::setBorderColorBottom(), AP_Win32Dialog_Border_Shading::setBorderColorInGUI(), AP_UnixDialog_Border_Shading::setBorderColorInGUI(), AP_Dialog_FormatFrame::setBorderColorLeft(), AP_Dialog_FormatFrame::setBorderColorRight(), AP_Dialog_FormatFrame::setBorderColorTop(), UT_HashColor::setColor(), setColor(), GR_Win32Graphics::setColor(), AP_Dialog_Background::setColor(), AP_Dialog_Border_Shading::setShadingColor(), AP_Win32Dialog_Border_Shading::setShadingColorInGUI(), AP_UnixDialog_Border_Shading::setShadingColorInGUI(), XAP_CocoaToolPalette::sync, AP_Dialog_FormatTable::toggleLineType(), AP_Dialog_FormatFrame::toggleLineType(), AP_Dialog_Border_Shading::toggleLineType(), UT_colorToHex(), UT_parseCMYKColor(), UT_parseColor(), UT_parseGrayColor(), UT_RGBColor(), UT_setColor(), and UT_Xpm2Bmp().


The documentation for this class was generated from the following files: