LibreOffice Module cui (master)  1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
BackgroundPreviewImpl Class Reference

Preview window for brush or bitmap. More...

Inheritance diagram for BackgroundPreviewImpl:
[legend]
Collaboration diagram for BackgroundPreviewImpl:
[legend]

Public Member Functions

 BackgroundPreviewImpl ()
 
void setBmp (bool bBmp)
 
void NotifyChange (const Color &rColor)
 
void NotifyChange (const BitmapEx *pBitmap)
 
void SetFillColor (const Color &rColor)
 
- Public Member Functions inherited from weld::CustomWidgetController
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible ()
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0
 
virtual bool MouseButtonDown (const MouseEvent &)
 
virtual bool MouseMove (const MouseEvent &)
 
virtual bool MouseButtonUp (const MouseEvent &)
 
virtual void GetFocus ()
 
virtual void LoseFocus ()
 
virtual void StyleUpdated ()
 
virtual bool ContextMenu (const CommandEvent &)
 
virtual bool KeyInput (const KeyEvent &)
 
virtual tools::Rectangle GetFocusRect ()
 
virtual FactoryFunction GetUITestFactory () const
 
virtual OUString RequestHelp (tools::Rectangle &)
 
virtual OUString GetHelpText () const
 
Size const & GetOutputSizePixel () const
 
void SetOutputSizePixel (const Size &rSize)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void GrabFocus ()
 
bool HasFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
int GetTextHeight () const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () const
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
void set_size_request (int nWidth, int nHeight)
 
void queue_resize ()
 
 CustomWidgetController ()
 
virtual ~CustomWidgetController ()
 
 CustomWidgetController (CustomWidgetController const &)=default
 
 CustomWidgetController (CustomWidgetController &&)=default
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (CustomWidgetController &&)=default
 

Protected Member Functions

virtual void Paint (vcl::RenderContext &, const ::tools::Rectangle &rRect) override
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual void Resize () override
 

Private Member Functions

void recalcDrawPos ()
 

Private Attributes

bool bIsBmp
 
std::unique_ptr< BitmapExpBitmap
 
Point aDrawPos
 
Size aDrawSize
 
::tools::Rectangle aDrawRect
 
Color aColor
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
 

Detailed Description

Preview window for brush or bitmap.

Definition at line 113 of file backgrnd.cxx.

Constructor & Destructor Documentation

BackgroundPreviewImpl::BackgroundPreviewImpl ( )
explicit

Definition at line 140 of file backgrnd.cxx.

Member Function Documentation

void BackgroundPreviewImpl::NotifyChange ( const Color rColor)
void BackgroundPreviewImpl::NotifyChange ( const BitmapEx pBitmap)
void BackgroundPreviewImpl::Paint ( vcl::RenderContext rRenderContext,
const ::tools::Rectangle rRect 
)
overrideprotectedvirtual
void BackgroundPreviewImpl::recalcDrawPos ( )
private
void BackgroundPreviewImpl::Resize ( )
overrideprotectedvirtual
void BackgroundPreviewImpl::setBmp ( bool  bBmp)

Definition at line 155 of file backgrnd.cxx.

References bIsBmp, and weld::CustomWidgetController::Invalidate().

void BackgroundPreviewImpl::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overrideprotectedvirtual
void BackgroundPreviewImpl::SetFillColor ( const Color rColor)
inline

Definition at line 121 of file backgrnd.cxx.

Referenced by NotifyChange().

Member Data Documentation

Color BackgroundPreviewImpl::aColor
private

Definition at line 137 of file backgrnd.cxx.

Referenced by Paint().

Point BackgroundPreviewImpl::aDrawPos
private

Definition at line 134 of file backgrnd.cxx.

Referenced by Paint(), and recalcDrawPos().

::tools::Rectangle BackgroundPreviewImpl::aDrawRect
private

Definition at line 136 of file backgrnd.cxx.

Referenced by NotifyChange(), Paint(), Resize(), and SetDrawingArea().

Size BackgroundPreviewImpl::aDrawSize
private

Definition at line 135 of file backgrnd.cxx.

Referenced by Paint(), and recalcDrawPos().

bool BackgroundPreviewImpl::bIsBmp
private

Definition at line 132 of file backgrnd.cxx.

Referenced by NotifyChange(), Paint(), and setBmp().

std::unique_ptr<BitmapEx> BackgroundPreviewImpl::pBitmap
private

Definition at line 133 of file backgrnd.cxx.

Referenced by NotifyChange(), Paint(), and recalcDrawPos().


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