#include <Qt5Graphics_Controls.hxx>
|
| Qt5Graphics_Controls (const Qt5GraphicsBase &rGraphics) |
|
QImage * | getImage () |
|
bool | isNativeControlSupported (ControlType nType, ControlPart nPart) override |
| Query the platform layer for native control support. More...
|
|
bool | hitTestNativeControl (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, const Point &aPos, bool &rIsInside) override |
| Query if a position is inside the native widget part. More...
|
|
bool | drawNativeControl (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &aCaption, const Color &rBackgroundColor) override |
| Draw the requested control. More...
|
|
bool | getNativeControlRegion (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &aCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) override |
| Get the native control regions for the control part. More...
|
|
virtual | ~WidgetDrawInterface () COVERITY_NOEXCEPT_FALSE |
|
virtual bool | updateSettings (AllSettings &rSettings) |
|
|
void | draw (QStyle::ControlElement element, QStyleOption &rOption, QImage *image, const Color &rBackgroundColor, QStyle::State const state=QStyle::State_None, QRect rect=QRect()) |
|
void | draw (QStyle::PrimitiveElement element, QStyleOption &rOption, QImage *image, const Color &rBackgroundColor, QStyle::State const state=QStyle::State_None, QRect rect=QRect()) |
|
void | draw (QStyle::ComplexControl element, QStyleOptionComplex &rOption, QImage *image, const Color &rBackgroundColor, QStyle::State const state=QStyle::State_None) |
|
void | drawFrame (QStyle::PrimitiveElement element, QImage *image, const Color &rBackGroundColor, QStyle::State const &state, bool bClip=true, QStyle::PixelMetric eLineMetric=QStyle::PM_DefaultFrameWidth) |
|
void | fullQStyleOptionTabWidgetFrame (QStyleOptionTabWidgetFrame &option, bool bDownscale) |
|
int | downscale (int value, Round eRound) |
|
int | upscale (int value, Round eRound) |
|
QRect | downscale (const QRect &rect) |
|
QRect | upscale (const QRect &rect) |
|
QSize | downscale (const QSize &size, Round eRound) |
|
QSize | upscale (const QSize &size, Round eRound) |
|
QPoint | upscale (const QPoint &point, Round eRound) |
|
Definition at line 36 of file Qt5Graphics_Controls.hxx.
Qt5Graphics_Controls::Qt5Graphics_Controls |
( |
const Qt5GraphicsBase & |
rGraphics | ) |
|
int Qt5Graphics_Controls::downscale |
( |
int |
value, |
|
|
Round |
eRound |
|
) |
| |
|
private |
QRect Qt5Graphics_Controls::downscale |
( |
const QRect & |
rect | ) |
|
|
private |
QSize Qt5Graphics_Controls::downscale |
( |
const QSize & |
size, |
|
|
Round |
eRound |
|
) |
| |
|
private |
void Qt5Graphics_Controls::draw |
( |
QStyle::ControlElement |
element, |
|
|
QStyleOption & |
rOption, |
|
|
QImage * |
image, |
|
|
const Color & |
rBackgroundColor, |
|
|
QStyle::State const |
state = QStyle::State_None , |
|
|
QRect |
rect = QRect() |
|
) |
| |
|
private |
void Qt5Graphics_Controls::draw |
( |
QStyle::PrimitiveElement |
element, |
|
|
QStyleOption & |
rOption, |
|
|
QImage * |
image, |
|
|
const Color & |
rBackgroundColor, |
|
|
QStyle::State const |
state = QStyle::State_None , |
|
|
QRect |
rect = QRect() |
|
) |
| |
|
private |
void Qt5Graphics_Controls::draw |
( |
QStyle::ComplexControl |
element, |
|
|
QStyleOptionComplex & |
rOption, |
|
|
QImage * |
image, |
|
|
const Color & |
rBackgroundColor, |
|
|
QStyle::State const |
state = QStyle::State_None |
|
) |
| |
|
private |
void Qt5Graphics_Controls::drawFrame |
( |
QStyle::PrimitiveElement |
element, |
|
|
QImage * |
image, |
|
|
const Color & |
rBackGroundColor, |
|
|
QStyle::State const & |
state, |
|
|
bool |
bClip = true , |
|
|
QStyle::PixelMetric |
eLineMetric = QStyle::PM_DefaultFrameWidth |
|
) |
| |
|
private |
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.
static void Qt5Graphics_Controls::fillQStyleOptionTab |
( |
const ImplControlValue & |
value, |
|
|
QStyleOptionTab & |
sot |
|
) |
| |
|
staticprivate |
void Qt5Graphics_Controls::fullQStyleOptionTabWidgetFrame |
( |
QStyleOptionTabWidgetFrame & |
option, |
|
|
bool |
bDownscale |
|
) |
| |
|
private |
QImage* Qt5Graphics_Controls::getImage |
( |
| ) |
|
|
inline |
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.
static int Qt5Graphics_Controls::pixelMetric |
( |
QStyle::PixelMetric |
metric, |
|
|
const QStyleOption * |
option = nullptr |
|
) |
| |
|
staticprivate |
static QSize Qt5Graphics_Controls::sizeFromContents |
( |
QStyle::ContentsType |
type, |
|
|
const QStyleOption * |
option, |
|
|
const QSize & |
contentsSize |
|
) |
| |
|
staticprivate |
static QRect Qt5Graphics_Controls::subControlRect |
( |
QStyle::ComplexControl |
control, |
|
|
const QStyleOptionComplex * |
option, |
|
|
QStyle::SubControl |
subControl |
|
) |
| |
|
staticprivate |
static QRect Qt5Graphics_Controls::subElementRect |
( |
QStyle::SubElement |
element, |
|
|
const QStyleOption * |
option |
|
) |
| |
|
staticprivate |
int Qt5Graphics_Controls::upscale |
( |
int |
value, |
|
|
Round |
eRound |
|
) |
| |
|
private |
QRect Qt5Graphics_Controls::upscale |
( |
const QRect & |
rect | ) |
|
|
private |
QSize Qt5Graphics_Controls::upscale |
( |
const QSize & |
size, |
|
|
Round |
eRound |
|
) |
| |
|
private |
QPoint Qt5Graphics_Controls::upscale |
( |
const QPoint & |
point, |
|
|
Round |
eRound |
|
) |
| |
|
private |
std::unique_ptr<QImage> Qt5Graphics_Controls::m_image |
|
private |
QRect Qt5Graphics_Controls::m_lastPopupRect |
|
private |
The documentation for this class was generated from the following file: