I'd read up on the concepts behind Immediate Mode GUIs; here's a handy tutorial: http://sol.gfxile.net/imgui/
You trade some flexibility and input latency for a simple imperative structure that is easy to implement.
You trade some flexibility and input latency for a simple imperative structure that is easy to implement.