void SetSizeOf(IWidget& wgt, const Size& s) { wgt.GetRenderer().SetSize(s); wgt.GetView().SetSize(s); CallEvent<Resize>(wgt, UIEventArgs(wgt)); }
void SetLocationOf(IWidget& wgt, const Point& pt) { wgt.GetView().SetLocation(pt); CallEvent<Move>(wgt, UIEventArgs(wgt)); }