53 using QPainter::QPainter;
64 if (
auto scrollArea = widget->scrollArea())
65 begin(scrollArea->viewport());
141 void RoundRect(
int x1,
int y1,
int x2,
int y2,
int ellipseWidth,
int ellipseHeight);
143 void Chord(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3,
int x4,
int y4);
149 void Pie(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3,
int x4,
int y4);
163 void BitBlt(
const QRect &rect,
const QPixmap &pSrcDC,
int xSrc,
int ySrc);
165 void BitBlt(
int x,
int y,
int nWidth,
int nHeight,
const QPixmap &pSrcDC,
int xSrc,
int ySrc);
The KBrush class defines a brush to be used during painting.
Definition kbrush.h:38
The KFont class defines a font to be used during painting.
Definition kfont.h:37
The KPainter class is used to paint on a widget.
Definition kpainter.h:51
void BitBlt(const QRect &rect, const QPixmap &pSrcDC, int xSrc, int ySrc)
Draws a bitmap at the specified coordinates.
void Rectangle(int x1, int y1, int x2, int y2)
Draws a rectangle using the current pen and fills it using the current brush.
KBrush SelectObject(const KBrush &brush)
Sets the brush to be used for drawing.
void BitBlt(int x, int y, int nWidth, int nHeight, const QPixmap &pSrcDC, int xSrc, int ySrc)
Draws a bitmap at the specified coordinates.
void Ellipse(const KRect &rect)
Draws an ellipse using the current pen and fills it using the current brush.
void Pie(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
Draws a pie-shaped wedge.
void LineTo(int x, int y)
Draws a line from the current position up to, but not including, a point.
void IntersectClipRect(const KRect &rect)
Enables clipping, and sets the clip region to the given rectangle.
void TextOut(int x, int y, const KString &text)
Writes a character string at a specified location using the currently selected font.
void FillRect(const KRect &rect, const KBrush &brush)
Fills a given rectangle by using a specific brush.
void PolyBezier(const KPoint *points, int pointCount)
Draws one or more Bzier splines. The current position isn't used or updated.
void RoundRect(const KRect &rect, int ellipseWidth, int ellipseHeight)
Draws a rounded rectangle using the current pen and fills it using the current brush.
void SelectClipRgn(QRegion *region)
Sets the clipping region to be used for drawing.
void TextOut(int x, int y, const KString &text, int nCount)
Writes a character string at a specified location using the currently selected font.
KPen SelectObject(const KPen &pen)
Sets the pen to be used for drawing.
KFont SelectObject(const KFont &font)
Sets the font to be used for drawing.
void Chord(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
KSize GetTextExtent(const KString &str) const
Computes the width and height of a line of text based on the current font.
KPainter(KWidgetBase< T > *widget)
Construct a new KPainter object based on a KWidget or KDialog.
Definition kpainter.h:62
void Rectangle(const KRect &rect)
Draws a rectangle using the current pen and fills it using the current brush.
void IntersectClipRect(int x1, int y1, int x2, int y2)
Enables clipping, and sets the clip region to the given rectangle.
void Polygon(const KPoint *points, int pointCount)
Draws a polygon consisting of two or more points (vertices) connected by lines.
void Ellipse(int x1, int y1, int x2, int y2)
Draws an ellipse using the current pen and fills it using the current brush.
void RoundRect(int x1, int y1, int x2, int y2, int ellipseWidth, int ellipseHeight)
Draws a rounded rectangle using the current pen and fills it using the current brush.
QColor SetBkColor(const QColor &color)
Sets the background color to be used for drawing (ie the brush color)
QColor SetTextColor(const QColor &color)
Sets the text color to be used for drawing (ie the pen color)
void MoveTo(int x, int y)
Moves the current position.
The KPen class defines a font to be used during painting.
Definition kpen.h:42
The KPoint class defines a point in the plane using integer precision.
Definition kpoint.h:43
The KRect class defines a rectangle in the plane using integer precision.
Definition krect.h:40
The KSize class defines the size of a two-dimensional object using integer point precision.
Definition ksize.h:43
The KString class provides a Unicode character string.
Definition kstring.h:45
#define KDWINUTILS_EXPORT
Definition kdwinutils_export.h:31
#define KDWINUTILS_BEGIN_NAMESPACE
Definition kdwinutils_global.h:27
#define KDWINUTILS_END_NAMESPACE
Definition kdwinutils_global.h:28