Skip to content
Permalink
Browse files

added cbchain

  • Loading branch information...
Aliaksandr Shcherbin authored and ShchAlexander committed Nov 21, 2018
1 parent 85eb172 commit 68fd9ec938e30bbafc3682183356a3a8a7877802
Showing with 4,095 additions and 271 deletions.
  1. 0 {backend.opengl30 → backend.core}/.gitignore
  2. +1 −1 {backend → backend.core}/build.gradle
  3. +4 −0 backend.core/src/main/java/com/spinyowl/spinygui/backend/core/context/Context.java
  4. 0 .../spinygui/backend → backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/.gitkeep
  5. +1 −1 ...ckend → backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemCharEvent.java
  6. +1 −1 ...d → backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemCharModsEvent.java
  7. +1 −1 ... backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemCursorEnterEvent.java
  8. +1 −1 ... → backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemCursorPosEvent.java
  9. +1 −1 ...ckend → backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemDropEvent.java
  10. +1 −1 ...i/backend → backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemEvent.java
  11. +1 −1 ...kend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemFramebufferSizeEvent.java
  12. +1 −1 ...ackend → backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemKeyEvent.java
  13. +1 −1 ...→ backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemMouseClickEvent.java
  14. +1 −1 ...end → backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemScrollEvent.java
  15. +1 −1 ... backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemWindowCloseEvent.java
  16. +1 −1 ... backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemWindowFocusEvent.java
  17. +1 −1 ...ackend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemWindowIconifyEvent.java
  18. +1 −1 ... → backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemWindowPosEvent.java
  19. +1 −1 ...ackend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemWindowRefreshEvent.java
  20. +1 −1 ...→ backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/event/SystemWindowSizeEvent.java
  21. +2 −2 ....core/src/main/java/com/spinyowl/spinygui/backend/core}/event/processor/SystemEventProcessor.java
  22. +2 −2 ...i/backend → backend.core/src/main/java/com/spinyowl/spinygui/backend/core}/renderer/Renderer.java
  23. +13 −0 backend.core/src/main/java/module-info.java
  24. 0 {backend.vulkan → backend.glfwutil}/.gitignore
  25. +17 −0 backend.glfwutil/build.gradle
  26. +149 −0 backend.glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/CallbackKeeper.java
  27. +343 −0 backend.glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/DefaultCallbackKeeper.java
  28. +212 −0 ....glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/AbstractChainCallback.java
  29. +166 −0 backend.glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainCallback.java
  30. +10 −0 ...end.glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainCharCallback.java
  31. +10 −0 ...glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainCharModsCallback.java
  32. +10 −0 ...wutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainCursorEnterCallback.java
  33. +10 −0 ...lfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainCursorPosCallback.java
  34. +10 −0 ...end.glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainDropCallback.java
  35. +11 −0 ...nd.glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainErrorCallback.java
  36. +10 −0 ...l/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainFramebufferSizeCallback.java
  37. +11 −0 ...glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainJoystickCallback.java
  38. +10 −0 backend.glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainKeyCallback.java
  39. +11 −0 ....glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainMonitorCallback.java
  40. +10 −0 ...wutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainMouseButtonCallback.java
  41. +11 −0 ...d.glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainScrollCallback.java
  42. +10 −0 ...wutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainWindowCloseCallback.java
  43. +10 −0 ...rc/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainWindowContentScaleCallback.java
  44. +10 −0 ...wutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainWindowFocusCallback.java
  45. +10 −0 ...til/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainWindowIconifyCallback.java
  46. +10 −0 ...il/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainWindowMaximizeCallback.java
  47. +11 −0 ...lfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainWindowPosCallback.java
  48. +10 −0 ...til/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainWindowRefreshCallback.java
  49. +10 −0 ...fwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/IChainWindowSizeCallback.java
  50. +18 −0 ...glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainCharCallback.java
  51. +18 −0 ...util/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainCharModsCallback.java
  52. +18 −0 ...l/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainCursorEnterCallback.java
  53. +17 −0 ...til/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainCursorPosCallback.java
  54. +18 −0 ...glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainDropCallback.java
  55. +18 −0 ...lfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainErrorCallback.java
  56. +18 −0 ...c/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainFramebufferSizeCallback.java
  57. +18 −0 ...util/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainJoystickCallback.java
  58. +18 −0 ....glfwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainKeyCallback.java
  59. +18 −0 ...wutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainMonitorCallback.java
  60. +18 −0 ...l/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainMouseButtonCallback.java
  61. +18 −0 ...fwutil/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainScrollCallback.java
  62. +18 −0 ...l/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainWindowCloseCallback.java
  63. +25 −0 ...ain/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainWindowContentScaleCallback.java
  64. +18 −0 ...l/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainWindowFocusCallback.java
  65. +18 −0 ...src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainWindowIconifyCallback.java
  66. +24 −0 ...rc/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainWindowMaximizeCallback.java
  67. +18 −0 ...til/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainWindowPosCallback.java
  68. +18 −0 ...src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainWindowRefreshCallback.java
  69. +18 −0 ...il/src/main/java/com/spinyowl/spinygui/backend/glfwutil/cbchain/impl/ChainWindowSizeCallback.java
  70. +13 −0 backend.glfwutil/src/main/java/module-info.java
  71. +0 −10 backend.opengl30/build.gradle
  72. +0 −9 backend.opengl30/src/main/java/module-info.java
  73. +0 −4 backend.opengl30/src/main/java/org/liquidengine/legui/backend/opengl30/Renderer.java
  74. +2 −1 backend.opengl32/build.gradle
  75. +14 −15 backend.opengl32/src/main/java/com/spinyowl/spinygui/backend/opengl32/api/WindowOpenGL32.java
  76. +2 −2 ...2/src/main/java/com/spinyowl/spinygui/backend/opengl32/event/SystemEventProcessorForOpenGL32.java
  77. +10 −6 ...2/src/main/java/com/spinyowl/spinygui/backend/opengl32/service/SpinyGuiOpenGL32WindowService.java
  78. +1 −1 ...n/java/com/spinyowl/spinygui/backend/opengl32/service/internal/SpinyGuiOpenGL32ServiceThread.java
  79. +2 −1 backend.opengl32/src/main/java/module-info.java
  80. +0 −10 backend.vulkan/build.gradle
  81. +0 −8 backend.vulkan/src/main/java/module-info.java
  82. +0 −17 backend/.gitignore
  83. +0 −4 backend/src/main/java/com/spinyowl/spinygui/backend/context/Context.java
  84. +0 −13 backend/src/main/java/module-info.java
  85. +0 −122 core/src/main/java/com/spinyowl/spinygui/core/SpinyGuiInitializer.java
  86. +38 −3 core/src/main/java/com/spinyowl/spinygui/core/api/Window.java
  87. +5 −0 core/src/main/java/com/spinyowl/spinygui/core/component/Pre.java
  88. +17 −1 core/src/main/java/com/spinyowl/spinygui/core/component/base/Component.java
  89. +7 −9 core/src/main/java/com/spinyowl/spinygui/core/component/base/Container.java
  90. +5 −1 core/src/main/java/com/spinyowl/spinygui/core/{component/base → converter}/ComponentMapping.java
  91. +0 −1 core/src/main/java/com/spinyowl/spinygui/core/converter/ComponentMarshaller.java
  92. +6 −2 core/src/main/java/com/spinyowl/spinygui/core/converter/RawProcessor.java
  93. +15 −0 core/src/main/java/com/spinyowl/spinygui/core/event/WindowCloseEvent.java
  94. +9 −0 core/src/main/java/com/spinyowl/spinygui/core/event/listener/Listener.java
  95. +15 −0 ...src/main/java/com/spinyowl/spinygui/core/event/listener/impl/DefaultWindowCloseEventListener.java
  96. +2 −0 core/src/main/java/com/spinyowl/spinygui/core/service/WindowService.java
  97. +34 −0 core/src/main/java/com/spinyowl/spinygui/core/util/Reference.java
  98. +1 −1 demo.integrated/build.gradle
  99. +1 −1 demo.integrated/src/main/java/module-info.java
  100. +1 −0 demo.simple/src/main/java/com/spinyowl/spinygui/demo/Main.java
  101. +3 −5 logging.properties
  102. +2 −1 settings.gradle
  103. +1 −1 spinygui/build.gradle
  104. +1 −1 spinygui/src/main/java/module-info.java
  105. +120 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/opengl32/api/MonitorOpenGL32.java
  106. +84 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/opengl32/api/VideoModeOpenGL32.java
  107. +136 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/opengl32/api/WindowOpenGL32.java
  108. +16 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/opengl32/event/SystemEventProcessorForOpenGL32.java
  109. +108 −0 ...main/java/com/spinyowl/spinygui/backend/glfw/opengl32/service/SpinyGuiOpenGL32MonitorService.java
  110. +22 −0 ...ain/java/com/spinyowl/spinygui/backend/glfw/opengl32/service/SpinyGuiOpenGL32ServiceProvider.java
  111. +102 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/opengl32/service/SpinyGuiOpenGL32WindowService.java
  112. +74 −0 ...in/java/com/spinyowl/spinygui/backend/glfw/opengl32/service/internal/SpinyGuiOpenGL32Service.java
  113. +198 −0 ...a/com/spinyowl/spinygui/backend/glfw/opengl32/service/internal/SpinyGuiOpenGL32ServiceThread.java
  114. +147 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/CallbackKeeper.java
  115. +341 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/DefaultCallbackKeeper.java
  116. +212 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/AbstractChainCallback.java
  117. +166 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainCallback.java
  118. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainCharCallback.java
  119. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainCharModsCallback.java
  120. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainCursorEnterCallback.java
  121. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainCursorPosCallback.java
  122. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainDropCallback.java
  123. +11 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainErrorCallback.java
  124. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainFramebufferSizeCallback.java
  125. +11 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainJoystickCallback.java
  126. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainKeyCallback.java
  127. +11 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainMonitorCallback.java
  128. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainMouseButtonCallback.java
  129. +11 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainScrollCallback.java
  130. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainWindowCloseCallback.java
  131. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainWindowContentScaleCallback.java
  132. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainWindowFocusCallback.java
  133. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainWindowIconifyCallback.java
  134. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainWindowMaximizeCallback.java
  135. +11 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainWindowPosCallback.java
  136. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainWindowRefreshCallback.java
  137. +10 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/IChainWindowSizeCallback.java
  138. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainCharCallback.java
  139. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainCharModsCallback.java
  140. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainCursorEnterCallback.java
  141. +17 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainCursorPosCallback.java
  142. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainDropCallback.java
  143. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainErrorCallback.java
  144. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainFramebufferSizeCallback.java
  145. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainJoystickCallback.java
  146. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainKeyCallback.java
  147. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainMonitorCallback.java
  148. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainMouseButtonCallback.java
  149. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainScrollCallback.java
  150. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainWindowCloseCallback.java
  151. +25 −0 ...in/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainWindowContentScaleCallback.java
  152. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainWindowFocusCallback.java
  153. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainWindowIconifyCallback.java
  154. +24 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainWindowMaximizeCallback.java
  155. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainWindowPosCallback.java
  156. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainWindowRefreshCallback.java
  157. +18 −0 src/main/java/com/spinyowl/spinygui/backend/glfw/util/cbchain/impl/ChainWindowSizeCallback.java
  158. +34 −0 src/main/java/com/spinyowl/spinygui/core/util/Reference.java
  159. +49 −0 src/main/java/module-info.java
