propane 3.3.1-java → 3.4.0-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,11 +22,12 @@
22
22
 
23
23
  package processing.core;
24
24
 
25
- import java.awt.*;
26
-
25
+ import java.awt.Desktop;
26
+ import java.awt.Image;
27
+ import java.awt.Taskbar;
27
28
 
28
29
  /**
29
- * Deal with issues related to Mac OS window behavior.
30
+ * Deal with issues related to Mac OS window behaviour.
30
31
  *
31
32
  * We have to register a quit handler to safely shut down the sketch,
32
33
  * otherwise OS X will just kill the sketch when a user hits Cmd-Q.
@@ -56,11 +57,9 @@ public class ThinkDifferent {
56
57
  * @param sketch The sketch whose quit handler callback should be set.
57
58
  */
58
59
  static public void init(final PApplet sketch) {
59
- getDesktop().setQuitHandler((event, quitResponse) -> {
60
- sketch.exit();
61
-
62
- boolean noKnownCrash = PApplet.uncaughtThrowable == null;
63
-
60
+ getDesktop().setQuitHandler((var event, var quitResponse) -> {
61
+ sketch.exit();
62
+ var noKnownCrash = PApplet.uncaughtThrowable == null;
64
63
  if (noKnownCrash && !attemptedQuit) { // haven't tried yet
65
64
  quitResponse.cancelQuit(); // tell OS X we'll handle this
66
65
  attemptedQuit = true;
@@ -111,10 +110,4 @@ public class ThinkDifferent {
111
110
 
112
111
  return desktop;
113
112
  }
114
-
115
-
116
- // Instead, just use Application.getApplication() inside your app
117
- // static public Application getApplication() {
118
- // return desktop;
119
- // }
120
113
  }
@@ -28,7 +28,7 @@ public class Event {
28
28
 
29
29
  // These correspond to the java.awt.Event modifiers (not to be confused with
30
30
  // the newer getModifiersEx), though they're not guaranteed to in the future.
31
- static public final int SHIFT = 1 << 0;
31
+ static public final int SHIFT = 1;
32
32
  static public final int CTRL = 1 << 1;
33
33
  static public final int META = 1 << 2;
34
34
  static public final int ALT = 1 << 3;
@@ -52,11 +52,12 @@ public class Event {
52
52
  }
53
53
 
54
54
  /**
55
- * Get the platform-native event object. This might be the java.awt event on
56
- * the desktop, though if you're using OpenGL on the desktop it'll be a NEWT
57
- * event that JOGL uses. Android events are something else altogether.
58
- * Bottom line, use this only if you know what you're doing, and don't make
59
- * assumptions about the class type.
55
+ * Get the platform-native event object.This might be the java.awt event on
56
+ the desktop, though if you're using OpenGL on the desktop it'll be a NEWT
57
+ event that JOGL uses. Android events are something else altogether.
58
+ Bottom line, use this only if you know what you're doing, and don't make
59
+ assumptions about the class type.
60
+ * @return
60
61
  */
61
62
  public Object getNative() {
62
63
  return nativeObject;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: propane
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.1
4
+ version: 3.4.0
5
5
  platform: java
6
6
  authors:
7
7
  - monkstone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-05 00:00:00.000000000 Z
11
+ date: 2019-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.10'
33
+ version: '5.11'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.10'
40
+ version: '5.11'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: arcball
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -70,7 +70,9 @@ files:
70
70
  - ".github/ISSUE_TEMPLATE.md"
71
71
  - ".gitignore"
72
72
  - ".mvn/extensions.xml"
73
+ - ".mvn/wrapper/MavenWrapperDownloader.java"
73
74
  - ".mvn/wrapper/maven-wrapper.properties"
75
+ - ".travis.yml"
74
76
  - ".yardopts"
75
77
  - CHANGELOG.md
76
78
  - Gemfile
@@ -89,7 +91,7 @@ files:
89
91
  - lib/jogl-all-natives-macosx-universal.jar
90
92
  - lib/jogl-all-natives-windows-amd64.jar
91
93
  - lib/jogl-all.jar
92
- - lib/propane-3.3.0.jar
94
+ - lib/propane-3.4.0.jar
93
95
  - lib/propane.rb
94
96
  - lib/propane/app.rb
95
97
  - lib/propane/creators/sketch_class.rb
@@ -288,8 +290,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
288
290
  - !ruby/object:Gem::Version
289
291
  version: '0'
290
292
  requirements:
291
- - java runtime >= 11.0.1+
292
- rubygems_version: 3.0.3
293
+ - java runtime >= 11.0.2+
294
+ rubygems_version: 3.0.4
293
295
  signing_key:
294
296
  specification_version: 4
295
297
  summary: ruby implementation of processing-4.0 on MacOS, linux and windows (64bit