Show / Hide Table of Contents

Interface IHasLayer

Interface for objects that reside on a "Z-index" or "layer".

Namespace: SadRogue.Primitives
Assembly: TheSadRogue.Primitives.dll
Syntax
public interface IHasLayer
Remarks

The concept of a z-index is fairly common in rendering and representation of objects in a 2d grid. This interface can be used by any code that wants to work with objects that have some sort of layer assigned to them; but the library's code primarily uses it as part of the LayeredSpatialMap<T> implementation.

Properties

Layer

The layer on which the object should reside. Higher numbers indicate layers closer to the "top".

Declaration
int Layer { get; }
Property Value
Type Description
Int32
Remarks

This value is typically assumed to remain constant while the object is within a data structure that uses this interface -- if it is modified, that data structure will become out of sync.

Extension Methods

PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>)
PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>, EventHandler<ValueChangedEventArgs<TProperty>>)
In This Article
Back to top Generated by DocFX