Class SolidColorBrush
Implements Solid Color brush
Inherited Members
Namespace: EmptyKeys.UserInterface.Media
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class SolidColorBrush : Brush
Constructors
SolidColorBrush()
Initializes a new instance of the SolidColorBrush class.
Declaration
public SolidColorBrush()
SolidColorBrush(ColorW)
Initializes a new instance of the SolidColorBrush class.
Declaration
public SolidColorBrush(ColorW color)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Media.ColorW | color | The color. |
Fields
ColorProperty
The color property
Declaration
public static readonly DependencyProperty ColorProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
Color
Gets or sets the color.
Declaration
public ColorW Color { get; set; }
Property Value
Type | Description |
---|---|
EmptyKeys.UserInterface.Media.ColorW | The color. |
Methods
Draw(TextureBase, Renderer, Double, PointF, Size, Single)
Draws the specified texture.
Declaration
public override void Draw(TextureBase texture, Renderer renderer, double elapsedGameTime, PointF position, Size renderSize, float opacity)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Media.TextureBase | texture | The texture. |
EmptyKeys.UserInterface.Renderers.Renderer | renderer | The sprite renderer. |
System.Double | elapsedGameTime | The elapsed game time. |
EmptyKeys.UserInterface.PointF | position | The position. |
EmptyKeys.UserInterface.Size | renderSize | Size of the render. |
System.Single | opacity | The opacity. |
Overrides
DrawGeometry(GeometryBuffer, TextureBase, Renderer, Double, PointF, Single)
Draws the geometry - used with shapes and geometry
Declaration
public override void DrawGeometry(GeometryBuffer buffer, TextureBase texture, Renderer renderer, double elapsedGameTime, PointF position, float opacity)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Media.GeometryBuffer | buffer | The buffer. |
EmptyKeys.UserInterface.Media.TextureBase | texture | The texture. |
EmptyKeys.UserInterface.Renderers.Renderer | renderer | The renderer. |
System.Double | elapsedGameTime | The elapsed game time. |
EmptyKeys.UserInterface.PointF | position | The position. |
System.Single | opacity | The opacity. |
Overrides
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |