C# Class ModelViewer.Renderer.DefaultVisual

Provides a default visual representation of an element, to be used when no element-specific visual representation is available.
Inheritance: IElementVisual
Mostra file Open project: nohbdy/ffxivmodelviewer Class Usage Examples

Public Methods

Method Description
Measure ( UserInterfaceRenderer renderer, Element element ) : Vector2

Measures the element, returning the size (in pixels) it would occupy if rendered with the specified renderer.

Render ( UserInterfaceRenderer renderer, Element element, int x, int y, int width, int height ) : void

Renders the element using the specified renderer.

Method Details

Measure() public method

Measures the element, returning the size (in pixels) it would occupy if rendered with the specified renderer.
public Measure ( UserInterfaceRenderer renderer, Element element ) : Vector2
renderer UserInterfaceRenderer The renderer.
element Element The element.
return Vector2

Render() public method

Renders the element using the specified renderer.
public Render ( UserInterfaceRenderer renderer, Element element, int x, int y, int width, int height ) : void
renderer UserInterfaceRenderer The renderer.
element Element The element.
x int The X coordinate (in pixels) of the upper left corner of the region the element should be rendered to.
y int The Y coordinate (in pixels) of the upper left corner of the region the element should be rendered to.
width int The width (in pixels) of the region the element should be rendered to.
height int The height (in pixels) of the region the element should be rendered to.
return void