Class CeresNodeSearchWindow
Inheritance
object
CeresNodeSearchWindow
Implements
ISearchWindowProvider
Assembly: cs.temp.dll.dll
Syntax
public abstract class CeresNodeSearchWindow : ScriptableObject, ISearchWindowProvider
Properties
Context
Declaration
public NodeSearchContext Context { get; }
Property Value
GraphView
Declaration
public CeresGraphView GraphView { get; }
Property Value
Height
Declaration
public float Height { get; protected set; }
Property Value
Width
Declaration
public float Width { get; protected set; }
Property Value
Methods
CanShowType(Type, NodeSearchContext)
Declaration
protected static bool CanShowType(Type type, NodeSearchContext context)
Parameters
Returns
ConnectRequestPort(ICeresNodeView)
Connect request port from Context with new created node view
Declaration
protected virtual bool ConnectRequestPort(ICeresNodeView nodeView)
Parameters
Returns
CreateGenericNodeView(CeresNodeSearchEntryData)
Create node view from entry data and allowed construct generic node instance
Declaration
public ICeresNodeView CreateGenericNodeView(CeresNodeSearchEntryData entryData)
Parameters
Returns
CreateNodeView(CeresNodeSearchEntryData)
Create node view from entry data by current Context
Declaration
public ICeresNodeView CreateNodeView(CeresNodeSearchEntryData entryData)
Parameters
Returns
CreateNonGenericNodeView(CeresNodeSearchEntryData)
Create node view from entry data and not allowed construct generic node instance
Declaration
public ICeresNodeView CreateNonGenericNodeView(CeresNodeSearchEntryData entryData)
Parameters
Returns
CreateSearchTree(SearchWindowContext)
Declaration
public abstract List<SearchTreeEntry> CreateSearchTree(SearchWindowContext context)
Parameters
Type |
Name |
Description |
SearchWindowContext |
context |
|
Returns
Type |
Description |
System.Collections.Generic.List<T><SearchTreeEntry> |
|
Initialize(CeresGraphView, NodeSearchContext)
Declaration
public void Initialize(CeresGraphView graphView, NodeSearchContext context)
Parameters
OnInitialize()
Declaration
protected virtual void OnInitialize()
OnSelectEntry(CeresNodeSearchEntryData, Rect)
Declaration
protected virtual bool OnSelectEntry(CeresNodeSearchEntryData entryData, Rect rect)
Parameters
Returns
OnSelectEntry(SearchTreeEntry, SearchWindowContext)
Declaration
public virtual bool OnSelectEntry(SearchTreeEntry searchTreeEntry, SearchWindowContext context)
Parameters
Type |
Name |
Description |
SearchTreeEntry |
searchTreeEntry |
|
SearchWindowContext |
context |
|
Returns
SearchTypes(Type[], NodeSearchContext)
Util function for searching types grouped by
Declaration
public static (List<IGrouping<string, Type>>, List<Type>) SearchTypes(Type[] baseTypes, NodeSearchContext nodeSearchContext)
Parameters
Returns
Type |
Description |
(System.Collections.Generic.List<T><System.Linq.IGrouping<TKey, TElement><string, Type>>, System.Collections.Generic.List<T><Type>) |
|
Implements
ISearchWindowProvider