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
546 |
# File 'lib/raylib_main.rb', line 546 def height = self[:height] |
#height=(v) ⇒ Object
547 |
# File 'lib/raylib_main.rb', line 547 def height=(v) self[:height] = v end |
#set(x, y, width, height) ⇒ Object
130 131 132 133 134 135 136 |
# File 'lib/raylib_helper.rb', line 130 def set(x, y, width, height) self[:x] = x self[:y] = y self[:width] = width self[:height] = height self end |
#width ⇒ Object
544 |
# File 'lib/raylib_main.rb', line 544 def width = self[:width] |
#width=(v) ⇒ Object
545 |
# File 'lib/raylib_main.rb', line 545 def width=(v) self[:width] = v end |
#x ⇒ Object
540 |
# File 'lib/raylib_main.rb', line 540 def x = self[:x] |
#x=(v) ⇒ Object
541 |
# File 'lib/raylib_main.rb', line 541 def x=(v) self[:x] = v end |
#y ⇒ Object
542 |
# File 'lib/raylib_main.rb', line 542 def y = self[:y] |
#y=(v) ⇒ Object
543 |
# File 'lib/raylib_main.rb', line 543 def y=(v) self[:y] = v end |