Class: Raylib::Rectangle
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::Rectangle
- Defined in:
- lib/raylib_main.rb,
lib/raylib_helper.rb
Overview
Rectangle, 4 components
Class Method Summary collapse
Instance Method Summary collapse
- #height ⇒ Object
- #height=(v) ⇒ Object
- #set(x, y, width, height) ⇒ Object
- #width ⇒ Object
- #width=(v) ⇒ Object
- #x ⇒ Object
- #x=(v) ⇒ Object
- #y ⇒ Object
- #y=(v) ⇒ Object
Class Method Details
Instance Method Details
#height ⇒ Object
555 |
# File 'lib/raylib_main.rb', line 555 def height = self[:height] |
#height=(v) ⇒ Object
556 |
# File 'lib/raylib_main.rb', line 556 def height=(v) self[:height] = v end |
#set(x, y, width, height) ⇒ Object
185 186 187 188 189 190 191 |
# File 'lib/raylib_helper.rb', line 185 def set(x, y, width, height) self[:x] = x self[:y] = y self[:width] = width self[:height] = height self end |
#width ⇒ Object
553 |
# File 'lib/raylib_main.rb', line 553 def width = self[:width] |
#width=(v) ⇒ Object
554 |
# File 'lib/raylib_main.rb', line 554 def width=(v) self[:width] = v end |
#x ⇒ Object
549 |
# File 'lib/raylib_main.rb', line 549 def x = self[:x] |
#x=(v) ⇒ Object
550 |
# File 'lib/raylib_main.rb', line 550 def x=(v) self[:x] = v end |
#y ⇒ Object
551 |
# File 'lib/raylib_main.rb', line 551 def y = self[:y] |
#y=(v) ⇒ Object
552 |
# File 'lib/raylib_main.rb', line 552 def y=(v) self[:y] = v end |