module RbSDL2::Window::Grab
Public Instance Methods
grab=(bool)
click to toggle source
# File lib/rb_sdl2/window/grab.rb, line 4 def grab=(bool) ::SDL2.SDL_SetWindowGrab(self, bool ? ::SDL2::SDL_TRUE : ::SDL2::SDL_FALSE) end
grabbed?(= ::SDL2.SDL_GetWindowGrab(self) == ::SDL2::SDL_TRUE)
click to toggle source
# File lib/rb_sdl2/window/grab.rb, line 8 def grabbed? = ::SDL2.SDL_GetWindowGrab(self) == ::SDL2::SDL_TRUE def grabbed_keyboard? = ::SDL2.SDL_GetWindowKeyboardGrab(self) == ::SDL2::SDL_TRUE def grabbed_mouse? = ::SDL2.SDL_GetWindowMouseGrab(self) == ::SDL2::SDL_TRUE def keyboard_grab=(bool) ::SDL2.SDL_SetWindowKeyboardGrab(self, bool ? ::SDL2::SDL_TRUE : ::SDL2::SDL_FALSE) end def mouse_grab=(bool) ::SDL2.SDL_SetWindowMouseGrab(self, bool ? ::SDL2::SDL_TRUE : ::SDL2::SDL_FALSE) end end end end
grabbed_keyboard?(= ::SDL2.SDL_GetWindowKeyboardGrab(self) == ::SDL2::SDL_TRUE)
click to toggle source
# File lib/rb_sdl2/window/grab.rb, line 10 def grabbed_keyboard? = ::SDL2.SDL_GetWindowKeyboardGrab(self) == ::SDL2::SDL_TRUE def grabbed_mouse? = ::SDL2.SDL_GetWindowMouseGrab(self) == ::SDL2::SDL_TRUE def keyboard_grab=(bool) ::SDL2.SDL_SetWindowKeyboardGrab(self, bool ? ::SDL2::SDL_TRUE : ::SDL2::SDL_FALSE) end def mouse_grab=(bool) ::SDL2.SDL_SetWindowMouseGrab(self, bool ? ::SDL2::SDL_TRUE : ::SDL2::SDL_FALSE) end end end
grabbed_mouse?(= ::SDL2.SDL_GetWindowMouseGrab(self) == ::SDL2::SDL_TRUE)
click to toggle source
# File lib/rb_sdl2/window/grab.rb, line 12 def grabbed_mouse? = ::SDL2.SDL_GetWindowMouseGrab(self) == ::SDL2::SDL_TRUE def keyboard_grab=(bool) ::SDL2.SDL_SetWindowKeyboardGrab(self, bool ? ::SDL2::SDL_TRUE : ::SDL2::SDL_FALSE) end def mouse_grab=(bool) ::SDL2.SDL_SetWindowMouseGrab(self, bool ? ::SDL2::SDL_TRUE : ::SDL2::SDL_FALSE) end end
keyboard_grab=(bool)
click to toggle source
# File lib/rb_sdl2/window/grab.rb, line 14 def keyboard_grab=(bool) ::SDL2.SDL_SetWindowKeyboardGrab(self, bool ? ::SDL2::SDL_TRUE : ::SDL2::SDL_FALSE) end
mouse_grab=(bool)
click to toggle source
# File lib/rb_sdl2/window/grab.rb, line 18 def mouse_grab=(bool) ::SDL2.SDL_SetWindowMouseGrab(self, bool ? ::SDL2::SDL_TRUE : ::SDL2::SDL_FALSE) end