Difference between revisions of "GetTextDimensions"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Gets the dimensions of some text. </onlyinclude> As this is GUI-related it is client only - it should be wrapped in "if ( getNet().isClient() )" or be in a client-...")
(No difference)

Revision as of 13:28, 6 October 2012

Gets the dimensions of some text.


As this is GUI-related it is client only - it should be wrapped in "if ( getNet().isClient() )" or be in a client-only script.

This method is part of the GUI namespace so you need to prefix calls to it with 'GUI::'.

void GUI::GetTextDimensions( const ::string &in text, ::dimension2di &out dim  )