File renamed without changes.
@@ -12,4 +12,4 @@ dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}

ext.moduleName = 'com.spinyowl.spinygui.backend'
ext.moduleName = 'com.spinyowl.spinygui.backend.core'
@@ -0,0 +1,4 @@
package com.spinyowl.spinygui.backend.core.context;

public class Context {
}
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

/**
* Marker interface that defines tree of system events.
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,4 +1,4 @@
package com.spinyowl.spinygui.backend.event;
package com.spinyowl.spinygui.backend.core.event;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -1,6 +1,6 @@
package com.spinyowl.spinygui.backend.event.processor;
package com.spinyowl.spinygui.backend.core.event.processor;

import com.spinyowl.spinygui.backend.event.SystemEvent;
import com.spinyowl.spinygui.backend.core.event.SystemEvent;

public interface SystemEventProcessor {

@@ -1,6 +1,6 @@
package com.spinyowl.spinygui.backend.renderer;
package com.spinyowl.spinygui.backend.core.renderer;

import com.spinyowl.spinygui.backend.context.Context;
import com.spinyowl.spinygui.backend.core.context.Context;
import com.spinyowl.spinygui.core.component.Frame;

public interface Renderer {
@@ -0,0 +1,13 @@
/**
* Created by ShchAlexander on 09.08.2018.
*/
module com.spinyowl.spinygui.backend.core {
requires transitive com.spinyowl.spinygui.core;

requires commons.lang3;

exports com.spinyowl.spinygui.backend.core.renderer;
exports com.spinyowl.spinygui.backend.core.event;
exports com.spinyowl.spinygui.backend.core.event.processor;
exports com.spinyowl.spinygui.backend.core.context;
}
File renamed without changes.
@@ -0,0 +1,17 @@
plugins {
id 'java-library'
}

