Class: SDL2::Cursor

Inherits:
Struct
  • Object
show all
Defined in:
lib/sdl2/mouse.rb

Class Method Summary collapse

Methods inherited from Struct

#==, cast, create, #free, #initialize, #to_s, #update_members

Methods included from StructHelper

#member_readers, #member_writers

Constructor Details

This class inherits a constructor from SDL2::Struct

Class Method Details

.create_color_cursor(surface, hot_x, hot_y) ⇒ Object



14
15
16
# File 'lib/sdl2/mouse.rb', line 14

def self.create_color_cursor(surface, hot_x, hot_y)
  SDL2.create_color_cursor!(surface, hot_x, hot_y)
end

.release(pointer) ⇒ Object



10
11
12
# File 'lib/sdl2/mouse.rb', line 10

def self.release(pointer)
  SDL2.free_cursor(pointer)
end