LibreOffice Module vcl (master)  1
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
BitmapPalette Class Reference

#include <BitmapPalette.hxx>

Collaboration diagram for BitmapPalette:
[legend]

Public Types

typedef o3tl::cow_wrapper< ImplBitmapPaletteImplType
 

Public Member Functions

SAL_DLLPRIVATE const BitmapColorImplGetColorBuffer () const
 
SAL_DLLPRIVATE BitmapColorImplGetColorBuffer ()
 
BitmapChecksum GetChecksum () const
 
 BitmapPalette ()
 
 BitmapPalette (const BitmapPalette &)
 
 BitmapPalette (BitmapPalette &&) noexcept
 
 BitmapPalette (std::initializer_list< BitmapColor > aBitmapColor)
 
 BitmapPalette (sal_uInt16 nCount)
 
 ~BitmapPalette ()
 
BitmapPaletteoperator= (const BitmapPalette &)
 
BitmapPaletteoperator= (BitmapPalette &&) noexcept
 
bool operator== (const BitmapPalette &rBitmapPalette) const
 
bool operator!= (const BitmapPalette &rBitmapPalette) const
 
bool operator! () const
 
sal_uInt16 GetEntryCount () const
 
void SetEntryCount (sal_uInt16 nCount)
 
const BitmapColoroperator[] (sal_uInt16 nIndex) const
 
BitmapColoroperator[] (sal_uInt16 nIndex)
 
sal_uInt16 GetBestIndex (const BitmapColor &rCol) const
 
bool IsGreyPalette8Bit () const
 Returns true if the palette is 8-bit grey palette. More...
 
bool IsGreyPaletteAny () const
 Returns true if the palette is a grey palette (may not be 8-bit). More...
 

Private Attributes

ImplType mpImpl
 

Friends

class SalBitmap
 
class BitmapAccess
 

Detailed Description

Definition at line 30 of file BitmapPalette.hxx.

Member Typedef Documentation

Definition at line 73 of file BitmapPalette.hxx.

Constructor & Destructor Documentation

BitmapPalette::BitmapPalette ( )

Definition at line 65 of file bitmappalette.cxx.

BitmapPalette::BitmapPalette ( const BitmapPalette rOther)

Definition at line 70 of file bitmappalette.cxx.

BitmapPalette::BitmapPalette ( BitmapPalette &&  rOther)
noexcept

Definition at line 75 of file bitmappalette.cxx.

BitmapPalette::BitmapPalette ( std::initializer_list< BitmapColor aBitmapColor)

Definition at line 80 of file bitmappalette.cxx.

BitmapPalette::BitmapPalette ( sal_uInt16  nCount)
explicit

Definition at line 85 of file bitmappalette.cxx.

BitmapPalette::~BitmapPalette ( )

Definition at line 90 of file bitmappalette.cxx.

Member Function Documentation

sal_uInt16 BitmapPalette::GetBestIndex ( const BitmapColor rCol) const
BitmapChecksum BitmapPalette::GetChecksum ( ) const
sal_uInt16 BitmapPalette::GetEntryCount ( ) const
SAL_DLLPRIVATE const BitmapColor * BitmapPalette::ImplGetColorBuffer ( ) const

Definition at line 104 of file bitmappalette.cxx.

References ImplBitmapPalette::GetBitmapData(), and mpImpl.

Referenced by ImplPALToTC().

SAL_DLLPRIVATE BitmapColor * BitmapPalette::ImplGetColorBuffer ( )

Definition at line 109 of file bitmappalette.cxx.

References ImplBitmapPalette::GetBitmapData(), and mpImpl.

bool BitmapPalette::IsGreyPalette8Bit ( ) const

Returns true if the palette is 8-bit grey palette.

Definition at line 199 of file bitmappalette.cxx.

References ImplBitmapPalette::GetBitmapData(), GetEntryCount(), i, and mpImpl.

Referenced by SalBitmap::convertDataBitCount(), ImplFastBitmapBlending(), and ImplFastBitmapConversion().

bool BitmapPalette::IsGreyPaletteAny ( ) const

Returns true if the palette is a grey palette (may not be 8-bit).

Definition at line 173 of file bitmappalette.cxx.

References ImplBitmapPalette::GetBitmapData(), Color::GetBlue(), GetEntryCount(), Color::GetGreen(), Bitmap::GetGreyPalette(), Color::GetRed(), and mpImpl.

bool BitmapPalette::operator! ( ) const

Definition at line 125 of file bitmappalette.cxx.

References ImplBitmapPalette::GetBitmapData(), and mpImpl.

bool BitmapPalette::operator!= ( const BitmapPalette rBitmapPalette) const
inline

Definition at line 54 of file BitmapPalette.hxx.

BitmapPalette & BitmapPalette::operator= ( const BitmapPalette rOther)

Definition at line 92 of file bitmappalette.cxx.

References mpImpl.

BitmapPalette & BitmapPalette::operator= ( BitmapPalette &&  rOther)
noexcept

Definition at line 98 of file bitmappalette.cxx.

References mpImpl.

bool BitmapPalette::operator== ( const BitmapPalette rBitmapPalette) const

Definition at line 120 of file bitmappalette.cxx.

References mpImpl.

const BitmapColor & BitmapPalette::operator[] ( sal_uInt16  nIndex) const

Definition at line 131 of file bitmappalette.cxx.

References ImplBitmapPalette::GetBitmapData(), mpImpl, and size.

BitmapColor & BitmapPalette::operator[] ( sal_uInt16  nIndex)

Definition at line 137 of file bitmappalette.cxx.

References ImplBitmapPalette::GetBitmapData(), mpImpl, and size.

void BitmapPalette::SetEntryCount ( sal_uInt16  nCount)

Friends And Related Function Documentation

friend class BitmapAccess
friend

Definition at line 33 of file BitmapPalette.hxx.

friend class SalBitmap
friend

Definition at line 32 of file BitmapPalette.hxx.

Member Data Documentation

ImplType BitmapPalette::mpImpl
private

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