Cis120 spring 2011 module gctx graphics contexts

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: o that we can re- use the funcZons that draw different widgets (bu[ons, check boxes, text, etc.) in different places on the window? CIS120/ Spring 2011 Challenge 1: Widget Layout •  Widgets are “things drawn on the screen”. How to make them locaZon independent. •  Idea: Use a graphics context to make drawing primiZves relaZve to the widget’s local coordinates. ApplicaZon Paint.ml GUI Library NaZve graphics library CIS120/ Spring 2012 Eventloop.ml Widget.ml Gctx.ml...
View Full Document

Ask a homework question - tutors are online