|
MythTV
0.26-pre
|
Object for displaying Dynamic Line Art. More...
#include <mhi.h>
Public Member Functions | |
| MHIDLA (MHIContext *parent, bool isBoxed, MHRgba lineColour, MHRgba fillColour) | |
| virtual void | Draw (int x, int y) |
| Draw the completed drawing onto the display. | |
| virtual void | SetSize (int width, int height) |
| Set the box size. Also clears the drawing. | |
| virtual void | SetLineSize (int width) |
| virtual void | SetLineColour (MHRgba colour) |
| virtual void | SetFillColour (MHRgba colour) |
| virtual void | Clear (void) |
| Clear the drawing. | |
| virtual void | DrawLine (int x1, int y1, int x2, int y2) |
| virtual void | DrawBorderedRectangle (int x, int y, int width, int height) |
| virtual void | DrawOval (int x, int y, int width, int height) |
| virtual void | DrawArcSector (int x, int y, int width, int height, int start, int arc, bool isSector) |
| virtual void | DrawPoly (bool isFilled, int nPoints, const int *xArray, const int *yArray) |
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 |
| QImage | m_image |
| int | m_width |
| Width of the drawing. | |
| int | m_height |
| Height of the drawing. | |
| bool | m_boxed |
| Does it have a border? | |
| MHRgba | m_boxLineColour |
| Line colour for the background. | |
| MHRgba | m_boxFillColour |
| Fill colour for the background. | |
| MHRgba | m_lineColour |
| Current line colour. | |
| MHRgba | m_fillColour |
| Current fill colour. | |
| int | m_lineWidth |
| Current line width. | |
| MHIDLA::MHIDLA | ( | MHIContext * | parent, |
| bool | isBoxed, | ||
| MHRgba | lineColour, | ||
| MHRgba | fillColour | ||
| ) | [inline] |
| void MHIDLA::Draw | ( | int | x, |
| int | y | ||
| ) | [virtual] |
Draw the completed drawing onto the display.
Implements MHDLADisplay.
| virtual void MHIDLA::SetSize | ( | int | width, |
| int | height | ||
| ) | [inline, virtual] |
Set the box size. Also clears the drawing.
Implements MHDLADisplay.
| virtual void MHIDLA::SetLineSize | ( | int | width | ) | [inline, virtual] |
Implements MHDLADisplay.
| virtual void MHIDLA::SetLineColour | ( | MHRgba | colour | ) | [inline, virtual] |
Implements MHDLADisplay.
| virtual void MHIDLA::SetFillColour | ( | MHRgba | colour | ) | [inline, virtual] |
Implements MHDLADisplay.
| void MHIDLA::Clear | ( | void | ) | [virtual] |
Implements MHDLADisplay.
Implements MHDLADisplay.
| void MHIDLA::DrawArcSector | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height, | ||
| int | start, | ||
| int | arc, | ||
| bool | isSector | ||
| ) | [virtual] |
Implements MHDLADisplay.
Definition at line 1118 of file mhi.cpp.
Referenced by Clear(), and DrawBorderedRectangle().
Definition at line 1241 of file mhi.cpp.
Referenced by DrawLine().
MHIContext* MHIDLA::m_parent [protected] |
QImage MHIDLA::m_image [protected] |
Definition at line 299 of file mhi.h.
Referenced by Clear(), Draw(), DrawLineSub(), DrawPoly(), and DrawRect().
int MHIDLA::m_width [protected] |
Width of the drawing.
Definition at line 300 of file mhi.h.
Referenced by Clear(), Draw(), and DrawLineSub().
int MHIDLA::m_height [protected] |
Height of the drawing.
Definition at line 301 of file mhi.h.
Referenced by Clear(), Draw(), and DrawLineSub().
bool MHIDLA::m_boxed [protected] |
MHRgba MHIDLA::m_boxLineColour [protected] |
MHRgba MHIDLA::m_boxFillColour [protected] |
MHRgba MHIDLA::m_lineColour [protected] |
Current line colour.
Definition at line 305 of file mhi.h.
Referenced by DrawBorderedRectangle(), and DrawLineSub().
MHRgba MHIDLA::m_fillColour [protected] |
Current fill colour.
Definition at line 306 of file mhi.h.
Referenced by DrawBorderedRectangle(), and DrawPoly().
int MHIDLA::m_lineWidth [protected] |
Current line width.
Definition at line 307 of file mhi.h.
Referenced by Draw(), DrawBorderedRectangle(), and DrawLineSub().
1.7.6.1