Better api for toolkit-level gui programming.