Class: ImVec4

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

Overview

ImVec4: 4D vector used to store clipping rectangles, colors etc. [Compile-time configurable type]

Class Method Summary collapse

Class Method Details

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



2689
2690
2691
2692
2693
2694
2695
2696
# File 'lib/imgui.rb', line 2689

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