Garry's Mod Wiki

MarkupObject

Object containing parsed markup for later rendering. Created by markup.Parse.

Methods

MarkupObject:Draw( number xOffset, number yOffset, number xAlign = TEXT_ALIGN_LEFT, number yAlign = TEXT_ALIGN_TOP, number alphaoverride = 255, number textAlign = TEXT_ALIGN_LEFT )
Draws the computed markupobject to the screen. See markup. Parse.
number MarkupObject:GetHeight()
Gets computed the height of the markupobject.
number MarkupObject:GetMaxWidth()
Gets maximum width for this markup object as defined in markup. Parse.
number MarkupObject:GetWidth()
Gets computed the width of the markupobject.
number, number MarkupObject:Size()
Gets computed the width and height of the markupobject.