Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Thinking about making a GUI library  (Read 5106 times)

0 Members and 1 Guest are viewing this topic.

N1ghtly

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Thinking about making a GUI library
« Reply #15 on: October 17, 2011, 04:50:41 pm »
Another question:

How important is it to have a base Widget class from which all derive?
I had two possibilities:

1. Declaring setPosition() and stuff as virtual functions

2. Not declaring them virtual and have callbacks like onSizeChange() which can be connected.

Help please, this is my first library :)
PS: Have a fully function PushButton class with callbacks and stuff!

 

anything