MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
Functions
mg_dla.h File Reference

Dynamic lineart for graphics layer. More...

#include "techtype.h"

Go to the source code of this file.

Functions

void OSDdrawArc (void *data, int x, int y, int w, int h, int startAngle, int arcAngle, int lineWidth, OSDColor lineColour)
 Add a draw arc action to the action list. More...
 
void OSDdrawEllipse (void *data, int x, int y, int w, int h, int lineWidth, OSDColor lineColour, OSDColor fillColour)
 Add a draw ellipse action to the action list. More...
 
void OSDdrawSector (void *data, int x, int y, int w, int h, int startAngle, int arcAngle, int lineWidth, OSDColor lineColour, OSDColor fillColour)
 Add a draw sector action to the action list. More...
 
void OSDdrawDrawLine (void *data, int x1, int y1, int x2, int y2, int lineWidth, OSDColor lineColour)
 Add a draw line action to the action list. More...
 
void OSDdrawPolygonStart (void *data)
 Initialise a new draw polygon to add to the action list. More...
 
void OSDdrawPolygonAdd (void *data, int x, int y)
 Add co-ordinates that describe a polygon to draw to the action list. More...
 
void OSDdrawPolygon (void *data, int lineWidth, OSDColor lineColour, OSDColor fillColour, int filled)
 Add a draw polygon instruction to the action list. More...
 
void OSDdrawRectangle (void *data, int x1, int y1, int x2, int y2, int lineWidth, OSDColor lineColour, OSDColor fillColour)
 Add a draw rectangle action to the action list. More...
 
void * OSDinitDynamicLineart (int x, int y, int w, int h, int lineWidth, int bordered, OSDColor lineColour, OSDColor fillColour)
 On screen display - initialise dynamic line art. More...
 
void OSDclearDynamicLineart (void *data)
 On screen display - clear dynamic line art. More...
 
void OSDfreeDynamicLineart (void *data)
 On screen display - free resources dla. More...
 

Detailed Description

Dynamic lineart for graphics layer.

Date
30/04/2010
Author
Adam Sturtridge

Function Documentation

void OSDclearDynamicLineart ( void *  data)

On screen display - clear dynamic line art.

Parameters
dataAction list to be cleared
Returns
void
Parameters
void* data Dynamic line-art object.
Warning
Bug:
void OSDdrawArc ( void *  data,
int  x,
int  y,
int  w,
int  h,
int  start_angle,
int  arc_angle,
int  line_width,
OSDColor  line_colour 
)

Add a draw arc action to the action list.

Parameters
dataAction list
xTop left x-coord of object
yTop left y-co-ord of object
wWidth of object
hHeight of object
startAngleThe initial angle of the elipse
arcAngleThe extent of the arc
lineWidthWidth of the line used to draw the arc
lineColourThe line drawing colour
Returns
void
Parameters
void* data Action list int x Top left x-coord of object int y Top left y-coord of object int w Width of object int h Height of object int start_angle The initial angle of the ellipse int arc_angle The extent of the arc int line_width Width of the line used to draw the arc OSDColor line_colour The line drawing colour
Warning
Bug:
void OSDdrawDrawLine ( void *  data,
int  x1,
int  y1,
int  x2,
int  y2,
int  line_width,
OSDColor  line_colour 
)

Add a draw line action to the action list.

Parameters
dataAction list to be added to.
x11st pixel x co-ord
y11st pixel y co-ord
x22nd pixel x co-ord
y22nd pixel y co-ord
lineWidthWidth of the line used to draw the arc
lineColourThe line drawing colour
Returns
void

Add a draw line action to the action list.

Parameters
void* data Pointer to action list x1 int Line start x position y1 int Line start y position x2 int Line end x position y2 int Line end y position line_width int Line pixel width line_colour OSDColour Line colour
Warning
Bug:
void OSDdrawEllipse ( void *  data,
int  x,
int  y,
int  w,
int  h,
int  line_width,
OSDColor  line_colour,
OSDColor  fill_colour 
)

Add a draw ellipse action to the action list.

