C# Класс ModelViewer.Renderer.DefaultVisual

Provides a default visual representation of an element, to be used when no element-specific visual representation is available.
Наследование: IElementVisual
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Measure() публичный Метод

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.
Результат Vector2

Render() публичный Метод

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.
Результат void