|
MythTV master
|
Object for displaying Dynamic Line Art. More...
#include <libmythtv/mheg/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 |
Public Member Functions inherited from MHDLADisplay | |
| virtual | ~MHDLADisplay ()=default |
| virtual void | Draw (int x, int y)=0 |
| virtual void | SetSize (int width, int height)=0 |
| virtual void | SetLineSize (int width)=0 |
| virtual void | SetLineColour (MHRgba colour)=0 |
| virtual void | SetFillColour (MHRgba colour)=0 |
| virtual void | Clear ()=0 |
| virtual void | DrawLine (int x1, int y1, int x2, int y2)=0 |
| virtual void | DrawBorderedRectangle (int x, int y, int width, int height)=0 |
| virtual void | DrawOval (int x, int y, int width, int height)=0 |
| virtual void | DrawArcSector (int x, int y, int width, int height, int start, int arc, bool isSector)=0 |
| virtual void | DrawPoly (bool isFilled, const MHPointVec &xArray, const MHPointVec &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 |
Clear the drawing.
Implements MHDLADisplay.
Definition at line 1492 of file mhi.cpp.
Referenced by SetSize().
|
overridevirtual |
Draw the completed drawing onto the display.
Implements MHDLADisplay.
|
overridevirtual |
Implements MHDLADisplay.
|
overridevirtual |
Implements MHDLADisplay.
|
overridevirtual |
|
protected |
Definition at line 1574 of file mhi.cpp.
Referenced by DrawLine().
|
overridevirtual |
Implements MHDLADisplay.
|
overridevirtual |
Implements MHDLADisplay.
|
protected |
Definition at line 1450 of file mhi.cpp.
Referenced by Clear(), and DrawBorderedRectangle().
|
inlineoverridevirtual |
Implements MHDLADisplay.
|
inlineoverridevirtual |
Implements MHDLADisplay.
|
inlineoverridevirtual |
Implements MHDLADisplay.
|
inlineoverridevirtual |
Set the box size. Also clears the drawing.
Implements MHDLADisplay.
|
protected |
|
protected |
|
protected |
|
protected |
Current fill colour.
Definition at line 362 of file mhi.h.
Referenced by DrawBorderedRectangle(), DrawPoly(), and SetFillColour().
|
protected |
|
protected |
Definition at line 355 of file mhi.h.
Referenced by Clear(), Draw(), DrawLineSub(), DrawPoly(), and DrawRect().
|
protected |
Current line colour.
Definition at line 361 of file mhi.h.
Referenced by DrawBorderedRectangle(), DrawLineSub(), and SetLineColour().
|
protected |
Current line width.
Definition at line 363 of file mhi.h.
Referenced by Draw(), DrawBorderedRectangle(), DrawLineSub(), and SetLineSize().
|
protected |
|
protected |