sfml3-rb 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +36 -13
  4. data/TODO.md +18 -11
  5. data/ext/audio/music.c +6 -0
  6. data/ext/audio/sound.c +43 -4
  7. data/ext/audio/sound_buffer.c +8 -0
  8. data/ext/audio/sound_buffer_recorder.c +8 -3
  9. data/ext/audio/sound_recorder.c +21 -11
  10. data/ext/audio/sound_source_cone.c +18 -3
  11. data/ext/audio/sound_stream.c +25 -15
  12. data/ext/ext.c +4 -0
  13. data/ext/graphics/blend_mode.c +16 -8
  14. data/ext/graphics/circle.c +30 -13
  15. data/ext/graphics/color.c +17 -8
  16. data/ext/graphics/drawable.c +3 -2
  17. data/ext/graphics/font.c +6 -0
  18. data/ext/graphics/glyph.c +7 -0
  19. data/ext/graphics/image.c +25 -4
  20. data/ext/graphics/polygon.c +31 -11
  21. data/ext/graphics/rect.c +16 -8
  22. data/ext/graphics/rectangle.c +30 -11
  23. data/ext/graphics/render_state.c +8 -10
  24. data/ext/graphics/render_texture.c +27 -11
  25. data/ext/graphics/render_window.c +55 -0
  26. data/ext/graphics/render_window.h +10 -0
  27. data/ext/graphics/shader.c +6 -0
  28. data/ext/graphics/shape.c +23 -16
  29. data/ext/graphics/sprite.c +34 -10
  30. data/ext/graphics/stencil_mode.c +16 -8
  31. data/ext/graphics/target.c +60 -27
  32. data/ext/graphics/target.h +22 -8
  33. data/ext/graphics/text.c +33 -13
  34. data/ext/graphics/texture.c +34 -3
  35. data/ext/graphics/transformable.c +11 -20
  36. data/ext/graphics/vertex.c +18 -3
  37. data/ext/graphics/vertex_array.c +18 -9
  38. data/ext/graphics/vertex_buffer.c +30 -10
  39. data/ext/graphics/view.c +16 -10
  40. data/ext/network/ftp.c +30 -3
  41. data/ext/network/http.c +23 -6
  42. data/ext/network/ip_address.c +25 -14
  43. data/ext/network/packet.c +8 -3
  44. data/ext/network/socket_selector.c +8 -3
  45. data/ext/network/tcp_listener.c +8 -3
  46. data/ext/network/tcp_socket.c +8 -3
  47. data/ext/network/udp_socket.c +8 -3
  48. data/ext/system/buffer.c +13 -11
  49. data/ext/system/clock.c +11 -5
  50. data/ext/system/input_stream.c +21 -11
  51. data/ext/system/time.c +17 -13
  52. data/ext/system/vec2.c +17 -11
  53. data/ext/system/vec3.c +18 -11
  54. data/ext/window/context.c +14 -11
  55. data/ext/window/context_settings.c +16 -4
  56. data/ext/window/cursor.c +6 -0
  57. data/ext/window/event.c +15 -25
  58. data/ext/window/mouse.c +28 -11
  59. data/ext/window/touch.c +12 -10
  60. data/ext/window/video_mode.c +16 -25
  61. data/ext/window/window.c +110 -435
  62. data/ext/window/window.h +4 -4
  63. data/ext/window/window_base.c +251 -0
  64. data/ext/window/window_base.h +43 -0
  65. data/ext/window/window_base.inc +236 -0
  66. data/lib/sfml/version.rb +1 -1
  67. data/sig/audio/sound.rbs +1 -1
  68. data/sig/audio/sound_buffer_recorder.rbs +1 -1
  69. data/sig/audio/sound_recorder.rbs +1 -1
  70. data/sig/audio/sound_source_cone.rbs +1 -1
  71. data/sig/audio/sound_stream.rbs +1 -1
  72. data/sig/graphics/blend_mode.rbs +1 -1
  73. data/sig/graphics/circle.rbs +1 -1
  74. data/sig/graphics/color.rbs +5 -5
  75. data/sig/graphics/image.rbs +1 -1
  76. data/sig/graphics/polygon.rbs +1 -1
  77. data/sig/graphics/rect.rbs +5 -5
  78. data/sig/graphics/rectangle.rbs +1 -1
  79. data/sig/graphics/render_state.rbs +2 -2
  80. data/sig/graphics/render_target.rbs +18 -0
  81. data/sig/graphics/render_texture.rbs +4 -2
  82. data/sig/graphics/render_window.rbs +7 -0
  83. data/sig/graphics/shape.rbs +1 -1
  84. data/sig/graphics/sprite.rbs +2 -2
  85. data/sig/graphics/stencil_mode.rbs +2 -2
  86. data/sig/graphics/target.rbs +1 -3
  87. data/sig/graphics/text.rbs +4 -4
  88. data/sig/graphics/texture.rbs +1 -1
  89. data/sig/graphics/transformable.rbs +1 -1
  90. data/sig/graphics/vertex.rbs +4 -4
  91. data/sig/graphics/vertex_array.rbs +1 -1
  92. data/sig/graphics/vertex_buffer.rbs +4 -4
  93. data/sig/graphics/view.rbs +0 -1
  94. data/sig/network/ftp.rbs +1 -1
  95. data/sig/network/http.rbs +2 -2
  96. data/sig/network/ip_address.rbs +1 -1
  97. data/sig/network/packet.rbs +1 -1
  98. data/sig/network/socket_selector.rbs +1 -1
  99. data/sig/network/tcp_listener.rbs +1 -1
  100. data/sig/network/tcp_socket.rbs +1 -1
  101. data/sig/network/udp_socket.rbs +1 -1
  102. data/sig/sfml/version.rbs +3 -0
  103. data/sig/system/buffer.rbs +1 -1
  104. data/sig/system/clock.rbs +1 -1
  105. data/sig/system/input_stream.rbs +1 -1
  106. data/sig/system/time.rbs +4 -4
  107. data/sig/system/vec2.rbs +4 -4
  108. data/sig/system/vec3.rbs +4 -4
  109. data/sig/window/context.rbs +1 -1
  110. data/sig/window/context_settings.rbs +1 -1
  111. data/sig/window/event.rbs +1 -1
  112. data/sig/window/mouse.rbs +2 -2
  113. data/sig/window/touch.rbs +1 -1
  114. data/sig/window/video_mode.rbs +1 -1
  115. data/sig/window/window.rbs +2 -25
  116. data/sig/window/window_base.rbs +33 -0
  117. metadata +11 -2
