Code: Select all
IGUIScrollBar* CGUIEnvironment::addScrollBar(bool horizontal, const core::rect<s32>& rectangle, IGUIElement* parent, s32 id)
Code: Select all
bool CGUIEnvironment::addScrollBar(CGUIScrollBar * scrollbar)
And with the former, there are always to much parameters in a function.
And I think the benefit of the former design is that, when there are essentially different scroll bars the different implementations could be encapsulated. Otherwise the latter is better than the former in every case, agree?