Axiom.Samples.SdkTrayManager.DestroyWidget C# (CSharp) Метод

DestroyWidget() публичный Метод

Destroys a widget.
public DestroyWidget ( Widget widget ) : void
widget Widget
Результат void
		public void DestroyWidget( Widget widget )
		{
			if ( widget == null )
				new AxiomException( "Widget does not exist,TrayManager.DestroyWidget" );

			// in case special widgets are destroyed manually, set them to 0
			if ( widget == Logo )
				Logo = null;
			else if ( widget == StatsPanel )
				StatsPanel = null;
			else if ( widget == mFpsLabel )
				mFpsLabel = null;

			mTrays[ (int)widget.TrayLocation ].RemoveChild( widget.Name );

			WidgetList wList = mWidgets[ (int)widget.TrayLocation ];
			wList.Remove( widget );
			if ( widget == ExpandedMenu )
				ExpandedMenu = null;

			widget.Cleanup();

			mWidgetDeathRow.Add( widget );

			AdjustTrays();
		}

Same methods

SdkTrayManager::DestroyWidget ( String name ) : void
SdkTrayManager::DestroyWidget ( TrayLocation trayLoc, String name ) : void
SdkTrayManager::DestroyWidget ( TrayLocation trayLoc, int place ) : void