Hey forum,
I'm playing around with the idea of making a GUI library.
I have some design decisions to make and I brainstormed a bit while I was at school. I have some questions though:
- Is using sf::Shape for drawing the boxes a good idea?
- And should I derive from sf::Drawable or make a
void draw(sf::RenderWindow* window)
function?
- How could I stretch and shrink buttons if I'd use images. I know I could make one image part for the middle (which I can stretch) and one for the sides. Are there any other methods to do this?
- For event checking, what would be a better approach:
void checkEvent(const sf::Event& event) //which checks all the possibilites
Or
void onHover()
void onClick()
Which are to be called manually? I'm leaning more towards the first.
Thanks in advance.
PS: If it goes well, I'll ofcourse make it public so other users can benefit from it too

[/code]