 
   deinit { SDL_DestroyTexture(texture) }
 
+}
+
+
+public struct CellPoint {
+  var x: Int
+  var y: Int
 }
 
 

    self.height = Int((height - doublePadding) / cellHeight)
  }

}

          p("mouse button down \(ev.button.x) \(ev.button.y) \(ev.button.clicks)")
        } else if ev.type == MOUSEBUTTONUP {
          p("mouse button up \(ev.button.x) \(ev.button.y) \(ev.button.clicks)")
          p("mainDiv \(mainDiv.lastx) \(mainDiv.lasty) \(mainDiv.lastSize.width) \(mainDiv.lastSize.height)")
          let cp = textGrid.pointToCell(ev.button.x, y: ev.button.y)
          p("cellPoint \(cp)")
        } else if ev.type == TEXTINPUT {
          p("text input \(ev.text)")
        } else if ev.type == QUIT {
