vydd / sketch

A Common Lisp framework for the creation of electronic art, visual design, game prototyping, game making, computer graphics, exploration of human-computer interaction, and more.
MIT License
1.4k stars 67 forks source link

Add RESIZABLE slot to the SKETCH class #107

Closed Gleefre closed 11 months ago

Gleefre commented 11 months ago

Makes it possible to specify whether the sketch should be resizable or not by providing a binding in defsketch. For example:

(defsketch foo ((resizable t))
  (text (format nil "Resizable! Current size: ~Ax~A" width height) 0 0))

foo will be resizable by default (unless it is turned off by providing :resizable nil to make-intstance)