public void RemoveChildDecorator( Control control, Decorator decorator ) { if ( control != null && decorator != null ) { control.RemoveDecorator( decorator ); UpdateHierarchyDecoratorData( control ); } }
public DecoratorItem( Decorator target ) : base() { m_label = new Label(); m_label.SetWidth( 100.0f, MetricsUnits.Percentage ); m_label.SetHeight( 16.0f ); AddChild( m_label ); SetWidth( 100.0f, MetricsUnits.Percentage ); Bind( target ); }
public void Release() { m_target = null; }
public void Bind( Decorator control ) { m_target = control; SetName(); }
void item_BoundDecoratorlSelected( Decorator decorator, int button ) { if ( BoundDecoratorlSelected != null ) { BoundDecoratorlSelected( m_target, decorator, button ); } }
void item_BoundDecoratorlSelected( Control control, Decorator decorator, int button ) { if ( button == 1 ) { RemoveChildDecorator( control, decorator ); } else if ( button == 0 ) { SetInspectorTarget( decorator ); } }