Parameters
dataAction list to be added to.
xTop left x-coord of object
yTop left y-co-ord of object
wWidth of object
hHeight of object
lineWidthWidth of the line used to draw the arc
lineColourThe line drawing colour
fillColourThe fill colour of the ellipse
Returns
void
Parameters
void* data Action list to be added to int x Top left x-coord of object int y Top left y-coord of object int w Width of object int h Height of object int line_width Width of the line used to draw the arc OSDColor line_colour The line drawing colour OSDColor fill_colour The fill colour of the ellipse
Warning
Bug:
void OSDdrawPolygon ( void *  data,
int  line_width,
OSDColor  line_colour,
OSDColor  fill_colour,
int  filled 
)

Add a draw polygon instruction to the action list.

Parameters
dataAction list to be added to.
lineWidthWidth of the draw line
lineColourThe line drawing colour
fillColourThe fill colour of the polygon
Returns
void
Parameters
void* data Action list to be added to int line_width Width of the draw line OSDColor line_colour Colour of the line OSDColor fill_colour Polygon fill colour int filled Fill polygon
Warning
Bug:
void OSDdrawPolygonAdd ( void *  data,
int  x,
int  y 
)

Add co-ordinates that describe a polygon to draw to the action list.

Parameters
dataAction list to be added to.
xTop left x-co-ord of object
yTop left y-co-ord of object
Returns
void
Parameters
void* data Pointer to action list int x Top left x co-ord of object int y Top left y co-ord of object
Warning
Bug:
void OSDdrawPolygonStart ( void *  data)

Initialise a new draw polygon to add to the action list.

Parameters
dataAction list to be added to.
Returns
void
Parameters
void* data Pointer to action list
Warning
Bug:
void OSDdrawRectangle ( void *  data,
int  x1,
int  y1,
int  x2,
int  y2,
int  line_width,
OSDColor  line_colour,
OSDColor  fill_colour 
)

Add a draw rectangle action to the action list.

Parameters
dataAction list to be added to.
x11st pixel x co-ord
y11st pixel y co-ord
x22nd pixel x co-ord
y22nd pixel y co-ord
lineWidthWidth of the line used to draw the arc
lineColourThe line drawing colour
fillColourThe fill colour of the ellipse
Returns
void
Parameters
void* data Action list to be added to int x1 1st pixel x co-ord int y1 1st pixel y co-ord int x2 2nd pixel x co-ord int y2 2nd pixel y co-ord int line_width Width of the line used to draw the arc int line_colour The line drawing colour int fill_colour The fill colour of the ellipse
Warning
Bug:
void OSDdrawSector ( void *  data,
int  x,
int  y,
int  w,
int  h,
int  start_angle,
int  arc_angle,
int  line_width,
OSDColor  line_colour,
OSDColor  fill_colour 
)

Add a draw sector action to the action list.

Parameters
dataAction list to be added to.
xTop left x-coord of object
yTop left y-co-ord of object
wWidth of object
hHeight of object
startAngleThe initial angle of the elipse
arcAngleThe extent of the arc
lineWidthWidth of the line used to draw the arc
lineColourThe line drawing colour
fillColourThe fill colour of the ellipse
Returns
void
Parameters
void* data Action list to be added to. int x Top left x-coord of object. int y Top left y-coord of object. int w Width of object. int h Height of object. int start_angle The initial angle of the ellipse int arc_angle The extent of the arc int line_width Width of the line used to draw the arc OSDColor line_colour The line drawing colour OSDColor fill_colour The fill colour of the ellipse
Warning
Bug:
void OSDfreeDynamicLineart ( void *  data)

On screen display - free resources dla.

Parameters
dataAction list resource to be freed
Returns
void
Parameters
void* data Dynamic line-art object.
Warning
Bug:
void* OSDinitDynamicLineart ( int  x,
int  y,
int  w,
int  h,
int  line_width,
int  bordered,
OSDColor  line_colour,
OSDColor  fill_colour 
)

On screen display - initialise dynamic line art.

Parameters
xTop left x-coord of object
yTop left y-co-ord of object
wWidth of object
hHeight of object
lineWidthWidth of the line used to draw the arc
borderedA boolean, cuningly disguised as an int.
lineColourThe line drawing colour
fillColourThe fill colour of the ellipse
Returns
void ptr
Parameters
intw Width of object int h Height of object int line_width Width of the line used to draw the arc int bordered A boolean, cuningly disguised as an int. OSDColor line_colour The line drawing colour OSDColor fill_colour The fill colour of the ellipse
Returns
S_DLA_ACTION The action list.
Warning
Bug: