Take a look at this article it seems to cover the basics rather decently as well There are also a few GUI libraries for SFML that you might be interested in looking at their source to see how they designed things as well.
For my simple UI I go with a design similar to what Trienco described. My base frame has everything a generic frame would need, with sliders, buttons, ect. containing specific functionality. A complex UI is then just broken down into simpler elements making it much easier to create. Mouse interaction is just handled using simple virtual functions (Like OnMouseDown, OnDragStart, ect) since UI interaction was written with C++ in mind. It feels a little hacky but it gets the job done for right now Good luck!
AnnaMarieMember Since 30 Jan 2011
Offline Last Active Today, 01:31 AM
- Group GDNet+
- Active Posts 35
- Profile Views 3,291
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday May 19
All things programming and game development :)