C# Класс EmptyKeys.UserInterface.Media.XenkoTexture

Наследование: TextureBase
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GenerateArrow ( ArrowDirection direction, int startX, int lineSize ) : void

Generates the arrow.

GenerateCheckbox ( ) : void

Generates the check box texture content

GenerateLinearGradient ( PointF lineStart, PointF lineEnd, Thickness borderThickness, List sortedStops, GradientSpreadMethod spread, bool isBorder ) : void

Generates the linear gradient texture content

GenerateOneToOne ( ) : void

Generates the one to one white texture

GenerateSolidColor ( Thickness borderThickness, bool isBorder ) : void

Generates the solid color texture content

GetNativeTexture ( ) : object

Gets the native texture.

SetColorData ( uint data ) : void

Sets the color data.

XenkoTexture ( object nativeTexture ) : System

Initializes a new instance of the MonoGameTexture class.

Приватные методы

Метод Описание
GetEndStop ( float offset, List stops, GradientSpreadMethod spreadMethod ) : GradientStop
GetLength ( PointF start, PointF end ) : float
GetStartStop ( float offset, List stops ) : GradientStop
ProjectToLine ( PointF lineStart, PointF lineEnd, PointF toProject, int width ) : PointF

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

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

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

Generates the arrow.
public GenerateArrow ( ArrowDirection direction, int startX, int lineSize ) : void
direction ArrowDirection The direction.
startX int The start x point
lineSize int Size of the line.
Результат void

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

Generates the check box texture content
public GenerateCheckbox ( ) : void
Результат void

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

Generates the linear gradient texture content
public GenerateLinearGradient ( PointF lineStart, PointF lineEnd, Thickness borderThickness, List sortedStops, GradientSpreadMethod spread, bool isBorder ) : void
lineStart PointF The line start.
lineEnd PointF The line end.
borderThickness Thickness The border thickness.
sortedStops List The sorted stops.
spread GradientSpreadMethod The spread.
isBorder bool if set to true [is border].
Результат void

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

Generates the one to one white texture
public GenerateOneToOne ( ) : void
Результат void

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

Generates the solid color texture content
public GenerateSolidColor ( Thickness borderThickness, bool isBorder ) : void
borderThickness Thickness The border thickness.
isBorder bool if set to true [is border].
Результат void

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

Gets the native texture.
public GetNativeTexture ( ) : object
Результат object

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

Sets the color data.
Wrong data size
public SetColorData ( uint data ) : void
data uint The data.
Результат void

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

Initializes a new instance of the MonoGameTexture class.
public XenkoTexture ( object nativeTexture ) : System
nativeTexture object The native texture.
Результат System