[shpy-commit] r2824 - shpy/trunk/dist/shpy

mwh@codespeak.net mwh@codespeak.net
Sun, 18 Jan 2004 19:40:42 +0100 (MET)


Author: mwh
Date: Sun Jan 18 19:40:41 2004
New Revision: 2824

Added:
   shpy/trunk/dist/shpy/SKETCHES.txt
Log:
Just testing I can commit.


Added: shpy/trunk/dist/shpy/SKETCHES.txt
==============================================================================
--- (empty file)
+++ shpy/trunk/dist/shpy/SKETCHES.txt	Sun Jan 18 19:40:41 2004
@@ -0,0 +1,26 @@
+A high level plan for the pygame UI
+===================================
+
+The interface consists of a single window (SDL under all this,
+remember :-).  This is owned by an instance of the Terminal class.
+
+The screen is divided into a number (for the prototype, 1 :-)
+"InputCell", which for now we think of as a view of a file.
+
+Obviously a file view might be larger than the window, so each input
+cell knows which part of the view it's looking at.
+
+The terminal has a Cursor object, which indicates which InputCell is
+active (has focus, whatever).
+
+Drawing
+-------
+
+not too hard: the input cell knows the text it's displaying and which
+bit of it too display, so it renders this into a bitmap and blits it
+onto the screen.
+
+Event Handling
+--------------
+
+A much more interesting area...