diff options
Diffstat (limited to 'ShiftOS.Frontend/GUI')
| -rw-r--r-- | ShiftOS.Frontend/GUI/Control.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ShiftOS.Frontend/GUI/Control.cs b/ShiftOS.Frontend/GUI/Control.cs index 6941b7b..43f7931 100644 --- a/ShiftOS.Frontend/GUI/Control.cs +++ b/ShiftOS.Frontend/GUI/Control.cs @@ -369,6 +369,16 @@ namespace ShiftOS.Frontend.GUI Invalidate(); } + public void RemoveControl(Control ctrl) + { + if(_children.Contains(ctrl)) + { + _children.Remove(ctrl); + ctrl._parent = null; + Invalidate(); + } + } + public Point PointToLocal(int x, int y) { return new GUI.Point(x - _x, y - _y); |
