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
548 |
# File 'lib/raylib_main.rb', line 548 def height = self[:height] |
#height=(v) ⇒ Object
549 |
# File 'lib/raylib_main.rb', line 549 def height=(v) self[:height] = v end |
#set(x, y, width, height) ⇒ Object
169 170 171 172 173 174 175 |
# File 'lib/raylib_helper.rb', line 169 def set(x, y, width, height) self[:x] = x self[:y] = y self[:width] = width self[:height] = height self end |
#width ⇒ Object
546 |
# File 'lib/raylib_main.rb', line 546 def width = self[:width] |
#width=(v) ⇒ Object
547 |
# File 'lib/raylib_main.rb', line 547 def width=(v) self[:width] = v end |
#x ⇒ Object
542 |
# File 'lib/raylib_main.rb', line 542 def x = self[:x] |
#x=(v) ⇒ Object
543 |
# File 'lib/raylib_main.rb', line 543 def x=(v) self[:x] = v end |
#y ⇒ Object
544 |
# File 'lib/raylib_main.rb', line 544 def y = self[:y] |
#y=(v) ⇒ Object
545 |
# File 'lib/raylib_main.rb', line 545 def y=(v) self[:y] = v end |