@@ -0,0 +1,18 @@
1
+ module SFML
2
+ # Included by RenderWindow and RenderTexture. The method bodies are generated
3
+ # per class from ext/graphics/render_target.inc.
4
+ module RenderTarget
5
+ def srgb?: () -> bool
6
+ def clear_stencil: (Integer value) -> self
7
+ def clear_color_and_stencil: (untyped color, Integer stencil) -> self
8
+ def viewport: (?untyped view) -> untyped
9
+ def scissor: (?untyped view) -> untyped
10
+ def map_pixel_to_coords: (untyped point, ?untyped view) -> untyped
11
+ def map_coords_to_pixel: (untyped point, ?untyped view) -> untyped
12
+ def push_gl_states: () -> self
13
+ def pop_gl_states: () -> self
14
+ def reset_gl_states: () -> self
15
+ def draw_primitives: (untyped vertices, untyped primitive, ?untyped state) -> self
16
+ def draw_vertex_buffer_range: (untyped buffer, Integer first, Integer count, ?untyped state) -> self
17
+ end
18
+ end
@@ -1,6 +1,8 @@
1
1
  module SFML
2
2
  class RenderTexture
3
- def self.new: (Vector2 size, ?untyped settings) -> RenderTexture
3
+ include RenderTarget
4
+
5
+ def initialize: (Vector2 size, ?untyped settings) -> void
4
6
  def self.maximum_antialiasing_level: () -> Integer
5
7
 
6
8
  def size: () -> Vector2
@@ -20,7 +22,7 @@ module SFML
20
22
 
21
23
  def draw: (untyped drawable, ?untyped state) -> self
22
24
 
23
- # Shared with Window via render_target.inc -- see ext/graphics/render_target.inc
25
+ # Shared with RenderWindow via render_target.inc -- see ext/graphics/render_target.inc
24
26
  def srgb?: () -> bool
25
27
  def clear_stencil: (Integer value) -> self
26
28
  def clear_color_and_stencil: (untyped color, Integer stencil) -> self
@@ -0,0 +1,7 @@
1
+ module SFML
2
+ class RenderWindow < Window
3
+ include RenderTarget
4
+
5
+ def draw: (untyped drawable, ?untyped state) -> self
6
+ end
7
+ end
@@ -2,7 +2,7 @@ module SFML
2
2
  class Shape
3
3
  include Drawable
4
4
 
5
- def self.new: () -> Shape
5
+ def initialize: () -> void
6
6
 
7
7
  def update!: () -> self
8
8
  def move: (Vector2 | Array[Float] offset) -> self
@@ -1,7 +1,7 @@
1
1
  module SFML
2
2
  class Sprite
3
- def self.new: () -> Sprite
4
- | (Texture texture) -> Sprite
3
+ def initialize: () -> void
4
+ | (Texture texture) -> void
5
5
 
6
6
  def copy: () -> Sprite
7
7
 
@@ -1,7 +1,7 @@
1
1
  module SFML
2
2
  class StencilMode
3
- def self.new: () -> StencilMode
4
- | (Symbol | Integer comparison, Symbol | Integer update_operation, Integer reference, Integer mask, bool stencil_only) -> StencilMode
3
+ def initialize: () -> void
4
+ | (Symbol | Integer comparison, Symbol | Integer update_operation, Integer reference, Integer mask, bool stencil_only) -> void
5
5
 
6
6
  def comparison: () -> Symbol
7
7
  def comparison=: (Symbol | Integer value) -> (Symbol | Integer)
@@ -1,8 +1,6 @@
1
1
  module SFML
2
2
  class Target
3
- def self.new: (untyped window) -> Target
4
-
5
- def initialize: () -> void
3
+ def initialize: (untyped window) -> void
6
4
  def draw: (untyped drawable, untyped state) -> nil
7
5
  def view: () -> untyped
8
6
  def view=: (untyped value) -> nil
@@ -1,9 +1,9 @@
1
1
  module SFML
2
2
  class Text
3
- def self.new: () -> Text
4
- | (untyped font) -> Text
5
- | (untyped font, String string) -> Text
6
- | (untyped font, String string, Integer character_size) -> Text
3
+ def initialize: () -> void
4
+ | (untyped font) -> void
5
+ | (untyped font, String string) -> void
6
+ | (untyped font, String string, Integer character_size) -> void
7
7
 
8
8
  def copy: () -> Text
9
9
  def font: () -> untyped
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class Texture
3
- def self.new: (Vector2 size) -> Texture
3
+ def initialize: (Vector2 size) -> void
4
4
  def self.srgb: (Vector2 size) -> Texture
5
5
  def self.from_file: (String path, ?untyped area) -> Texture
6
6
  def self.srgb_from_file: (String path, ?untyped area) -> Texture
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class Transformable
3
- def self.new: () -> Transformable
3
+ def initialize: () -> void
4
4
 
5
5
  def position=: (Vector2 value) -> self
6
6
  def rotation=: (Float value) -> self
@@ -1,9 +1,9 @@
1
1
  module SFML
2
2
  class Vertex
3
- def self.new: () -> Vertex
4
- | (Vector2 position) -> Vertex
5
- | (Vector2 position, untyped color) -> Vertex
6
- | (Vector2 position, untyped color, Vector2 tex_coords) -> Vertex
3
+ def initialize: () -> void
4
+ | (Vector2 position) -> void
5
+ | (Vector2 position, untyped color) -> void
6
+ | (Vector2 position, untyped color, Vector2 tex_coords) -> void
7
7
 
