Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added gradle properties, removed unnecessary src
- Loading branch information
Showing
72 changed files
with
79 additions
and
2,484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
/.idea/ | ||
/gradle.properties | ||
**/build/* | ||
**/target/* | ||
/.gradle/ | ||
|
17 changes: 3 additions & 14 deletions
17
...d.core/src/main/java/com/spinyowl/spinygui/backend/core/event/SystemWindowCloseEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
package com.spinyowl.spinygui.backend.core.event; | ||
|
||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
import com.spinyowl.spinygui.core.api.Window; | ||
|
||
/** | ||
* Created by Shcherbin Alexander on 6/10/2016. | ||
*/ | ||
public class SystemWindowCloseEvent implements SystemEvent { | ||
|
||
public final long window; | ||
public final Window window; | ||
|
||
public SystemWindowCloseEvent(long window) { | ||
public SystemWindowCloseEvent(Window window) { | ||
this.window = window; | ||
} | ||
|
||
public long getWindow() { | ||
return window; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) | ||
.append("window", window) | ||
.toString(); | ||
} | ||
} |
15 changes: 3 additions & 12 deletions
15
...d.core/src/main/java/com/spinyowl/spinygui/backend/core/event/SystemWindowFocusEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,18 @@ | ||
package com.spinyowl.spinygui.backend.core.event; | ||
|
||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
import com.spinyowl.spinygui.core.api.Window; | ||
|
||
/** | ||
* Created by Shcherbin Alexander on 6/10/2016. | ||
*/ | ||
public class SystemWindowFocusEvent implements SystemEvent { | ||
|
||
public final long window; | ||
public final Window window; | ||
public final boolean focused; | ||
|
||
public SystemWindowFocusEvent(long window, boolean focused) { | ||
public SystemWindowFocusEvent(Window window, boolean focused) { | ||
this.window = window; | ||
this.focused = focused; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) | ||
.append("window", window) | ||
.append("focused", focused) | ||
.toString(); | ||
} | ||
|
||
} |
15 changes: 3 additions & 12 deletions
15
...core/src/main/java/com/spinyowl/spinygui/backend/core/event/SystemWindowIconifyEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,18 @@ | ||
package com.spinyowl.spinygui.backend.core.event; | ||
|
||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
import com.spinyowl.spinygui.core.api.Window; | ||
|
||
/** | ||
* Created by Shcherbin Alexander on 6/10/2016. | ||
*/ | ||
public class SystemWindowIconifyEvent implements SystemEvent { | ||
|
||
public final long window; | ||
public final Window window; | ||
public final boolean iconified; | ||
|
||
public SystemWindowIconifyEvent(long window, boolean iconified) { | ||
public SystemWindowIconifyEvent(Window window, boolean iconified) { | ||
this.window = window; | ||
this.iconified = iconified; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) | ||
.append("iconified", iconified) | ||
.append("window", window) | ||
.toString(); | ||
} | ||
|
||
} |
18 changes: 4 additions & 14 deletions
18
...end.core/src/main/java/com/spinyowl/spinygui/backend/core/event/SystemWindowPosEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,20 @@ | ||
package com.spinyowl.spinygui.backend.core.event; | ||
|
||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
import com.spinyowl.spinygui.core.api.Window; | ||
|
||
/** | ||
* Created by Shcherbin Alexander on 6/10/2016. | ||
*/ | ||
public class SystemWindowPosEvent implements SystemEvent { | ||
|
||
public final long window; | ||
public final Window window; | ||
public final int posX; | ||
public final int posY; | ||
|
||
public SystemWindowPosEvent(long window, int posX, int posY) { | ||
public SystemWindowPosEvent(Window window, int posX, int posY) { | ||
this.window = window; | ||
this.posX = posX; | ||
this.posY = posY; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) | ||
.append("window", window) | ||
.append("posX", posX) | ||
.append("posY", posY) | ||
.toString(); | ||
} | ||
|
||
|
||
} |
14 changes: 3 additions & 11 deletions
14
...core/src/main/java/com/spinyowl/spinygui/backend/core/event/SystemWindowRefreshEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
package com.spinyowl.spinygui.backend.core.event; | ||
|
||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
import com.spinyowl.spinygui.core.api.Window; | ||
|
||
/** | ||
* Created by Shcherbin Alexander on 6/10/2016. | ||
*/ | ||
public class SystemWindowRefreshEvent implements SystemEvent { | ||
|
||
public final long window; | ||
public final Window window; | ||
|
||
public SystemWindowRefreshEvent(long window) { | ||
public SystemWindowRefreshEvent(Window window) { | ||
this.window = window; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) | ||
.append("window", window) | ||
.toString(); | ||
} | ||
} |
16 changes: 3 additions & 13 deletions
16
...nd.core/src/main/java/com/spinyowl/spinygui/backend/core/event/SystemWindowSizeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,20 @@ | ||
package com.spinyowl.spinygui.backend.core.event; | ||
|
||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
import com.spinyowl.spinygui.core.api.Window; | ||
|
||
/** | ||
* Created by Shcherbin Alexander on 6/10/2016. | ||
*/ | ||
public class SystemWindowSizeEvent implements SystemEvent { | ||
|
||
public final long window; | ||
public final Window window; | ||
public final int width; | ||
public final int height; | ||
|
||
public SystemWindowSizeEvent(long window, int width, int height) { | ||
public SystemWindowSizeEvent(Window window, int width, int height) { | ||
this.window = window; | ||
this.width = width; | ||
this.height = height; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) | ||
.append("window", window) | ||
.append("width", width) | ||
.append("height", height) | ||
.toString(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
...in/java/com/spinyowl/spinygui/backend/opengl32/event/SystemEventProcessorForOpenGL32.java
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
.../src/main/java/com/spinyowl/spinygui/backend/opengl32/event/WindowCloseEventListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.spinyowl.spinygui.backend.opengl32.event; | ||
|
||
import com.spinyowl.spinygui.backend.core.event.SystemWindowCloseEvent; | ||
import com.spinyowl.spinygui.backend.core.event.processor.SystemEventProcessor; | ||
import com.spinyowl.spinygui.backend.opengl32.service.SpinyGuiOpenGL32WindowService; | ||
import org.lwjgl.glfw.GLFWWindowCloseCallback; | ||
|
||
public class WindowCloseEventListener extends GLFWWindowCloseCallback { | ||
@Override | ||
public void invoke(long window) { | ||
SystemEventProcessor.getInstance().pushEvent(new SystemWindowCloseEvent(SpinyGuiOpenGL32WindowService.getInstance().getWindow(window))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lwjgl_version=3.2.1-SNAPSHOT |
Oops, something went wrong.