C# Class EmptyKeys.UserInterface.Media.FNATexture

Implements FNA specific texture
Inheritance: TextureBase
Afficher le fichier Open project: EmptyKeys/UI_Engines Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

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

FNATexture ( object nativeTexture ) : System

Initializes a new instance of the FNATexture class.

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.

Private Methods

Méthode Description
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

Method Details

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

FNATexture() public méthode

Initializes a new instance of the FNATexture class.
public FNATexture ( object nativeTexture ) : System
nativeTexture object The native texture.
Résultat System

GenerateArrow() public méthode

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.
Résultat void

GenerateCheckbox() public méthode

Generates the check box texture content
public GenerateCheckbox ( ) : void
Résultat void

GenerateLinearGradient() public méthode

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].
Résultat void

GenerateOneToOne() public méthode

Generates the one to one white texture
public GenerateOneToOne ( ) : void
Résultat void

GenerateSolidColor() public méthode

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].
Résultat void

GetNativeTexture() public méthode

Gets the native texture.
public GetNativeTexture ( ) : object
Résultat object

SetColorData() public méthode

Sets the color data.
Wrong data size
public SetColorData ( uint data ) : void
data uint The data.
Résultat void