Mouse event: create shape structure; read mouse movements for data; store newly created shape on list of shape records, Keypress event if key =g then exit loop; else ignore; Ecpose event: refresh display by drawing each shape structure; Shut down system;Mouse event: create shape structure; read mouse movements for data; store newly created shape on list of shape records; KeyPress event: if key = 'q' then exit loop; else ignore; Ecpose event: refresh display by drawing each shape structure; ⑷ Shut down system;