abstract private MeasureString ( string text ) : System.Vector2 | ||
text | string | The string. |
return | System.Vector2 |
/// <summary> /// Measures the element, returning the size (in pixels) it would occupy if /// rendered with the specified renderer. /// </summary> /// <param name="renderer">The renderer.</param> /// <param name="element">The element.</param> /// <returns>The size of the element (in pixels).</returns> public virtual Vector2 Measure(UserInterfaceRenderer renderer, Element element) { return(renderer.MeasureString(element.Label)); }
/// <summary> /// Measures the element, returning the size (in pixels) it would occupy if /// rendered with the specified renderer. /// </summary> /// <param name="renderer">The renderer.</param> /// <param name="element">The element.</param> /// <returns>The size of the element (in pixels).</returns> public virtual Vector2 Measure(UserInterfaceRenderer renderer, Element element) { return renderer.MeasureString(element.Label); }