8
8
  def position: () -> Vector2
9
9
  def position=: (Vector2 value) -> Vector2
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class VertexArray
3
- def self.new: () -> VertexArray
3
+ def initialize: () -> void
4
4
 
5
5
  def copy: () -> VertexArray
6
6
  def vertex_count: () -> Integer
@@ -1,9 +1,9 @@
1
1
  module SFML
2
2
  class VertexBuffer
3
- def self.new: () -> VertexBuffer
4
- | (Integer count) -> VertexBuffer
5
- | (Integer count, Symbol primitive) -> VertexBuffer
6
- | (Integer count, Symbol primitive, Symbol usage) -> VertexBuffer
3
+ def initialize: () -> void
4
+ | (Integer count) -> void
5
+ | (Integer count, Symbol primitive) -> void
6
+ | (Integer count, Symbol primitive, Symbol usage) -> void
7
7
  def self.available?: () -> bool
8
8
 
9
9
  def copy: () -> VertexBuffer
@@ -1,6 +1,5 @@
1
1
  module SFML
2
2
  class View
3
- def self.new: () -> View
4
3
  def self.from_rect: (untyped rect) -> View
5
4
 
6
5
  def initialize: () -> void
data/sig/network/ftp.rbs CHANGED
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class Ftp
3
- def self.new: () -> Ftp
3
+ def initialize: () -> void
4
4
 
5
5
  def connect: (IpAddress | String | Integer address, ?Integer port, ?Time timeout) -> FtpResponse
6
6
  def login_anonymous: () -> FtpResponse
data/sig/network/http.rbs CHANGED
@@ -1,13 +1,13 @@
1
1
  module SFML
2
2
  class Http
3
- def self.new: () -> Http
3
+ def initialize: () -> void
4
4
 
5
5
  def set_host: (String host, ?Integer port) -> self
6
6
  def send_request: (HttpRequest request, ?Time timeout) -> HttpResponse
7
7
  end
8
8
 
9
9
  class HttpRequest
10
- def self.new: () -> HttpRequest
10
+ def initialize: () -> void
11
11
 
12
12
  def set_field: (String field, String value) -> String
13
13
  def method=: (Symbol | Integer value) -> (Symbol | Integer)
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class IpAddress
3
- def self.new: (Integer | String | IpAddress address) -> IpAddress
3
+ def initialize: (Integer | String | IpAddress address) -> void
4
4
  def self.from_string: (String address) -> IpAddress
5
5
  def self.from_bytes: (Integer byte0, Integer byte1, Integer byte2, Integer byte3) -> IpAddress
6
6
  def self.from_integer: (Integer value) -> IpAddress
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class Packet
3
- def self.new: () -> Packet
3
+ def initialize: () -> void
4
4
 
5
5
  def copy: () -> Packet
6
6
  def append: (String data) -> self
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class SocketSelector
3
- def self.new: () -> SocketSelector
3
+ def initialize: () -> void
4
4
 
5
5
  def copy: () -> SocketSelector
6
6
  def add: (TcpListener | TcpSocket | UdpSocket socket) -> self
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class TcpListener
3
- def self.new: () -> TcpListener
3
+ def initialize: () -> void
4
4
  def self.any_port: () -> Integer
5
5
 
6
6
  def blocking?: () -> bool
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class TcpSocket
3
- def self.new: () -> TcpSocket
3
+ def initialize: () -> void
4
4
 
5
5
  def blocking?: () -> bool
6
6
  def blocking=: (bool value) -> bool
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class UdpSocket
3
- def self.new: () -> UdpSocket
3
+ def initialize: () -> void
4
4
  def self.any_port: () -> Integer
5
5
  def self.max_datagram_size: () -> Integer
6
6
 
@@ -0,0 +1,3 @@
1
+ module SFML
2
+ VERSION: String
3
+ end
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class Buffer
3
- def self.new: () -> Buffer
3
+ def initialize: () -> void
4
4
 
5
5
  def size: () -> Integer
6
6
  def length: () -> Integer
data/sig/system/clock.rbs CHANGED
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class Clock
3
- def self.new: () -> Clock
3
+ def initialize: () -> void
4
4
 
5
5
  def elapsed_time: () -> Time
6
6
  def restart!: () -> Time
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class InputStream
3
- def self.new: (untyped io) -> InputStream
3
+ def initialize: (untyped io) -> void
4
4
 
5
5
  def io: () -> untyped
6
6
  end
data/sig/system/time.rbs CHANGED
@@ -2,10 +2,10 @@ module SFML
2
2
  class Time
3
3
  include Comparable
4
4
 
5
- def self.new: () -> Time
6
- | (Float seconds) -> Time
7
- | (Integer microseconds) -> Time
8
- | (Time other) -> Time
5
+ def initialize: () -> void
6
+ | (Float seconds) -> void
7
+ | (Integer microseconds) -> void
8
+ | (Time other) -> void
9
9
  def self.seconds: (Float value) -> Time
10
10
  def self.milliseconds: (Integer value) -> Time
11
11
  def self.microseconds: (Integer value) -> Time
data/sig/system/vec2.rbs CHANGED
@@ -2,10 +2,10 @@ module SFML
2
2
  class Vector2
3
3
  include Enumerable[Float]
4
4
 
5
- def self.new: () -> Vector2
6
- | (Float x, Float y) -> Vector2
7
- | (Array[Float] xy) -> Vector2
8
- | (Vector2 other) -> Vector2
5
+ def initialize: () -> void
6
+ | (Float x, Float y) -> void
7
+ | (Array[Float] xy) -> void
8
+ | (Vector2 other) -> void
9
9
 
10
10
  def x: () -> Float
11
11
  def x=: (Float value) -> Float
data/sig/system/vec3.rbs CHANGED
@@ -2,10 +2,10 @@ module SFML
2
2
  class Vector3
3
3
  include Enumerable[Float]
4
4
 
5
- def self.new: () -> Vector3
6
- | (Float x, Float y, Float z) -> Vector3
7
- | (Array[Float] xyz) -> Vector3
8
- | (Vector3 other) -> Vector3
5
+ def initialize: () -> void
6
+ | (Float x, Float y, Float z) -> void
7
+ | (Array[Float] xyz) -> void
8
+ | (Vector3 other) -> void
9
9
 
10
10
  def x: () -> Float
11
11
  def x=: (Float value) -> Float
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class Context
3
- def self.new: () -> Context
3
+ def initialize: () -> void
4
4
  def self.extension_available?: (String name) -> bool
5
5
  def self.function: (String name) -> Integer
6
6
  def self.active_context_id: () -> Integer
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class ContextSettings
3
- def self.new: (?Integer depth_bits, ?Integer stencil_bits, ?Integer antialiasing_level, ?Integer major_version, ?Integer minor_version, ?(Symbol | Array[Symbol] | Integer) flags, ?bool srgb_capable) -> ContextSettings
3
+ def initialize: (?Integer depth_bits, ?Integer stencil_bits, ?Integer antialiasing_level, ?Integer major_version, ?Integer minor_version, ?(Symbol | Array[Symbol] | Integer) flags, ?bool srgb_capable) -> void
4
4
 
5
5
  def depth_bits: () -> Integer
6
6
  def depth_bits=: (Integer value) -> Integer
data/sig/window/event.rbs CHANGED
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class Event
3
- def self.new: () -> Event
3
+ def initialize: () -> void
4
4
 
5
5
  def type: () -> String
6
6
  def size: () -> Vector2
data/sig/window/mouse.rbs CHANGED
@@ -2,8 +2,8 @@ module SFML
2
2
  module Mouse
3
3
  def self.button_pressed?: (Symbol | Integer button) -> bool
4
4
  def self.pressed?: (Symbol | Integer button) -> bool
5
- def self.position: (?Window? window) -> Vector2
6
- def self.set_position: (Vector2 | Array[Float] position, ?Window? window) -> Vector2
5
+ def self.position: (?WindowBase? window) -> Vector2
6
+ def self.set_position: (Vector2 | Array[Float] position, ?WindowBase? window) -> Vector2
7
7
  def self.position=: (Vector2 | Array[Float] value) -> Vector2
