NanoByte Structure Editor  0.4.10
WinForms library for building split-screen editors for data structures
NanoByte.StructureEditor.ListDescription< TContainer, TList > Class Template Reference

Describes a type of list in the structure. More...

Inheritance diagram for NanoByte.StructureEditor.ListDescription< TContainer, TList >:
NanoByte.StructureEditor.Description< TContainer > NanoByte.StructureEditor.IListDescription< TContainer, TList >

Public Member Functions

 ListDescription (Func< TContainer, IList< TList >> getList)
 Creates a new list description. More...
 
override IEnumerable< NodeGetNodesIn (TContainer container)
 Returns information about nodes of this type found in a specific instance of TContainer . More...
 
override IEnumerable< NodeCandidateGetCandidatesFor (TContainer container)
 Returns information about possible new child nodes of this type for a specific instance of TContainer . More...
 
IListDescription< TContainer, TList > AddElement< TElement, TEditor > (string name, TElement element, TEditor editor)
 Adds a list element type to the description.
 

Detailed Description

Describes a type of list in the structure.

Template Parameters
TContainerThe type of the container containing the list.
TListThe type of elements in the list.
Type Constraints
TContainer :class 
TList :class 

Constructor & Destructor Documentation

◆ ListDescription()

NanoByte.StructureEditor.ListDescription< TContainer, TList >.ListDescription ( Func< TContainer, IList< TList >>  getList)
inline

Creates a new list description.

Parameters
getListA callback for retrieving the list from a container.

Member Function Documentation

◆ GetCandidatesFor()

override IEnumerable<NodeCandidate> NanoByte.StructureEditor.ListDescription< TContainer, TList >.GetCandidatesFor ( TContainer  container)
virtual

Returns information about possible new child nodes of this type for a specific instance of TContainer .

Parameters
containerThe container instance to look at.

Implements NanoByte.StructureEditor.Description< TContainer >.

◆ GetNodesIn()

override IEnumerable<Node> NanoByte.StructureEditor.ListDescription< TContainer, TList >.GetNodesIn ( TContainer  container)
inlinevirtual

Returns information about nodes of this type found in a specific instance of TContainer .

Parameters
containerThe container instance to look in to.

Implements NanoByte.StructureEditor.Description< TContainer >.


The documentation for this class was generated from the following file: