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

#include <saldisp.hxx>

Collaboration diagram for SalColormap:
[legend]

Public Member Functions

 SalColormap (const SalDisplay *pSalDisplay, Colormap hColormap, SalX11Screen nXScreen)
 
 SalColormap (sal_uInt16 nDepth)
 
 SalColormap ()
 
 ~SalColormap ()
 
 SalColormap (SalColormap &&)=default
 
SalColormapoperator= (SalColormap &&)=default
 
Colormap GetXColormap () const
 
const SalDisplayGetDisplay () const
 
DisplayGetXDisplay () const
 
const SalVisualGetVisual () const
 
Visual * GetXVisual () const
 
Pixel GetWhitePixel () const
 
Pixel GetBlackPixel () const
 
Pixel GetUsed () const
 
bool GetXPixels (XColor &rColor, int r, int g, int b) const
 
bool GetXPixel (XColor &rColor, int r, int g, int b) const
 
Pixel GetPixel (Color nColor) const
 
Color GetColor (Pixel nPixel) const
 

Private Member Functions

void GetPalette ()
 
void GetLookupTable ()
 

Private Attributes

const SalDisplaym_pDisplay
 
Colormap m_hColormap
 
std::vector< Colorm_aPalette
 
SalVisual m_aVisual
 
OwnershipFlag m_aVisualOwnership
 
std::vector< sal_uInt16 > m_aLookupTable
 
Pixel m_nWhitePixel
 
Pixel m_nBlackPixel
 
Pixel m_nUsed
 
SalX11Screen m_nXScreen
 

Detailed Description

Definition at line 114 of file saldisp.hxx.

Constructor & Destructor Documentation

SalColormap::SalColormap ( const SalDisplay pSalDisplay,
Colormap  hColormap,
SalX11Screen  nXScreen 
)
SalColormap::SalColormap ( sal_uInt16  nDepth)
SalColormap::SalColormap ( )
SalColormap::~SalColormap ( )
SalColormap::SalColormap ( SalColormap &&  )
default

Member Function Documentation

Pixel SalColormap::GetBlackPixel ( ) const
inline

Definition at line 147 of file saldisp.hxx.

References m_nBlackPixel.

Color SalColormap::GetColor ( Pixel  nPixel) const
const SalDisplay* SalColormap::GetDisplay ( ) const
inline

Definition at line 142 of file saldisp.hxx.

References m_pDisplay.

Referenced by X11SalGraphics::GetDisplay().

void SalColormap::GetLookupTable ( )
private
void SalColormap::GetPalette ( )
private
Pixel SalColormap::GetPixel ( Color  nColor) const
Pixel SalColormap::GetUsed ( ) const
inline

Definition at line 148 of file saldisp.hxx.

References m_nUsed.

const SalVisual& SalColormap::GetVisual ( ) const
inline

Definition at line 144 of file saldisp.hxx.

References m_aVisual.

Referenced by X11SalGraphics::GetVisual().

Pixel SalColormap::GetWhitePixel ( ) const
inline

Definition at line 146 of file saldisp.hxx.

References m_nWhitePixel.

Colormap SalColormap::GetXColormap ( ) const
inline

Definition at line 141 of file saldisp.hxx.

References m_hColormap.

Display * SalColormap::GetXDisplay ( ) const
inline

Definition at line 399 of file saldisp.hxx.

References SalDisplay::GetDisplay(), and m_pDisplay.

Referenced by X11SalGraphics::GetXDisplay().

bool SalColormap::GetXPixel ( XColor &  rColor,
int  r,
int  g,
int  b 
) const
inline
bool SalColormap::GetXPixels ( XColor &  rColor,
int  r,
int  g,
int  b 
) const
Visual* SalColormap::GetXVisual ( ) const
inline

Definition at line 145 of file saldisp.hxx.

References SalVisual::GetVisual().

SalColormap& SalColormap::operator= ( SalColormap &&  )
default

Member Data Documentation

std::vector<sal_uInt16> SalColormap::m_aLookupTable
private

Definition at line 121 of file saldisp.hxx.

std::vector<Color> SalColormap::m_aPalette
private

Definition at line 118 of file saldisp.hxx.

SalVisual SalColormap::m_aVisual
private

Definition at line 119 of file saldisp.hxx.

Referenced by GetVisual().

OwnershipFlag SalColormap::m_aVisualOwnership
private

Definition at line 120 of file saldisp.hxx.

Colormap SalColormap::m_hColormap
private

Definition at line 117 of file saldisp.hxx.

Referenced by GetXColormap().

Pixel SalColormap::m_nBlackPixel
private

Definition at line 123 of file saldisp.hxx.

Referenced by GetBlackPixel().

Pixel SalColormap::m_nUsed
private

Definition at line 124 of file saldisp.hxx.

Referenced by GetUsed().

Pixel SalColormap::m_nWhitePixel
private

Definition at line 122 of file saldisp.hxx.

Referenced by GetWhitePixel().

SalX11Screen SalColormap::m_nXScreen
private

Definition at line 125 of file saldisp.hxx.

const SalDisplay* SalColormap::m_pDisplay
private

Definition at line 116 of file saldisp.hxx.

Referenced by GetDisplay(), and GetXDisplay().


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