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, const MHPointVec &xArray, const MHPointVec &yArray) override |
![]() | |
virtual | ~MHDLADisplay ()=default |
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 |
Clear the drawing.
Implements MHDLADisplay.
Definition at line 1502 of file mhi.cpp.
Referenced by SetSize().
|
overridevirtual |
|
overridevirtual |
Implements MHDLADisplay.
|
overridevirtual |
Implements MHDLADisplay.
|
overridevirtual |
Implements MHDLADisplay.
|
overridevirtual |
Implements MHDLADisplay.
|
protected |
Definition at line 1460 of file mhi.cpp.
Referenced by Clear(), and DrawBorderedRectangle().
|
protected |
Definition at line 1584 of file mhi.cpp.
Referenced by DrawLine().
|
protected |
|
protected |
Definition at line 355 of file mhi.h.
Referenced by Clear(), Draw(), DrawLineSub(), DrawPoly(), and DrawRect().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Current line colour.
Definition at line 361 of file mhi.h.
Referenced by DrawBorderedRectangle(), DrawLineSub(), and SetLineColour().
|
protected |
Current fill colour.
Definition at line 362 of file mhi.h.
Referenced by DrawBorderedRectangle(), DrawPoly(), and SetFillColour().
|
protected |
Current line width.
Definition at line 363 of file mhi.h.
Referenced by Draw(), DrawBorderedRectangle(), DrawLineSub(), and SetLineSize().