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::Wallpaper ( )

Definition at line 118 of file wall.cxx.

References COL_TRANSPARENT(), maColor, and NONE.

Wallpaper::Wallpaper ( const Wallpaper rWallpaper)
default
Wallpaper::Wallpaper ( Wallpaper &&  rWallpaper)
default
Wallpaper::Wallpaper ( const Color rColor)

Definition at line 127 of file wall.cxx.

References maColor, meStyle, and Tile.

Wallpaper::Wallpaper ( const BitmapEx rBmpEx)
explicit

Definition at line 133 of file wall.cxx.

References maBitmap, meStyle, and Tile.

Wallpaper::~Wallpaper ( )
default

Member Function Documentation

const BitmapEx & Wallpaper::GetBitmap ( ) const
const Color& Wallpaper::GetColor ( ) const
inline
Gradient Wallpaper::GetGradient ( ) const
const tools::Rectangle& Wallpaper::GetRect ( ) const
inline
WallpaperStyle Wallpaper::GetStyle ( ) const
inline
Gradient Wallpaper::ImplGetApplicationGradient ( )
staticprivate
const BitmapEx * Wallpaper::ImplGetCachedBitmap ( ) const

Definition at line 146 of file wall.cxx.

References BitmapEx::IsEmpty(), and maCache.

Referenced by OutputDevice::DrawBitmapWallpaper().

void Wallpaper::ImplReleaseCachedBitmap ( ) const

Definition at line 151 of file wall.cxx.

References maCache, and BitmapEx::SetEmpty().

Referenced by OutputDevice::DrawBitmapWallpaper().

void Wallpaper::ImplSetCachedBitmap ( const BitmapEx rBmp) const

Definition at line 141 of file wall.cxx.

References maCache.

Referenced by OutputDevice::DrawBitmapWallpaper().

bool Wallpaper::IsBitmap ( ) const
bool Wallpaper::IsEmpty ( ) const
inline

Definition at line 98 of file wall.hxx.

References COL_TRANSPARENT(), and NONE.

Referenced by SvtIconChoiceCtrl::SetBackground().

bool Wallpaper::IsFixed ( ) const

Definition at line 237 of file wall.cxx.

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

bool Wallpaper::IsGradient ( ) const
bool Wallpaper::IsRect ( ) const
bool Wallpaper::IsScrollable ( ) const
bool Wallpaper::operator!= ( const Wallpaper rWallpaper) const
inline

Definition at line 95 of file wall.hxx.

References operator==().

Wallpaper & Wallpaper::operator= ( const Wallpaper rWallpaper)
default
Wallpaper & Wallpaper::operator= ( Wallpaper &&  rWallpaper)
default
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!=().

void Wallpaper::SetBitmap ( const BitmapEx rBitmap)

Definition at line 175 of file wall.cxx.

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

void Wallpaper::SetColor ( const Color rColor)
void Wallpaper::SetGradient ( const Gradient rGradient)

Definition at line 194 of file wall.cxx.

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

Referenced by SetStyle().

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

Definition at line 84 of file wall.hxx.

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

void Wallpaper::SetStyle ( WallpaperStyle  eStyle)

Friends And Related Function Documentation

SvStream& ReadWallpaper ( SvStream rIStm,
Wallpaper rWallpaper 
)
friend

Definition at line 30 of file wall.cxx.

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

Definition at line 82 of file wall.cxx.

Member Data Documentation

BitmapEx Wallpaper::maBitmap
private
BitmapEx Wallpaper::maCache
mutableprivate
Color Wallpaper::maColor
private

Definition at line 111 of file wall.hxx.

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

tools::Rectangle Wallpaper::maRect
private

Definition at line 107 of file wall.hxx.

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

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

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