27#include <QtGui/QImage>
28#include <QtGui/QPainter>
29#include <QtGui/QRegion>
30#include <QtWidgets/QPushButton>
31#include <QtWidgets/QStyle>
32#include <QtWidgets/QStyleOption>
50 bool& rIsInside)
override;
54 const Color& rBackgroundColor)
override;
63 const QWidget* pWidget =
nullptr);
65 const QSize& contentsSize);
67 QStyle::SubControl subControl);
70 void draw(QStyle::ControlElement element, QStyleOption& rOption, QImage* image,
72 QRect rect = QRect());
73 void draw(QStyle::PrimitiveElement element, QStyleOption& rOption, QImage* image,
75 QRect rect = QRect());
76 void draw(QStyle::ComplexControl element, QStyleOptionComplex& rOption, QImage* image,
78 void drawFrame(QStyle::PrimitiveElement element, QImage* image,
const Color& rBackGroundColor,
80 QStyle::PixelMetric eLineMetric = QStyle::PM_DefaultFrameWidth);
QSize upscale(const QSize &size, Round eRound)
static int pixelMetric(QStyle::PixelMetric metric, const QStyleOption *option=nullptr, const QWidget *pWidget=nullptr)
static QSize sizeFromContents(QStyle::ContentsType type, const QStyleOption *option, const QSize &contentsSize)
void drawFrame(QStyle::PrimitiveElement element, QImage *image, const Color &rBackGroundColor, QStyle::State const &state, bool bClip=true, QStyle::PixelMetric eLineMetric=QStyle::PM_DefaultFrameWidth)
QtGraphicsBase const & m_rGraphics
std::unique_ptr< QImage > m_image
void fullQStyleOptionTabWidgetFrame(QStyleOptionTabWidgetFrame &option, bool bDownscale)
static QRect subElementRect(QStyle::SubElement element, const QStyleOption *option)
bool isNativeControlSupported(ControlType nType, ControlPart nPart) override
Query the platform layer for native control support.
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.
QtGraphics_Controls(const QtGraphicsBase &rGraphics)
void draw(QStyle::ControlElement element, QStyleOption &rOption, QImage *image, const Color &rBackgroundColor, QStyle::State const state=QStyle::State_None, QRect rect=QRect())
static QRect subControlRect(QStyle::ComplexControl control, const QStyleOptionComplex *option, QStyle::SubControl subControl)
void draw(QStyle::PrimitiveElement element, QStyleOption &rOption, QImage *image, const Color &rBackgroundColor, QStyle::State const state=QStyle::State_None, QRect rect=QRect())
QPoint upscale(const QPoint &point, Round eRound)
QSize downscale(const QSize &size, Round eRound)
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.
QRect upscale(const QRect &rect)
void draw(QStyle::ComplexControl element, QStyleOptionComplex &rOption, QImage *image, const Color &rBackgroundColor, QStyle::State const state=QStyle::State_None)
QRect downscale(const QRect &rect)
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.
static void fillQStyleOptionTab(const ImplControlValue &value, QStyleOptionTab &sot)
int downscale(int value, Round eRound)
int upscale(int value, Round eRound)