8
8
  end
9
9
  end
data/sig/window/touch.rbs CHANGED
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  module Touch
3
3
  def self.down?: (Integer finger) -> bool
4
- def self.position: (Integer finger, ?Window? window) -> Vector2
4
+ def self.position: (Integer finger, ?WindowBase? window) -> Vector2
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module SFML
2
2
  class VideoMode
3
- def self.new: (Integer width, Integer height, Integer bits_per_pixel) -> VideoMode
3
+ def initialize: (Integer width, Integer height, Integer bits_per_pixel) -> void
4
4
  def self.desktop_mode: () -> VideoMode
5
5
  def self.fullscreen_modes: () -> Array[VideoMode]
6
6
 
@@ -1,44 +1,21 @@
1
1
  module SFML
2
- class Window
3
- def self.new: (VideoMode video_mode, String title, ?Symbol | Array[Symbol] | Integer style, ?Symbol state, ?ContextSettings? settings) -> Window
2
+ class Window < WindowBase
3
+ def initialize: (VideoMode video_mode, String title, ?Symbol | Array[Symbol] | Integer style, ?Symbol state, ?ContextSettings? settings) -> void
4
4
  def self.from_handle: (Integer handle, ?ContextSettings? settings) -> Window
5
5
 
6
- def is_open?: () -> bool
7
- def close!: () -> self
8
6
  def clear: (?untyped color) -> self
9
7
  def display: () -> self
10
- def poll_event!: (Event event) -> bool
11
- def wait_event!: (Event event) -> bool
12
8
 
13
9
  def frame_rate=: (Integer value) -> self
14
10
  def framerate_limit=: (Integer value) -> self
15
- def size=: (Vector2 | Array[Float] value) -> self
16
- def minimum_size=: (Vector2 | Array[Float] value) -> (Vector2 | Array[Float])
17
- def maximum_size=: (Vector2 | Array[Float] value) -> (Vector2 | Array[Float])
18
- def title=: (String value) -> self
19
- def set_icon: (Vector2 | Array[Float] size, String pixels) -> String
20
- def visible=: (bool value) -> self
21
11
  def active=: (bool value) -> bool
22
12
  def vertical_sync_enabled=: (bool value) -> self
23
- def cursor_visible=: (bool value) -> self
24
- def cursor_grabbed=: (bool value) -> self
25
- def mouse_cursor=: (Cursor? value) -> Cursor?
26
- def cursor=: (Cursor? value) -> Cursor?
27
- def key_repeat_enabled=: (bool value) -> self
28
- def joystick_threshold=: (Float value) -> Float
29
- def position=: (Vector2 | Array[Float] value) -> (Vector2 | Array[Float])
30
13
  def view=: (untyped value) -> self
31
14
 
32
- def request_focus: () -> self
33
- def focus?: () -> bool
34
15
  def draw: (untyped drawable, ?untyped state) -> self
35
- def position: () -> Vector2
36
- def size: () -> Vector2
37
16
  def view: () -> untyped
38
17
  def default_view: () -> untyped
39
18
  def settings: () -> ContextSettings
40
- def native_handle: () -> Integer
41
- def create_vulkan_surface: (Integer instance, ?Integer? allocator) -> Integer?
42
19
 
43
20
  # Shared with RenderTexture, via ext/graphics/render_target.inc.
44
21
  def srgb?: () -> bool
