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

#include <wall.hxx>

Collaboration diagram for Wallpaper:
[legend]

Public Member Functions

SAL_DLLPRIVATE void ImplSetCachedBitmap (const BitmapEx &rBmp) const
 
SAL_DLLPRIVATE const BitmapExImplGetCachedBitmap () const
 
SAL_DLLPRIVATE void ImplReleaseCachedBitmap () const
 
 Wallpaper ()
 
 Wallpaper (const Wallpaper &rWallpaper)
 
 Wallpaper (Wallpaper &&rWallpaper)
 
 Wallpaper (const Color &rColor)
 
 Wallpaper (const BitmapEx &rBmpEx)
 
 ~Wallpaper ()
 
void SetColor (const Color &rColor)
 
const ColorGetColor () const
 
void SetStyle (WallpaperStyle eStyle)
 
WallpaperStyle GetStyle () const
 
void SetBitmap (const BitmapEx &rBitmap)
 
const BitmapExGetBitmap () const
 
bool IsBitmap () const
 
void SetGradient (const Gradient &rGradient)
 
Gradient GetGradient () const
 
bool IsGradient () const
 
void SetRect (const tools::Rectangle &rRect)
 
const tools::RectangleGetRect () const
 
bool IsRect () const
 
bool IsFixed () const
 
bool IsScrollable () const
 
Wallpaperoperator= (const Wallpaper &rWallpaper)
 
Wallpaperoperator= (Wallpaper &&rWallpaper)
 
bool operator== (const Wallpaper &rWallpaper) const
 
bool operator!= (const Wallpaper &rWallpaper) const
 
bool IsEmpty () const
 

Static Private Member Functions

static SAL_DLLPRIVATE Gradient ImplGetApplicationGradient ()
 

Private Attributes

tools::Rectangle maRect
 
BitmapEx maBitmap
 
BitmapEx maCache
 
std::optional< GradientmpGradient
 
Color maColor
 
WallpaperStyle meStyle
 

Friends

SvStreamReadWallpaper (SvStream &rIStm, Wallpaper &rWallpaper)
 
SvStreamWriteWallpaper (SvStream &rOStm, const Wallpaper &rWallpaper)
 

Detailed Description

Definition at line 52 of file wall.hxx.

Constructor & Destructor Documentation

◆ Wallpaper() [1/5]

Wallpaper::Wallpaper ( )

Definition at line 118 of file wall.cxx.

References COL_TRANSPARENT(), maColor, and NONE.

◆ Wallpaper() [2/5]

Wallpaper::Wallpaper ( const Wallpaper rWallpaper)
default

◆ Wallpaper() [3/5]

Wallpaper::Wallpaper ( Wallpaper &&  rWallpaper)
default

◆ Wallpaper() [4/5]

Wallpaper::Wallpaper ( const Color rColor)

Definition at line 127 of file wall.cxx.

References maColor, meStyle, and Tile.

◆ Wallpaper() [5/5]

Wallpaper::Wallpaper ( const BitmapEx rBmpEx)
explicit

Definition at line 133 of file wall.cxx.

References maBitmap, meStyle, and Tile.

◆ ~Wallpaper()

Wallpaper::~Wallpaper ( )
default

Member Function Documentation

◆ GetBitmap()

const BitmapEx & Wallpaper::GetBitmap ( ) const

◆ GetColor()

const Color & Wallpaper::GetColor ( ) const
inline

◆ GetGradient()

Gradient Wallpaper::GetGradient ( ) const

◆ GetRect()

const tools::Rectangle & Wallpaper::GetRect ( ) const
inline

◆ GetStyle()

WallpaperStyle Wallpaper::GetStyle ( ) const
inline

◆ ImplGetApplicationGradient()

Gradient Wallpaper::ImplGetApplicationGradient ( )
staticprivate

◆ ImplGetCachedBitmap()

const BitmapEx * Wallpaper::ImplGetCachedBitmap ( ) const

Definition at line 146 of file wall.cxx.

References BitmapEx::IsEmpty(), and maCache.

Referenced by OutputDevice::DrawBitmapWallpaper().

◆ ImplReleaseCachedBitmap()

void Wallpaper::ImplReleaseCachedBitmap ( ) const

Definition at line 151 of file wall.cxx.

References maCache, and BitmapEx::SetEmpty().

Referenced by OutputDevice::DrawBitmapWallpaper().

◆ ImplSetCachedBitmap()

void Wallpaper::ImplSetCachedBitmap ( const BitmapEx rBmp) const

Definition at line 141 of file wall.cxx.

References maCache.

Referenced by OutputDevice::DrawBitmapWallpaper().

◆ IsBitmap()

bool Wallpaper::IsBitmap ( ) const

◆ IsEmpty()

bool Wallpaper::IsEmpty ( ) const
inline

Definition at line 98 of file wall.hxx.

References COL_TRANSPARENT(), and NONE.

Referenced by SvtIconChoiceCtrl::SetBackground().

◆ IsFixed()

bool Wallpaper::IsFixed ( ) const

Definition at line 237 of file wall.cxx.

References BitmapEx::IsEmpty(), maBitmap, meStyle, mpGradient, and NONE.

◆ IsGradient()

bool Wallpaper::IsGradient ( ) const

◆ IsRect()

bool Wallpaper::IsRect ( ) const

◆ IsScrollable()

bool Wallpaper::IsScrollable ( ) const

◆ operator!=()

bool Wallpaper::operator!= ( const Wallpaper rWallpaper) const
inline

Definition at line 95 of file wall.hxx.

References operator==().

◆ operator=() [1/2]

Wallpaper & Wallpaper::operator= ( const Wallpaper rWallpaper)
default

◆ operator=() [2/2]

Wallpaper & Wallpaper::operator= ( Wallpaper &&  rWallpaper)
default

◆ operator==()

bool Wallpaper::operator== ( const Wallpaper rWallpaper) const

Definition at line 261 of file wall.cxx.

References maBitmap, maColor, maRect, meStyle, and mpGradient.

Referenced by operator!=().

◆ SetBitmap()

void Wallpaper::SetBitmap ( const BitmapEx rBitmap)

Definition at line 175 of file wall.cxx.

References ApplicationGradient, maBitmap, maCache, meStyle, NONE, BitmapEx::SetEmpty(), and Tile.

Referenced by GDIMetaFile::ImplExchangeColors().

◆ SetColor()

void Wallpaper::SetColor ( const Color rColor)

◆ SetGradient()

void Wallpaper::SetGradient ( const Gradient rGradient)

◆ SetRect()

void Wallpaper::SetRect ( const tools::Rectangle rRect)
inline

Definition at line 84 of file wall.hxx.

Referenced by ImplBorderWindow::Resize(), and SvtIconChoiceCtrl::SetBackground().

◆ SetStyle()

void Wallpaper::SetStyle ( WallpaperStyle  eStyle)

Friends And Related Function Documentation

◆ ReadWallpaper

SvStream & ReadWallpaper ( SvStream rIStm,
Wallpaper rWallpaper 
)
friend

Definition at line 30 of file wall.cxx.

◆ WriteWallpaper

SvStream & WriteWallpaper ( SvStream rOStm,
const Wallpaper rWallpaper 
)
friend

Definition at line 82 of file wall.cxx.

Member Data Documentation

◆ maBitmap

BitmapEx Wallpaper::maBitmap
private

Definition at line 108 of file wall.hxx.

Referenced by GetBitmap(), IsBitmap(), IsFixed(), IsScrollable(), operator==(), SetBitmap(), and Wallpaper().

◆ maCache

BitmapEx Wallpaper::maCache
mutableprivate

◆ maColor

Color Wallpaper::maColor
private

Definition at line 111 of file wall.hxx.

Referenced by operator==(), SetColor(), and Wallpaper().

◆ maRect

tools::Rectangle Wallpaper::maRect
private

Definition at line 107 of file wall.hxx.

Referenced by IsRect(), and operator==().

◆ meStyle

WallpaperStyle Wallpaper::meStyle
private

◆ mpGradient

std::optional<Gradient> Wallpaper::mpGradient
private

Definition at line 110 of file wall.hxx.

Referenced by GetGradient(), IsFixed(), IsGradient(), IsScrollable(), operator==(), and SetGradient().


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