Show / Hide Table of Contents

Class SolidColorBrush

Implements Solid Color brush

Inheritance
System.Object
DependencyObject
Freezable
Brush
SolidColorBrush
Inherited Members
Brush.OpacityProperty
Brush.Opacity
Brush.OnOpacityChanged(DependencyPropertyChangedEventArgs)
Freezable.IsFrozen
Freezable.Parent
Freezable.Changed
Freezable.Freeze()
Freezable.OnPropertyChanged(DependencyProperty)
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
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
Brush.Draw(TextureBase, Renderer, Double, PointF, Size, Single)

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
Brush.DrawGeometry(GeometryBuffer, TextureBase, Renderer, Double, PointF, Single)

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.

Back to top Generated by DocFX