#include <CustomWidgetDraw.hxx>
|
| 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, const Color &rBackgroundColor) 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 |
|
virtual | ~WidgetDrawInterface () COVERITY_NOEXCEPT_FALSE |
|
Definition at line 22 of file CustomWidgetDraw.hxx.
vcl::CustomWidgetDraw::~CustomWidgetDraw |
( |
| ) |
|
|
override |
Draw the requested control.
- Parameters
-
[in] | eType | The widget type. |
[in] | ePart | The part of the widget. |
[in] | rBoundingControlRegion | The bounding rectangle of the complete control in VCL frame coordinates. |
[in] | eState | The general state of the control (enabled, focused, etc.). |
[in] | aValue | Addition control specific information. |
[in] | aCaption | A caption or title string (like button text etc.). |
[in] | rBackgroundColor | Background color for the control (may be COL_AUTO) |
- Returns
- true, if the control could be drawn.
Reimplemented from vcl::WidgetDrawInterface.
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] | eType | Type of the widget. |
[in] | ePart | Specification of the widget's part if it consists of more than one. |
[in] | rBoundingControlRegion | The bounding region of the control in VCL frame coordinates. |
[in] | eState | The general state of the control (enabled, focused, etc.). |
[in] | aValue | Addition control specific information. |
[in] | aCaption | A caption or title string (like button text etc.). |
[out] | rNativeBoundingRegion | The region covered by the control including any adornment. |
[out] | rNativeContentRegion | The region within the control that can be safely drawn into. |
- Returns
- true, if the regions are filled.
Reimplemented from vcl::WidgetDrawInterface.
Query if a position is inside the native widget part.
Mainly used for scrollbars.
- Parameters
-
[in] | eType | The widget type. |
[in] | ePart | The part of the widget. |
[in] | rBoundingControlRegion | The bounding Rectangle of the complete control in VCL frame coordinates. |
[in] | aPos | The position to check the hit. |
[out] | rIsInside | true, if aPos was inside the native widget. |
- Returns
- true, if the query was successful.
Reimplemented from vcl::WidgetDrawInterface.
Query the platform layer for native control support.
- Parameters
-
[in] | eType | The widget type. |
[in] | ePart | The 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 |
The documentation for this class was generated from the following file: