Class Column : onDraw Event


void onDraw( DrawContext dc, Rect rc, String textColour, Programme programme )

Summary

Called when the column needs to draw it's content


Remarks

DigiGuide automaticallys selects the correct font so there is no need to select a font, but you are free to use whatever font you want.


Parameters

ParameterDescription
DrawContext dc The drawing canvas
Rect rc The rectangle you draw in
String textColour The text colour you should use
Programme programme The programme you are drawing.


Examples

var c = new Column( "Channel Name", 1, 25, 50, true, true, "Full channel name" )

c.onDraw = function ( dc, rc, textColour, programme )
{
dc.drawEllipsisText( rc.left, rc.top, rc.right, programme.channel.name, textColour );
}


Requirements

1065