dependencies {
compile group: 'org.lwjgl', name: 'lwjgl', version: lwjgl_version
compile group: 'org.lwjgl', name: 'lwjgl', version: lwjgl_version, changing: true, classifier: 'natives-windows'
compile group: 'org.lwjgl', name: 'lwjgl', version: lwjgl_version, changing: true, classifier: 'natives-linux'
compile group: 'org.lwjgl', name: 'lwjgl', version: lwjgl_version, changing: true, classifier: 'natives-macos'

compile group: 'org.lwjgl', name: 'lwjgl-glfw', version: lwjgl_version
compile group: 'org.lwjgl', name: 'lwjgl-glfw', version: lwjgl_version, changing: true, classifier: 'natives-windows'
compile group: 'org.lwjgl', name: 'lwjgl-glfw', version: lwjgl_version, changing: true, classifier: 'natives-linux'
compile group: 'org.lwjgl', name: 'lwjgl-glfw', version: lwjgl_version, changing: true, classifier: 'natives-macos'
}

ext.moduleName = 'com.spinyowl.spinygui.backend.glfwutil'
@@ -0,0 +1,149 @@
package com.spinyowl.spinygui.backend.glfwutil;

import com.spinyowl.spinygui.backend.glfwutil.cbchain.*;

import static org.lwjgl.glfw.GLFW.*;

