public GuiTreeviewRowRenderer( IGuiLayout guiLayout, ITreeviewIconRenderer <TSource> iconRenderer, IRowClickableLocations <TSource> rowClickableLocations, ITreeviewHierarchyLinesRenderer <TSource> hierarchyLinesRenderer) { if (guiLayout == null) { throw new ArgumentNullException("guiLayout"); } if (iconRenderer == null) { throw new ArgumentNullException("iconRenderer"); } if (rowClickableLocations == null) { throw new ArgumentNullException("rowClickableLocations"); } if (hierarchyLinesRenderer == null) { throw new ArgumentNullException("hierarchyLinesRenderer"); } this.guiLayout = guiLayout; this.iconRenderer = iconRenderer; this.rowClickableLocations = rowClickableLocations; this.hierarchyLinesRenderer = hierarchyLinesRenderer; }
public GuiTreeviewRenderer( IGuiLayout guiLayout, IRowClickableLocations <TSource> rowClickableLocations, ICachingObserver <TSource> itemCache, ITreeviewRowRenderer <TSource> treeviewRowRenderer) { if (guiLayout == null) { throw new ArgumentNullException("guiLayout"); } if (rowClickableLocations == null) { throw new ArgumentNullException("rowClickableLocations"); } if (itemCache == null) { throw new ArgumentNullException("itemCache"); } if (treeviewRowRenderer == null) { throw new ArgumentNullException("treeviewRowRenderer"); } this.guiLayout = guiLayout; this.rowClickableLocations = rowClickableLocations; this.itemCache = itemCache; this.treeviewRowRenderer = treeviewRowRenderer; this.itemCache = itemCache; }
public Treeview_DataRecorder(IGuiLayout guiLayout) { if (guiLayout == null) { throw new ArgumentNullException("guiLayout"); } this._guiLayout = guiLayout; this.toogleVisible = (Texture2D)Resources.Load("Images/Treeview/agg-treeview-VISIBLE", typeof(Texture2D)); this.toogleNotVisible = (Texture2D)Resources.Load("Images/Treeview/agg-NOT_VISIBLE", typeof(Texture2D)); }
private void InitaliseTreeview() { this.gui = new GuiWrapper(); this.guiLayout = new GuiLayoutWrapper(); this.log = new UnityLog(); this.rowClickableLocations = new RowClickableLocations <Treeview_DataModel>(); this.rowContentClicker = new RowContentClicker <Treeview_DataModel>(); this.rowExpanderClicker = new RowExpanderClicker <Treeview_DataModel>(); this.rowContentActivator = new RowContentActivator <Treeview_DataModel>(); this.cachingObserver = new CachingObserver <Treeview_DataModel>(this.log); this.rowInteraction = new RowInteraction <Treeview_DataModel>(rowClickableLocations, rowExpanderClicker, rowContentClicker, rowContentActivator); }