示例#1
0
 internal void SetDesktop(LComponent comp)
 {
     if (comp.IsContainer())
     {
         LComponent[] child = ((LContainer)comp).GetComponents();
         for (int i = 0; i < child.Length; i++)
         {
             this.SetDesktop(child[i]);
         }
     }
     comp.SetDesktop(this);
 }
示例#2
0
        internal void SetComponentStat(LComponent comp, bool active)
        {
            if (this == Desktop.EMPTY_DESKTOP)
            {
                return;
            }

            if (!active)
            {
                if (this.hoverComponent == comp)
                {
                    this.ProcessTouchMotionEvent();
                }

                if (this.selectedComponent == comp)
                {
                    this.DeselectComponent();
                }

                this.clickComponent[0] = null;

                if (this.modal == comp)
                {
                    this.modal = null;
                }
            }
            else
            {
                this.ProcessTouchMotionEvent();
            }

            if (comp.IsContainer())
            {
                LComponent[] components = ((LContainer)comp).GetComponents();
                int          size       = ((LContainer)comp).GetComponentCount();
                for (int i = 0; i < size; i++)
                {
                    this.SetComponentStat(components[i], active);
                }
            }
        }
示例#3
0
		internal void SetComponentStat(LComponent comp, bool active) {
			if (this == Desktop.EMPTY_DESKTOP) {
				return;
			}
	
			if (!active) {
				if (this.hoverComponent == comp) {
					this.ProcessTouchMotionEvent();
				}
	
				if (this.selectedComponent == comp) {
					this.DeselectComponent();
				}
	
				this.clickComponent[0] = null;
	
				if (this.modal == comp) {
					this.modal = null;
				}
	
			} else {
				this.ProcessTouchMotionEvent();
			}
	
			if (comp.IsContainer()) {
				LComponent[] components = ((LContainer) comp).GetComponents();
				int size = ((LContainer) comp).GetComponentCount();
				for (int i = 0; i < size; i++) {
					this.SetComponentStat(components[i], active);
				}
			}
		}
示例#4
0
		internal void SetDesktop(LComponent comp) {
			if (comp.IsContainer()) {
				LComponent[] child = ((LContainer) comp).GetComponents();
				for (int i = 0; i < child.Length; i++) {
					this.SetDesktop(child[i]);
				}
			}
			comp.SetDesktop(this);
		}