Class: Raylib::Rectangle

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/raylib_main.rb,
lib/raylib_helper.rb

Overview

Rectangle, 4 components

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create(x = 0, y = 0, width = 0, height = 0) ⇒ Object



181
182
183
# File 'lib/raylib_helper.rb', line 181

def self.create(x = 0, y = 0, width = 0, height = 0)
  Rectangle.new.set(x, y, width, height)
end

Instance Method Details

#heightObject



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

#widthObject



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

#xObject



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

#yObject



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