public interface CallbackKeeper {

static void registerCallbacks(long window, CallbackKeeper keeper) {
glfwSetCharCallback(window, keeper.getChainCharCallback());
glfwSetCharModsCallback(window, keeper.getChainCharModsCallback());
glfwSetCursorEnterCallback(window, keeper.getChainCursorEnterCallback());
glfwSetCursorPosCallback(window, keeper.getChainCursorPosCallback());
glfwSetDropCallback(window, keeper.getChainDropCallback());
glfwSetFramebufferSizeCallback(window, keeper.getChainFramebufferSizeCallback());
glfwSetKeyCallback(window, keeper.getChainKeyCallback());
glfwSetMouseButtonCallback(window, keeper.getChainMouseButtonCallback());
glfwSetScrollCallback(window, keeper.getChainScrollCallback());
glfwSetWindowCloseCallback(window, keeper.getChainWindowCloseCallback());
glfwSetWindowContentScaleCallback(window, keeper.getChainWindowContentScaleCallback());
glfwSetWindowFocusCallback(window, keeper.getChainWindowFocusCallback());
glfwSetWindowIconifyCallback(window, keeper.getChainWindowIconifyCallback());
glfwSetWindowMaximizeCallback(window, keeper.getChainWindowMaximizeCallback());
glfwSetWindowPosCallback(window, keeper.getChainWindowPosCallback());
glfwSetWindowRefreshCallback(window, keeper.getChainWindowRefreshCallback());
glfwSetWindowSizeCallback(window, keeper.getChainWindowSizeCallback());
}

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWCharCallbackI} instances.
*
* @return chain char callback.
*/
IChainCharCallback getChainCharCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWDropCallbackI} instances.
*
* @return chain char callback.
*/
IChainDropCallback getChainDropCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWKeyCallbackI} instances.
*
* @return chain char callback.
*/
IChainKeyCallback getChainKeyCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWScrollCallbackI} instances.
*
* @return chain char callback.
*/
IChainScrollCallback getChainScrollCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWCharModsCallbackI} instances.
*
* @return chain char callback.
*/
IChainCharModsCallback getChainCharModsCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWCursorEnterCallbackI} instances.
*
* @return chain char callback.
*/
IChainCursorEnterCallback getChainCursorEnterCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWFramebufferSizeCallbackI} instances.
*
* @return chain char callback.
*/
IChainFramebufferSizeCallback getChainFramebufferSizeCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWMouseButtonCallbackI} instances.
*
* @return chain char callback.
*/
IChainMouseButtonCallback getChainMouseButtonCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWCursorPosCallbackI} instances.
*
* @return chain char callback.
*/
IChainCursorPosCallback getChainCursorPosCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWWindowCloseCallbackI} instances.
*
* @return chain char callback.
*/
IChainWindowCloseCallback getChainWindowCloseCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWWindowFocusCallbackI} instances.
*
* @return chain char callback.
*/
IChainWindowFocusCallback getChainWindowFocusCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWWindowIconifyCallbackI} instances.
*
* @return chain char callback.
*/
IChainWindowIconifyCallback getChainWindowIconifyCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWWindowPosCallbackI} instances.
*
* @return chain char callback.
*/
IChainWindowPosCallback getChainWindowPosCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWWindowRefreshCallbackI} instances.
*
* @return chain char callback.
*/
IChainWindowRefreshCallback getChainWindowRefreshCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWWindowSizeCallbackI} instances.
*
* @return chain char callback.
*/
IChainWindowSizeCallback getChainWindowSizeCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWWindowContentScaleCallbackI} instances.
*
* @return chain char callback.
*/
IChainWindowContentScaleCallback getChainWindowContentScaleCallback();

/**
* Returns chain callback used to keep {@link org.lwjgl.glfw.GLFWWindowMaximizeCallbackI} instances.
*
* @return chain char callback.
*/
IChainWindowMaximizeCallback getChainWindowMaximizeCallback();


}
Oops, something went wrong.

0 comments on commit 68fd9ec

Please sign in to comment.
You can’t perform that action at this time.