LibreOffice Module vcl (master) 1
Public 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
 
Pixel GetWhitePixel () const
 
Pixel GetBlackPixel () const
 
bool GetXPixels (XColor &rColor, int r, int g, int b) const
 
bool GetXPixel (XColor &rColor, int r, int g, int b) const
 

Private Attributes

const SalDisplaym_pDisplay
 
Colormap m_hColormap
 
std::vector< Colorm_aPalette
 
SalVisual m_aVisual
 
OwnershipFlag m_aVisualOwnership
 
Pixel m_nWhitePixel
 
Pixel m_nBlackPixel
 
Pixel m_nUsed
 

Detailed Description

Definition at line 100 of file saldisp.hxx.

Constructor & Destructor Documentation

◆ SalColormap() [1/4]

SalColormap::SalColormap ( const SalDisplay pSalDisplay,
Colormap  hColormap,
SalX11Screen  nXScreen 
)

◆ SalColormap() [2/4]

SalColormap::SalColormap ( sal_uInt16  nDepth)

◆ SalColormap() [3/4]

SalColormap::SalColormap ( )

◆ ~SalColormap()

SalColormap::~SalColormap ( )

◆ SalColormap() [4/4]

SalColormap::SalColormap ( SalColormap &&  )
default

Member Function Documentation

◆ GetBlackPixel()

Pixel SalColormap::GetBlackPixel ( ) const
inline

Definition at line 128 of file saldisp.hxx.

References m_nBlackPixel.

◆ GetDisplay()

const SalDisplay * SalColormap::GetDisplay ( ) const
inline

Definition at line 124 of file saldisp.hxx.

References m_pDisplay.

Referenced by X11Common::GetDisplay().

◆ GetVisual()

const SalVisual & SalColormap::GetVisual ( ) const
inline

Definition at line 126 of file saldisp.hxx.

References m_aVisual.

Referenced by X11Common::GetVisual().

◆ GetWhitePixel()

Pixel SalColormap::GetWhitePixel ( ) const
inline

Definition at line 127 of file saldisp.hxx.

References m_nWhitePixel.

◆ GetXColormap()

Colormap SalColormap::GetXColormap ( ) const
inline

Definition at line 123 of file saldisp.hxx.

References m_hColormap.

◆ GetXDisplay()

Display * SalColormap::GetXDisplay ( ) const
inline

Definition at line 354 of file saldisp.hxx.

References SalDisplay::GetDisplay(), and m_pDisplay.

Referenced by X11Common::GetXDisplay().

◆ GetXPixel()

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

◆ GetXPixels()

bool SalColormap::GetXPixels ( XColor &  rColor,
int  r,
int  g,
int  b 
) const

◆ operator=()

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

Member Data Documentation

◆ m_aPalette

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

Definition at line 104 of file saldisp.hxx.

◆ m_aVisual

SalVisual SalColormap::m_aVisual
private

Definition at line 105 of file saldisp.hxx.

Referenced by GetVisual().

◆ m_aVisualOwnership

OwnershipFlag SalColormap::m_aVisualOwnership
private

Definition at line 106 of file saldisp.hxx.

◆ m_hColormap

Colormap SalColormap::m_hColormap
private

Definition at line 103 of file saldisp.hxx.

Referenced by GetXColormap().

◆ m_nBlackPixel

Pixel SalColormap::m_nBlackPixel
private

Definition at line 108 of file saldisp.hxx.

Referenced by GetBlackPixel().

◆ m_nUsed

Pixel SalColormap::m_nUsed
private

Definition at line 109 of file saldisp.hxx.

◆ m_nWhitePixel

Pixel SalColormap::m_nWhitePixel
private

Definition at line 107 of file saldisp.hxx.

Referenced by GetWhitePixel().

◆ m_pDisplay

const SalDisplay* SalColormap::m_pDisplay
private

Definition at line 102 of file saldisp.hxx.

Referenced by GetDisplay(), and GetXDisplay().


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