uPano  v3.1
InfinityCode.uPano.CanvasUtils Class Reference

Methods for Canvas and Event System More...

Static Public Member Functions

static int CalculateWidthOfMessage (string text, Font font, int fontSize)
 Returns the width of the displayed text More...
 
static Canvas GetCanvas ()
 Returns the current canvas or creates a new one More...
 
static EventSystem GetEventSystem ()
 Returns the current event system or creates a new one More...
 

Detailed Description

Methods for Canvas and Event System

Member Function Documentation

◆ CalculateWidthOfMessage()

static int InfinityCode.uPano.CanvasUtils.CalculateWidthOfMessage ( string  text,
Font  font,
int  fontSize 
)
static

Returns the width of the displayed text

Parameters
textText
fontFont
fontSizeFont size
Returns
Width of the displayed text

◆ GetCanvas()

static Canvas InfinityCode.uPano.CanvasUtils.GetCanvas ( )
static

Returns the current canvas or creates a new one

Returns

◆ GetEventSystem()

static EventSystem InfinityCode.uPano.CanvasUtils.GetEventSystem ( )
static

Returns the current event system or creates a new one

Returns