Class: ImVec2

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/imgui.rb

Class Method Summary collapse

Class Method Details

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

shorthand initializer



2682
2683
2684
2685
2686
2687
# File 'lib/imgui.rb', line 2682

def ImVec2.create(x = 0, y = 0)
  instance = ImVec2.new
  instance[:x] = x
  instance[:y] = y
  return instance
end