CircularBufferPropertyDrawer< T > Class Template Reference

Property drawer for the CircularBuffer generic class. One MUST derive a version of this class, for each non-generic variant of CircularBuffer to be displayed. e.g.

Detailed Description

[System.Serializable] public class IntBuffer : CircularBuffer/<int> { public IntBuffer(int size) : base(size) { } } [CustomPropertyDrawer(typeof(IntBuffer))] public class IntBufferPropertyDrawer : CircularBufferPropertyDrawer/<int>

Template Parameters
TThis type must match the one specified in the CircularBuffer

Public Member Functions

override float GetPropertyHeight (SerializedProperty property, GUIContent label)
 Computes and returns the height required to draw the CircularBuffer
 
override void OnGUI (Rect position, SerializedProperty property, GUIContent label)
 Draw the property inside the given rect. Draws special controls for CircularBuffers, and also exposes the entire storage array.
 

Protected Member Functions

virtual float InternalDraw (Rect position, SerializedProperty property, GUIContent label, bool heightOnly)
 Internal function handles both drawing, and height computations. Weather or not it will draw controls, or just compute the height depend of the heightOnly parameter.
 
+ Inheritance diagram for CircularBufferPropertyDrawer< T >: