LibreOffice Module vcl (master) 1
|
#include <WidgetDrawInterface.hxx>
Public Member Functions | |
virtual | ~WidgetDrawInterface () COVERITY_NOEXCEPT_FALSE |
virtual bool | isNativeControlSupported (ControlType eType, ControlPart ePart) |
Query the platform layer for native control support. More... | |
virtual bool | hitTestNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, const Point &aPos, bool &rIsInside) |
Query if a position is inside the native widget part. More... | |
virtual bool | drawNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaptions, const Color &rBackgroundColor) |
Draw the requested control. More... | |
virtual bool | getNativeControlRegion (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) |
Get the native control regions for the control part. More... | |
virtual bool | updateSettings (AllSettings &rSettings) |
Definition at line 20 of file WidgetDrawInterface.hxx.
|
inlinevirtual |
Definition at line 23 of file WidgetDrawInterface.hxx.
|
inlinevirtual |
Draw the requested control.
[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) |
Reimplemented in vcl::FileDefinitionWidgetDraw, QtGraphics_Controls, WinSalGraphics, and GtkSalGraphics.
Definition at line 106 of file WidgetDrawInterface.hxx.
Referenced by SalGraphics::DrawNativeControl().
|
inlinevirtual |
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.
[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. |
Reimplemented in vcl::FileDefinitionWidgetDraw, QtGraphics_Controls, WinSalGraphics, and GtkSalGraphics.
Definition at line 113 of file WidgetDrawInterface.hxx.
Referenced by SalGraphics::GetNativeControlRegion().
|
inlinevirtual |
Query if a position is inside the native widget part.
Mainly used for scrollbars.
[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. |
Reimplemented in vcl::FileDefinitionWidgetDraw, QtGraphics_Controls, and WinSalGraphics.
Definition at line 100 of file WidgetDrawInterface.hxx.
Referenced by SalGraphics::HitTestNativeScrollbar().
|
inlinevirtual |
Query the platform layer for native control support.
[in] | eType | The widget type. |
[in] | ePart | The part of the widget. |
Reimplemented in vcl::FileDefinitionWidgetDraw, QtGraphics_Controls, WinSalGraphics, and GtkSalGraphics.
Definition at line 98 of file WidgetDrawInterface.hxx.
Referenced by SalGraphics::IsNativeControlSupported().
|
inlinevirtual |
Reimplemented in GtkSalGraphics, and vcl::FileDefinitionWidgetDraw.
Definition at line 121 of file WidgetDrawInterface.hxx.
Referenced by SalGraphics::UpdateSettings().