Example #1
0
 public override void Add( APWidget item )
 {
     base.Add( item );
     if( layer != null ) {
         layer.Register( item );
     }
 }
Example #2
0
 private void OnChildRemoved( APWidget child )
 {
     if( ChildRemoved != null ) {
         ChildRemoved( this, new ContainerChildEvent( child ) );
     }
 }
Example #3
0
 public virtual void Remove( APWidget item )
 {
     children.Remove( item );
     item.Parent = null;
     OnChildRemoved( item );
 }
Example #4
0
 public virtual void Add( APWidget item )
 {
     children.Add( item );
     item.Parent = this;
     OnChildAdded( item );
 }
Example #5
0
 public void Register( APWidget widget )
 {
     registered.Add( widget );
 }
Example #6
0
 public APButton( APWidget parent, Rectangle _location )
     : base(_location)
 {
 }