class GDAL::ColorEntry
Attributes
c_struct[R]
@return [FFI::GDAL::ColorEntry]
Public Class Methods
new(color_entry = nil)
click to toggle source
@param color_entry [FFI::GDAL::ColorEntry]
# File lib/gdal/color_entry.rb, line 9 def initialize(color_entry = nil) @c_struct = color_entry || FFI::GDAL::ColorEntry.new end
Public Instance Methods
c_pointer()
click to toggle source
@return [FFI::Pointer] Pointer to the C struct.
# File lib/gdal/color_entry.rb, line 14 def c_pointer @c_struct.pointer end
color1()
click to toggle source
# File lib/gdal/color_entry.rb, line 18 def color1 @c_struct[:c1] end
color1=(new_color)
click to toggle source
# File lib/gdal/color_entry.rb, line 22 def color1=(new_color) @c_struct[:c1] = new_color end
color2()
click to toggle source
# File lib/gdal/color_entry.rb, line 26 def color2 @c_struct[:c2] end
color2=(new_color)
click to toggle source
# File lib/gdal/color_entry.rb, line 30 def color2=(new_color) @c_struct[:c2] = new_color end
color3()
click to toggle source
# File lib/gdal/color_entry.rb, line 34 def color3 @c_struct[:c3] end
color3=(new_color)
click to toggle source
# File lib/gdal/color_entry.rb, line 38 def color3=(new_color) @c_struct[:c3] = new_color end
color4()
click to toggle source
# File lib/gdal/color_entry.rb, line 42 def color4 @c_struct[:c4] end
color4=(new_color)
click to toggle source
# File lib/gdal/color_entry.rb, line 46 def color4=(new_color) @c_struct[:c4] = new_color end