public void SetFocus(GuiComponent component) { if (component == null) { return; } if (_focused != null) { _focused.OnLostFocus(); } _focused = component; component.OnFocused(); }
protected virtual void OnChildAdded(GuiComponent child) { }
public void AddChild(GuiComponent component) { _children.Add(component); OnChildAdded(component); }
public bool HasFocus(GuiComponent component) { return(_focused == component); }
public void Add(GuiComponent component) { _components.Add(component); }