Gexng the mouse posizon whether the mouse buon is

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: GUI ApplicaZons CIS120/ Spring 2012 Step #1: Understand the Problem •  What are the concepts involved in GUI libraries and how do they relate to each other? CIS120/ Spring 2011 Designing a GUI •  OCaml’s Graphics library* provides very simple primiZves for: –  CreaZng a window –  Drawing various shapes: points, lines, text, rectangles, circles, etc. –  GeXng the mouse posiZon, whether the mouse bu[on is pressed, what key is pressed, etc. •  See •  How do we go from that to a funcZoning GUI? *PragmaZc note: when compiling a program that uses the Graphics module, add graphics.cmxa (for naZve compilaZon) or graphics.cma (for bytecode compilaZo...
View Full Document

This document was uploaded on 11/24/2013.

Ask a homework question - tutors are online