@@ -0,0 +1,33 @@
1
+ module SFML
2
+ class WindowBase
3
+ def initialize: (VideoMode video_mode, String title, ?Symbol | Array[Symbol] | Integer style, ?Symbol state) -> void
4
+ def self.from_handle: (Integer handle) -> WindowBase
5
+
6
+ def is_open?: () -> bool
7
+ def close!: () -> self
8
+ def poll_event!: (Event event) -> bool
9
+ def wait_event!: (Event event) -> bool
10
+
11
+ def position: () -> Vector2
12
+ def size: () -> Vector2
13
+ def focus?: () -> bool
14
+ def native_handle: () -> Integer
15
+
16
+ def position=: (Vector2 | Array[Float] value) -> (Vector2 | Array[Float])
17
+ def size=: (Vector2 | Array[Float] value) -> self
18
+ def minimum_size=: (Vector2 | Array[Float] value) -> (Vector2 | Array[Float])
19
+ def maximum_size=: (Vector2 | Array[Float] value) -> (Vector2 | Array[Float])
20
+ def title=: (String value) -> self
21
+ def set_icon: (Vector2 | Array[Float] size, String pixels) -> String
22
+ def visible=: (bool value) -> self
23
+ def cursor_visible=: (bool value) -> self
24
+ def cursor_grabbed=: (bool value) -> self
25
+ def mouse_cursor=: (Cursor? value) -> Cursor?
26
+ def cursor=: (Cursor? value) -> Cursor?
27
+ def key_repeat_enabled=: (bool value) -> self
28
+ def joystick_threshold=: (Float value) -> Float
29
+
30
+ def request_focus: () -> self
31
+ def create_vulkan_surface: (Integer instance, ?Integer? allocator) -> Integer?
32
+ end
33
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sfml3-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algaves
@@ -88,6 +88,8 @@ files:
88
88
  - ext/graphics/render_target.inc
89
89
  - ext/graphics/render_texture.c
90
90
  - ext/graphics/render_texture.h
91
+ - ext/graphics/render_window.c
92
+ - ext/graphics/render_window.h
91
93
  - ext/graphics/shader.c
92
94
  - ext/graphics/shader.h
93
95
  - ext/graphics/shape.c
@@ -177,6 +179,9 @@ files:
177
179
  - ext/window/vulkan.h
178
180
  - ext/window/window.c
179
181
  - ext/window/window.h
182
+ - ext/window/window_base.c
183
+ - ext/window/window_base.h
184
+ - ext/window/window_base.inc
180
185
  - lib/sfml.rb
181
186
  - lib/sfml/version.rb
182
187
  - sig/audio/audio_enums.rbs
@@ -199,7 +204,9 @@ files:
199
204
  - sig/graphics/rect.rbs
200
205
  - sig/graphics/rectangle.rbs
201
206
  - sig/graphics/render_state.rbs
207
+ - sig/graphics/render_target.rbs
202
208
  - sig/graphics/render_texture.rbs
209
+ - sig/graphics/render_window.rbs
203
210
  - sig/graphics/shader.rbs
204
211
  - sig/graphics/shape.rbs
205
212
  - sig/graphics/sprite.rbs
@@ -222,6 +229,7 @@ files:
222
229
  - sig/network/tcp_listener.rbs
223
230
  - sig/network/tcp_socket.rbs
224
231
  - sig/network/udp_socket.rbs
232
+ - sig/sfml/version.rbs
225
233
  - sig/system/buffer.rbs
226
234
  - sig/system/clock.rbs
227
235
  - sig/system/input_stream.rbs
@@ -242,6 +250,7 @@ files:
242
250
  - sig/window/video_mode.rbs
243
251
  - sig/window/vulkan.rbs
244
252
  - sig/window/window.rbs
253
+ - sig/window/window_base.rbs
245
254
  homepage: https://github.com/algaves/sfml3.rb
246
255
  licenses:
247
256
  - 0BSD
@@ -249,7 +258,7 @@ metadata:
249
258
  source_code_uri: https://github.com/algaves/sfml3.rb
250
259
  bug_tracker_uri: https://github.com/algaves/sfml3.rb/issues
251
260
  changelog_uri: https://github.com/algaves/sfml3.rb/blob/main/CHANGELOG.md
252
- documentation_uri: https://rubydoc.info/gems/sfml3-rb
261
+ documentation_uri: https://algaves.github.io/sfml3.rb/
253
262
  rubygems_mfa_required: 'true'
254
263
  post_install_message:
255
264
  rdoc_options: