LibreOffice Module sd (master) 1
Classes | Public Member Functions | Private Attributes | List of all members
sd::slidesorter::view::FramePainter Class Reference

#include <SlsFramePainter.hxx>

Collaboration diagram for sd::slidesorter::view::FramePainter:
[legend]

Classes

class  OffsetBitmap
 Bitmap with offset that is used when the bitmap is painted. More...
 

Public Member Functions

 FramePainter (const BitmapEx &rBitmap)
 
 ~FramePainter ()
 
void PaintFrame (OutputDevice &rDevice, const ::tools::Rectangle &rBox) const
 Paint a border around the given box by using a set of bitmaps for the corners and sides. More...
 
void AdaptColor (const Color aNewColor)
 Special functionality that takes the color from the center bitmap and replaces that color in all bitmaps by the given new color. More...
 

Private Attributes

OffsetBitmap maTopLeft
 
OffsetBitmap maTop
 
OffsetBitmap maTopRight
 
OffsetBitmap maLeft
 
OffsetBitmap maRight
 
OffsetBitmap maBottomLeft
 
OffsetBitmap maBottom
 
OffsetBitmap maBottomRight
 
OffsetBitmap maCenter
 
bool mbIsValid
 

Detailed Description

Definition at line 26 of file SlsFramePainter.hxx.

Constructor & Destructor Documentation

◆ FramePainter()

sd::slidesorter::view::FramePainter::FramePainter ( const BitmapEx rBitmap)
explicit

◆ ~FramePainter()

sd::slidesorter::view::FramePainter::~FramePainter ( )

Definition at line 52 of file SlsFramePainter.cxx.

Member Function Documentation

◆ AdaptColor()

void sd::slidesorter::view::FramePainter::AdaptColor ( const Color  aNewColor)

Special functionality that takes the color from the center bitmap and replaces that color in all bitmaps by the given new color.

Alpha values are not modified. The center bitmap is erased.

Definition at line 75 of file SlsFramePainter.cxx.

References BitmapEx::GetPixelColor(), BitmapEx::IsEmpty(), sd::slidesorter::view::FramePainter::OffsetBitmap::maBitmap, maBottom, maBottomLeft, maBottomRight, maCenter, maLeft, maRight, maTop, maTopLeft, maTopRight, BitmapEx::Replace(), and BitmapEx::SetEmpty().

◆ PaintFrame()

void sd::slidesorter::view::FramePainter::PaintFrame ( OutputDevice rDevice,
const ::tools::Rectangle rBox 
) const

Member Data Documentation

◆ maBottom

OffsetBitmap sd::slidesorter::view::FramePainter::maBottom
private

Definition at line 101 of file SlsFramePainter.hxx.

Referenced by AdaptColor(), and PaintFrame().

◆ maBottomLeft

OffsetBitmap sd::slidesorter::view::FramePainter::maBottomLeft
private

Definition at line 100 of file SlsFramePainter.hxx.

Referenced by AdaptColor(), and PaintFrame().

◆ maBottomRight

OffsetBitmap sd::slidesorter::view::FramePainter::maBottomRight
private

Definition at line 102 of file SlsFramePainter.hxx.

Referenced by AdaptColor(), and PaintFrame().

◆ maCenter

OffsetBitmap sd::slidesorter::view::FramePainter::maCenter
private

Definition at line 103 of file SlsFramePainter.hxx.

Referenced by AdaptColor(), and PaintFrame().

◆ maLeft

OffsetBitmap sd::slidesorter::view::FramePainter::maLeft
private

Definition at line 98 of file SlsFramePainter.hxx.

Referenced by AdaptColor(), and PaintFrame().

◆ maRight

OffsetBitmap sd::slidesorter::view::FramePainter::maRight
private

Definition at line 99 of file SlsFramePainter.hxx.

Referenced by AdaptColor(), and PaintFrame().

◆ maTop

OffsetBitmap sd::slidesorter::view::FramePainter::maTop
private

Definition at line 96 of file SlsFramePainter.hxx.

Referenced by AdaptColor(), and PaintFrame().

◆ maTopLeft

OffsetBitmap sd::slidesorter::view::FramePainter::maTopLeft
private

Definition at line 95 of file SlsFramePainter.hxx.

Referenced by AdaptColor(), and PaintFrame().

◆ maTopRight

OffsetBitmap sd::slidesorter::view::FramePainter::maTopRight
private

Definition at line 97 of file SlsFramePainter.hxx.

Referenced by AdaptColor(), and PaintFrame().

◆ mbIsValid

bool sd::slidesorter::view::FramePainter::mbIsValid
private

Definition at line 104 of file SlsFramePainter.hxx.

Referenced by FramePainter(), and PaintFrame().


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