Button* Button::Create(Window *parent, const string_t &text, float x, float y, float w, float h) { Button *res = new Button(parent); res->Move(x, y); res->SetText(text); if( w >= 0 && h >= 0 ) { res->Resize(w, h); } return res; }