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); }
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); } } }
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); } } }
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); }