Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6 tasks
SableRaf opened this issue Sep 22, 2022 · 2 comments
Open
6 tasks

Comments

@SableRaf
Copy link
Collaborator

SableRaf commented Sep 22, 2022

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 benfry/processing4#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 SableRaf changed the title Update the reference for new core methods that replaced the surface methods in Processing 4 Surface methods should be replaced by new core methods in the reference Sep 22, 2022
@SableRaf
Copy link
Collaborator Author

Can't fix this until processing/processing-doclet#1 is solved

@antriksh-9
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants