generally it depends. if it's an immediate mode gui, then you pass those state 
variables every time you draw, and the internal system checks if drawing is 
needed. otherwise, the traditional mode is triggering an event, that has user 
code to change the instance variables, and then calls for a redraw, again 
passing that state.

Reply via email to