class RbSDL2::Cursor::SystemCursor
Public Class Methods
arrow_cursor(= new(::SDL2::SDL_SYSTEM_CURSOR_ARROW))
click to toggle source
# File lib/rb_sdl2/cursor/system_cursor.rb, line 19 def arrow_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_ARROW) def crosshair_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_CROSSHAIR) def hand_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_HAND) def i_beam_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_IBEAM) def no_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_NO) def size_all_cursor = new(SDL_SYSTEM_CURSOR_SIZEALL) def size_ne_sw_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENESW) def size_ns_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENS) def size_nw_se_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENWSE) def size_we_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZEWE) def wait_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAIT) def wait_arrow_cursor = new(
crosshair_cursor(= new(::SDL2::SDL_SYSTEM_CURSOR_CROSSHAIR))
click to toggle source
# File lib/rb_sdl2/cursor/system_cursor.rb, line 21 def crosshair_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_CROSSHAIR) def hand_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_HAND) def i_beam_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_IBEAM) def no_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_NO) def size_all_cursor = new(SDL_SYSTEM_CURSOR_SIZEALL) def size_ne_sw_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENESW) def size_ns_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENS) def size_nw_se_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENWSE) def size_we_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZEWE) def wait_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAIT) def wait_arrow_cursor = new(::SDL2
hand_cursor(= new(::SDL2::SDL_SYSTEM_CURSOR_HAND))
click to toggle source
# File lib/rb_sdl2/cursor/system_cursor.rb, line 23 def hand_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_HAND) def i_beam_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_IBEAM) def no_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_NO) def size_all_cursor = new(SDL_SYSTEM_CURSOR_SIZEALL) def size_ne_sw_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENESW) def size_ns_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENS) def size_nw_se_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENWSE) def size_we_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZEWE) def wait_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAIT) def wait_arrow_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAITARROW
i_beam_cursor(= new(::SDL2::SDL_SYSTEM_CURSOR_IBEAM))
click to toggle source
# File lib/rb_sdl2/cursor/system_cursor.rb, line 25 def i_beam_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_IBEAM) def no_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_NO) def size_all_cursor = new(SDL_SYSTEM_CURSOR_SIZEALL) def size_ne_sw_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENESW) def size_ns_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENS) def size_nw_se_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENWSE) def size_we_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZEWE) def wait_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAIT) def wait_arrow_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAITARROW)
no_cursor(= new(::SDL2::SDL_SYSTEM_CURSOR_NO))
click to toggle source
# File lib/rb_sdl2/cursor/system_cursor.rb, line 27 def no_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_NO) def size_all_cursor = new(SDL_SYSTEM_CURSOR_SIZEALL) def size_ne_sw_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENESW) def size_ns_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENS) def size_nw_se_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENWSE) def size_we_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZEWE) def wait_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAIT) def wait_arrow_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAITARROW) end
size_all_cursor(= new(SDL_SYSTEM_CURSOR_SIZEALL))
click to toggle source
# File lib/rb_sdl2/cursor/system_cursor.rb, line 29 def size_all_cursor = new(SDL_SYSTEM_CURSOR_SIZEALL) def size_ne_sw_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENESW) def size_ns_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENS) def size_nw_se_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENWSE) def size_we_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZEWE) def wait_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAIT) def wait_arrow_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAITARROW) end
size_ne_sw_cursor(= new(::SDL2::SDL_SYSTEM_CURSOR_SIZENESW))
click to toggle source
# File lib/rb_sdl2/cursor/system_cursor.rb, line 31 def size_ne_sw_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENESW) def size_ns_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENS) def size_nw_se_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENWSE) def size_we_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZEWE) def wait_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAIT) def wait_arrow_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAITARROW) end end
size_ns_cursor(= new(::SDL2::SDL_SYSTEM_CURSOR_SIZENS))
click to toggle source
# File lib/rb_sdl2/cursor/system_cursor.rb, line 33 def size_ns_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENS) def size_nw_se_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENWSE) def size_we_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZEWE) def wait_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAIT) def wait_arrow_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAITARROW) end end end
size_nw_se_cursor(= new(::SDL2::SDL_SYSTEM_CURSOR_SIZENWSE))
click to toggle source
# File lib/rb_sdl2/cursor/system_cursor.rb, line 35 def size_nw_se_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZENWSE) def size_we_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZEWE) def wait_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAIT) def wait_arrow_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAITARROW) end end end end
size_we_cursor(= new(::SDL2::SDL_SYSTEM_CURSOR_SIZEWE))
click to toggle source
# File lib/rb_sdl2/cursor/system_cursor.rb, line 37 def size_we_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_SIZEWE) def wait_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAIT) def wait_arrow_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAITARROW) end end end
wait_arrow_cursor(= new(::SDL2::SDL_SYSTEM_CURSOR_WAITARROW))
click to toggle source
# File lib/rb_sdl2/cursor/system_cursor.rb, line 41 def wait_arrow_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAITARROW) end
wait_cursor(= new(::SDL2::SDL_SYSTEM_CURSOR_WAIT))
click to toggle source
# File lib/rb_sdl2/cursor/system_cursor.rb, line 39 def wait_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAIT) def wait_arrow_cursor = new(::SDL2::SDL_SYSTEM_CURSOR_WAITARROW) end end
Private Class Methods
new(id)
click to toggle source
Calls superclass method
RbSDL2::Cursor::CursorClass::new
# File lib/rb_sdl2/cursor/system_cursor.rb, line 11 def new(id) return @cursors[id] if @cursors[id] ptr = CursorPointer.new(::SDL2.SDL_CreateSystemCursor(id)) raise RbSDL2Error if ptr.null? @cursors[id] = super(ptr) end