processing-website icon indicating copy to clipboard operation
processing-website copied to clipboard

Surface methods should be replaced by new core methods in the reference

Open SableRaf opened this issue 3 years ago • 2 comments

Processing 4 added new core functions to replace the surface methods as can be seen in the Beta 5 and Beta 7 release notes. These changes are also mentioned here https://github.com/processing/processing4/issues/53

The reference needs to be updated to reflect those updates:

  • [ ] windowResize(w, h) replaces surface.setSize(w, h)
  • [ ] windowResizable() replaces surface.setResizable() (reference)
  • [ ] windowMove(x, y) replaces surface.setLocation(x, y) (reference)
  • [ ] windowTitle() replaces surface.setTitle() (reference)
  • [ ] new windowResized() event handler
  • [ ] new windowMoved() event handler

In case you want to contribute to this task, here is how to edit the reference.

Note: surface methods are still backwards compatible but you are encouraged to use the new methods for future sketches

SableRaf avatar Sep 22 '22 08:09 SableRaf

Can't fix this until https://github.com/processing/processing-doclet/issues/1 is solved

SableRaf avatar Oct 20 '22 08:10 SableRaf

Hey @SableRaf I want to work on this issue. Please assign it to me.

antriksh-9 avatar Dec 09 '23 18:12 antriksh-9