private Pointer GetCenter() { Pointer center = new Pointer(); int xCenter = HideButton.GetWidth() / 2 + HideButton.GetX(); int yCenter = HideButton.GetHeight() / 2 + HideButton.GetY(); center.SetPosition(xCenter, yCenter); return(center); }