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

#include <CustomWidgetDraw.hxx>

Inheritance diagram for vcl::CustomWidgetDraw:
[legend]
Collaboration diagram for vcl::CustomWidgetDraw:
[legend]

Public Member Functions

 CustomWidgetDraw (SvpSalGraphics &rGraphics)
 
 ~CustomWidgetDraw () override
 
bool isNativeControlSupported (ControlType eType, ControlPart ePart) override
 Query the platform layer for native control support. More...
 
bool hitTestNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, const Point &aPos, bool &rIsInside) override
 Query if a position is inside the native widget part. More...
 
bool drawNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaptions) override
 Draw the requested control. More...
 
bool getNativeControlRegion (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) override
 Get the native control regions for the control part. More...
 
bool updateSettings (AllSettings &rSettings) override
 
- Public Member Functions inherited from vcl::WidgetDrawInterface
virtual ~WidgetDrawInterface ()
 

Private Attributes

SvpSalGraphicsm_rGraphics
 

Static Private Attributes

static WidgetThemeLibrarys_pWidgetImplementation
 

Detailed Description

Definition at line 22 of file CustomWidgetDraw.hxx.

Constructor & Destructor Documentation

vcl::CustomWidgetDraw::CustomWidgetDraw ( SvpSalGraphics rGraphics)
vcl::CustomWidgetDraw::~CustomWidgetDraw ( )
override

Member Function Documentation

bool vcl::CustomWidgetDraw::drawNativeControl ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
ControlState  eState,
const ImplControlValue aValue,
const OUString &  aCaptions 
)
overridevirtual

Draw the requested control.

Parameters
[in]eTypeThe widget type.
[in]ePartThe part of the widget.
[in]rBoundingControlRegionThe bounding rectangle of the complete control in VCL frame coordinates.
[in]eStateThe general state of the control (enabled, focused, etc.).
[in]aValueAddition control specific information.
[in]aCaptionA caption or title string (like button text etc.).
Returns
true, if the control could be drawn.

Reimplemented from vcl::WidgetDrawInterface.

bool vcl::CustomWidgetDraw::getNativeControlRegion ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
ControlState  eState,
const ImplControlValue aValue,
const OUString &  aCaption,
tools::Rectangle rNativeBoundingRegion,
tools::Rectangle rNativeContentRegion 
)
overridevirtual

Get the native control regions for the control part.

If the return value is true, rNativeBoundingRegion contains the true bounding region covered by the control including any adornment, while rNativeContentRegion contains the area within the control that can be safely drawn into without drawing over the borders of the control.

Parameters
[in]eTypeType of the widget.
[in]ePartSpecification of the widget's part if it consists of more than one.
[in]rBoundingControlRegionThe bounding region of the control in VCL frame coordinates.
[in]eStateThe general state of the control (enabled, focused, etc.).
[in]aValueAddition control specific information.
[in]aCaptionA caption or title string (like button text etc.).
[out]rNativeBoundingRegionThe region covered by the control including any adornment.
[out]rNativeContentRegionThe region within the control that can be safely drawn into.
Returns
true, if the regions are filled.

Reimplemented from vcl::WidgetDrawInterface.

bool vcl::CustomWidgetDraw::hitTestNativeControl ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
const Point aPos,
bool &  rIsInside 
)
overridevirtual

Query if a position is inside the native widget part.

Mainly used for scrollbars.

Parameters
[in]eTypeThe widget type.
[in]ePartThe part of the widget.
[in]rBoundingControlRegionThe bounding Rectangle of the complete control in VCL frame coordinates.
[in]aPosThe position to check the hit.
[out]rIsInsidetrue, if aPos was inside the native widget.
Returns
true, if the query was successful.

Reimplemented from vcl::WidgetDrawInterface.

bool vcl::CustomWidgetDraw::isNativeControlSupported ( ControlType  eType,
ControlPart  ePart 
)
overridevirtual

Query the platform layer for native control support.

Parameters
[in]eTypeThe widget type.
[in]ePartThe part of the widget.
Returns
true if the platform supports native drawing of the widget type defined by part.

Reimplemented from vcl::WidgetDrawInterface.

bool vcl::CustomWidgetDraw::updateSettings ( AllSettings rSettings)
overridevirtual

Reimplemented from vcl::WidgetDrawInterface.

Member Data Documentation

SvpSalGraphics& vcl::CustomWidgetDraw::m_rGraphics
private

Definition at line 26 of file CustomWidgetDraw.hxx.

WidgetThemeLibrary* vcl::CustomWidgetDraw::s_pWidgetImplementation
staticprivate

Definition at line 25 of file CustomWidgetDraw.hxx.


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