Sequine - Scripting API
Calcatz.CookieCutter.DirectObjectReorderableList< T > Class Template Reference

Public Member Functions

float GetHeight ()
 
 DirectObjectReorderableList (UnityEngine.Object _listRootObject, ref List< T > _list, string _headerText="", float _elementHeight=30)
 
void DoLayoutList ()
 
void DoList (Rect rect)
 
virtual void SetHightLightBackgroundImage ()
 
delegate void DrawElementCallback (Rect rect, IList list, int index, bool active, bool focused)
 
float GetHeight ()
 
 DirectObjectReorderableList (UnityEngine.Object _listRootObject, System.Type _listType, IList _list, System.Action< IList > _onListCreated, string _headerText="", float _elementHeight=30)
 
void RenewElementHeight (int _index, float _height)
 
void PrepareDoList ()
 
void DoLayoutList ()
 
void DoList (Rect rect)
 
virtual void SetHightLightBackgroundImage ()
 

Public Attributes

Action< Rect, List< T >, int, bool, bool > customOnDrawElement = null
 
System.Action onPrepareDoList = null
 
DrawElementCallback customOnDrawElement = null
 

Protected Member Functions

virtual void OnDrawElementBackground (Rect _rect, int _index, bool _isActive, bool _isFocused, T _element, float _height)
 
void RenewElementHeight (int _index, float _height)
 
virtual void OnAdd (ReorderableList list, int index, T newElement)
 
virtual void OnRemove (ReorderableList list, int index, T removedElement)
 
virtual void OnDrawElement (Rect rect, int index, bool active, bool focused)
 
virtual void OnDrawElementBackground (Rect _rect, int _index, bool _isActive, bool _isFocused, object _element, float _height)
 
virtual void OnAdd (ReorderableList list, int index, object newElement)
 
virtual void OnRemove (ReorderableList list, int index, object removedElement)
 
virtual void OnDrawElement (Rect rect, int index, bool active, bool focused)
 

Protected Attributes

UnityEngine.Object listRootObject
 
ReorderableList reorderableList
 
Texture2D backgroundImage
 

Properties

List< T > list [get]
 
System.Type elementType [get]
 
IList list [get]
 

Constructor & Destructor Documentation

◆ DirectObjectReorderableList() [1/2]

Calcatz.CookieCutter.DirectObjectReorderableList< T >.DirectObjectReorderableList ( UnityEngine.Object  _listRootObject,
ref List< T >  _list,
string  _headerText = "",
float  _elementHeight = 30 
)

◆ DirectObjectReorderableList() [2/2]

Calcatz.CookieCutter.DirectObjectReorderableList< T >.DirectObjectReorderableList ( UnityEngine.Object  _listRootObject,
System.Type  _listType,
IList  _list,
System.Action< IList >  _onListCreated,
string  _headerText = "",
float  _elementHeight = 30 
)

Member Function Documentation

◆ DoLayoutList() [1/2]

◆ DoLayoutList() [2/2]

◆ DoList() [1/2]

void Calcatz.CookieCutter.DirectObjectReorderableList< T >.DoList ( Rect  rect)

◆ DoList() [2/2]

void Calcatz.CookieCutter.DirectObjectReorderableList< T >.DoList ( Rect  rect)

◆ DrawElementCallback()

delegate void Calcatz.CookieCutter.DirectObjectReorderableList< T >.DrawElementCallback ( Rect  rect,
IList  list,
int  index,
bool  active,
bool  focused 
)

◆ GetHeight() [1/2]

◆ GetHeight() [2/2]

◆ OnAdd() [1/2]

virtual void Calcatz.CookieCutter.DirectObjectReorderableList< T >.OnAdd ( ReorderableList  list,
int  index,
object  newElement 
)
protectedvirtual

◆ OnAdd() [2/2]

virtual void Calcatz.CookieCutter.DirectObjectReorderableList< T >.OnAdd ( ReorderableList  list,
int  index,
newElement 
)
protectedvirtual

◆ OnDrawElement() [1/2]

virtual void Calcatz.CookieCutter.DirectObjectReorderableList< T >.OnDrawElement ( Rect  rect,
int  index,
bool  active,
bool  focused 
)
protectedvirtual

◆ OnDrawElement() [2/2]

virtual void Calcatz.CookieCutter.DirectObjectReorderableList< T >.OnDrawElement ( Rect  rect,
int  index,
bool  active,
bool  focused 
)
protectedvirtual

◆ OnDrawElementBackground() [1/2]

virtual void Calcatz.CookieCutter.DirectObjectReorderableList< T >.OnDrawElementBackground ( Rect  _rect,
int  _index,
bool  _isActive,
bool  _isFocused,
object  _element,
float  _height 
)
protectedvirtual

◆ OnDrawElementBackground() [2/2]

virtual void Calcatz.CookieCutter.DirectObjectReorderableList< T >.OnDrawElementBackground ( Rect  _rect,
int  _index,
bool  _isActive,
bool  _isFocused,
_element,
float  _height 
)
protectedvirtual

◆ OnRemove() [1/2]

virtual void Calcatz.CookieCutter.DirectObjectReorderableList< T >.OnRemove ( ReorderableList  list,
int  index,
object  removedElement 
)
protectedvirtual

◆ OnRemove() [2/2]

virtual void Calcatz.CookieCutter.DirectObjectReorderableList< T >.OnRemove ( ReorderableList  list,
int  index,
removedElement 
)
protectedvirtual

◆ PrepareDoList()

◆ RenewElementHeight() [1/2]

void Calcatz.CookieCutter.DirectObjectReorderableList< T >.RenewElementHeight ( int  _index,
float  _height 
)
protected

◆ RenewElementHeight() [2/2]

void Calcatz.CookieCutter.DirectObjectReorderableList< T >.RenewElementHeight ( int  _index,
float  _height 
)

◆ SetHightLightBackgroundImage() [1/2]

virtual void Calcatz.CookieCutter.DirectObjectReorderableList< T >.SetHightLightBackgroundImage ( )
virtual

◆ SetHightLightBackgroundImage() [2/2]

virtual void Calcatz.CookieCutter.DirectObjectReorderableList< T >.SetHightLightBackgroundImage ( )
virtual

Member Data Documentation

◆ backgroundImage

Texture2D Calcatz.CookieCutter.DirectObjectReorderableList< T >.backgroundImage
protected

◆ customOnDrawElement [1/2]

Action<Rect, List<T>, int, bool, bool> Calcatz.CookieCutter.DirectObjectReorderableList< T >.customOnDrawElement = null

◆ customOnDrawElement [2/2]

◆ listRootObject

UnityEngine Object Calcatz.CookieCutter.DirectObjectReorderableList< T >.listRootObject
protected

◆ onPrepareDoList

System.Action Calcatz.CookieCutter.DirectObjectReorderableList< T >.onPrepareDoList = null

◆ reorderableList

ReorderableList Calcatz.CookieCutter.DirectObjectReorderableList< T >.reorderableList
protected

Property Documentation

◆ elementType

System.Type Calcatz.CookieCutter.DirectObjectReorderableList< T >.elementType
get

◆ list [1/2]

◆ list [2/2]