MythTV
master
|
Object for displaying Dynamic Line Art. More...
#include <mhi.h>
Public Member Functions | |
MHIDLA (MHIContext *parent, bool isBoxed, MHRgba lineColour, MHRgba fillColour) | |
void | Draw (int x, int y) override |
Draw the completed drawing onto the display. More... | |
void | SetSize (int width, int height) override |
Set the box size. Also clears the drawing. More... | |
void | SetLineSize (int width) override |
void | SetLineColour (MHRgba colour) override |
void | SetFillColour (MHRgba colour) override |
void | Clear (void) override |
Clear the drawing. More... | |
void | DrawLine (int x1, int y1, int x2, int y2) override |
void | DrawBorderedRectangle (int x, int y, int width, int height) override |
void | DrawOval (int x, int y, int width, int height) override |
void | DrawArcSector (int x, int y, int width, int height, int start, int arc, bool isSector) override |
void | DrawPoly (bool isFilled, int nPoints, const int *xArray, const int *yArray) override |
![]() | |
virtual | ~MHDLADisplay () |
virtual void | DrawPoly (bool isFilled, int nPoints, const int xArray[], const int yArray[])=0 |
Protected Member Functions | |
void | DrawRect (int x, int y, int width, int height, MHRgba colour) |
void | DrawLineSub (int x1, int y1, int x2, int y2, bool swapped) |
Protected Attributes | |
MHIContext * | m_parent {nullptr} |
QImage | m_image |
int | m_width {0} |
Width of the drawing. More... | |
int | m_height {0} |
Height of the drawing. More... | |
bool | m_boxed |
Does it have a border? More... | |
MHRgba | m_boxLineColour |
Line colour for the background. More... | |
MHRgba | m_boxFillColour |
Fill colour for the background. More... | |
MHRgba | m_lineColour |
Current line colour. More... | |
MHRgba | m_fillColour |
Current fill colour. More... | |
int | m_lineWidth {0} |
Current line width. More... | |
|
inline |
|
overridevirtual |
Draw the completed drawing onto the display.
Implements MHDLADisplay.
|
inlineoverridevirtual |
Set the box size. Also clears the drawing.
Implements MHDLADisplay.
|
inlineoverridevirtual |
Implements MHDLADisplay.
|
inlineoverridevirtual |
Implements MHDLADisplay.
|
inlineoverridevirtual |
Implements MHDLADisplay.
|
overridevirtual |
|
overridevirtual |
Implements MHDLADisplay.
|
overridevirtual |
Implements MHDLADisplay.
|
overridevirtual |
Implements MHDLADisplay.
|
overridevirtual |
Implements MHDLADisplay.
|
override |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |