Class AbstractUpdateAwareDecorator
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Inheritance
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public abstract class AbstractUpdateAwareDecorator : AbstractDecorator, IBindable, INotifyPropertyChanged, IDecorator
Constructors
| Edit this page View SourceAbstractUpdateAwareDecorator(RGBSurface, bool)
Initializes a new instance of the AbstractUpdateAwareDecorator class.
Declaration
protected AbstractUpdateAwareDecorator(RGBSurface surface, bool updateIfDisabled = false)
Parameters
Type | Name | Description |
---|---|---|
RGBSurface | surface | The surface this decorator is attached to. |
bool | updateIfDisabled | Bool indicating if the AbstractUpdateAwareDecorator should call Update(double) even if the Decorator is disabled. |
Properties
| Edit this page View SourceSurface
Gets the surface this decorator is attached to.
Declaration
protected RGBSurface Surface { get; }
Property Value
Type | Description |
---|---|
RGBSurface |
UpdateIfDisabled
Gets or sets if the AbstractUpdateAwareDecorator should call Update(double) even if the Decorator is disabled.
Declaration
protected bool UpdateIfDisabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceOnAttached(IDecoratable)
Attaches this IDecorator to the specified target.
Declaration
public override void OnAttached(IDecoratable decoratable)
Parameters
Type | Name | Description |
---|---|---|
IDecoratable | decoratable | The object this IDecorator should be attached to. |
Overrides
| Edit this page View SourceOnDetached(IDecoratable)
Detaches this IDecorator from the specified target.
Declaration
public override void OnDetached(IDecoratable decoratable)
Parameters
Type | Name | Description |
---|---|---|
IDecoratable | decoratable | The object this IDecorator should be detached from. |
Overrides
| Edit this page View SourceUpdate(double)
Updates this AbstractUpdateAwareDecorator.
Declaration
protected abstract void Update(double deltaTime)
Parameters
Type | Name | Description |
---|---|---|
double | deltaTime | The elapsed time (in seconds) since the last update. |