Show / Hide Table of Contents

Class Brush

Implements base features for brushes

Inheritance
System.Object
DependencyObject
Freezable
Brush
ImageBrush
LinearGradientBrush
SolidColorBrush
Inherited Members
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 abstract class Brush : Freezable

Constructors

Brush()

Initializes a new instance of the Brush class.

Declaration
protected Brush()

Fields

OpacityProperty

The opacity property

Declaration
public static readonly DependencyProperty OpacityProperty
Field Value
Type Description
DependencyProperty

Properties

Opacity

Gets or sets the opacity.

Declaration
public float Opacity { get; set; }
Property Value
Type Description
System.Single

The opacity.

Methods

Draw(TextureBase, Renderer, Double, PointF, Size, Single)

Draws the specified texture - used for standard texture brushes

Declaration
public abstract 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.

DrawGeometry(GeometryBuffer, TextureBase, Renderer, Double, PointF, Single)

Draws the geometry - used with shapes and geometry

Declaration
public abstract 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.

OnOpacityChanged(DependencyPropertyChangedEventArgs)

Raises the OpacityChanged event.

Declaration
protected virtual void OnOpacityChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type Name Description
DependencyPropertyChangedEventArgs e

The DependencyPropertyChangedEventArgs instance containing the event data.

Back to top Generated by DocFX