IElementAdderMenuBuilder(TContext) Interface

Rotorz ReorderableList

IElementAdderMenuBuilderTContext Interface
Interface for building an IElementAdderMenu.

Namespace: Rotorz.ReorderableList
Assembly: Editor.ReorderableList (in Editor.ReorderableList.dll) Version: 0.0.0.0 (0.3.0.0)
Syntax
public interface IElementAdderMenuBuilder<TContext>
public interface IElementAdderMenuBuilder.<TContext>

Type Parameters

TContext
Type of the context object that elements can be added to.

The IElementAdderMenuBuilderTContext type exposes the following members.

Methods
  NameDescription
Public methodAddCustomCommand
Adds a custom command to the menu.
Public methodAddTypeFilter
Adds a filter function which determines whether types can be included or whether they need to be excluded.
Public methodGetMenu
Builds and returns a new IElementAdderMenu instance.
Public methodSetContractType
Sets contract type of the elements that can be included in the IElementAdderMenu. Only non-abstract class types that are assignable from the contractType will be included in the built menu.
Public methodSetElementAdder
Set the IElementAdderTContext implementation which is used when adding new elements to the context object.
Public methodSetTypeDisplayNameFormatter
Set the function that formats the display of type names in the user interface.
Top
See Also