@@ -52,6 +52,7 @@ module SDL.Raw.Video (
5252 getWindowID ,
5353 getWindowMaximumSize ,
5454 getWindowMinimumSize ,
55+ getWindowOpacity ,
5556 getWindowPixelFormat ,
5657 getWindowPosition ,
5758 getWindowSize ,
@@ -73,6 +74,7 @@ module SDL.Raw.Video (
7374 setWindowIcon ,
7475 setWindowMaximumSize ,
7576 setWindowMinimumSize ,
77+ setWindowOpacity ,
7678 setWindowPosition ,
7779 setWindowSize ,
7880 setWindowTitle ,
@@ -282,6 +284,7 @@ foreign import ccall "SDL.h SDL_GetWindowGrab" getWindowGrabFFI :: Window -> IO
282284foreign import ccall " SDL.h SDL_GetWindowID" getWindowIDFFI :: Window -> IO Word32
283285foreign import ccall " SDL.h SDL_GetWindowMaximumSize" getWindowMaximumSizeFFI :: Window -> Ptr CInt -> Ptr CInt -> IO ()
284286foreign import ccall " SDL.h SDL_GetWindowMinimumSize" getWindowMinimumSizeFFI :: Window -> Ptr CInt -> Ptr CInt -> IO ()
287+ foreign import ccall " SDL.h SDL_GetWindowOpacity" getWindowOpacityFFI :: Window -> Ptr CFloat -> IO ()
285288foreign import ccall " SDL.h SDL_GetWindowPixelFormat" getWindowPixelFormatFFI :: Window -> IO Word32
286289foreign import ccall " SDL.h SDL_GetWindowPosition" getWindowPositionFFI :: Window -> Ptr CInt -> Ptr CInt -> IO ()
287290foreign import ccall " SDL.h SDL_GetWindowSize" getWindowSizeFFI :: Window -> Ptr CInt -> Ptr CInt -> IO ()
@@ -303,6 +306,7 @@ foreign import ccall "SDL.h SDL_SetWindowGrab" setWindowGrabFFI :: Window -> Boo
303306foreign import ccall " SDL.h SDL_SetWindowIcon" setWindowIconFFI :: Window -> Ptr Surface -> IO ()
304307foreign import ccall " SDL.h SDL_SetWindowMaximumSize" setWindowMaximumSizeFFI :: Window -> CInt -> CInt -> IO ()
305308foreign import ccall " SDL.h SDL_SetWindowMinimumSize" setWindowMinimumSizeFFI :: Window -> CInt -> CInt -> IO ()
309+ foreign import ccall " SDL.h SDL_SetWindowOpacity" setWindowOpacityFFI :: Window -> CFloat -> IO ()
306310foreign import ccall " SDL.h SDL_SetWindowPosition" setWindowPositionFFI :: Window -> CInt -> CInt -> IO ()
307311foreign import ccall " SDL.h SDL_SetWindowSize" setWindowSizeFFI :: Window -> CInt -> CInt -> IO ()
308312foreign import ccall " SDL.h SDL_SetWindowTitle" setWindowTitleFFI :: Window -> CString -> IO ()
@@ -643,6 +647,10 @@ getWindowMinimumSize :: MonadIO m => Window -> Ptr CInt -> Ptr CInt -> m ()
643647getWindowMinimumSize v1 v2 v3 = liftIO $ getWindowMinimumSizeFFI v1 v2 v3
644648{-# INLINE getWindowMinimumSize #-}
645649
650+ getWindowOpacity :: MonadIO m => Window -> Ptr CFloat -> m ()
651+ getWindowOpacity v1 v2 = liftIO $ getWindowOpacityFFI v1 v2
652+ {-# INLINE getWindowOpacity #-}
653+
646654getWindowPixelFormat :: MonadIO m => Window -> m Word32
647655getWindowPixelFormat v1 = liftIO $ getWindowPixelFormatFFI v1
648656{-# INLINE getWindowPixelFormat #-}
@@ -727,6 +735,10 @@ setWindowMinimumSize :: MonadIO m => Window -> CInt -> CInt -> m ()
727735setWindowMinimumSize v1 v2 v3 = liftIO $ setWindowMinimumSizeFFI v1 v2 v3
728736{-# INLINE setWindowMinimumSize #-}
729737
738+ setWindowOpacity :: MonadIO m => Window -> CFloat -> m ()
739+ setWindowOpacity v1 v2 = liftIO $ setWindowOpacityFFI v1 v2
740+ {-# INLINE setWindowOpacity #-}
741+
730742setWindowPosition :: MonadIO m => Window -> CInt -> CInt -> m ()
731743setWindowPosition v1 v2 v3 = liftIO $ setWindowPositionFFI v1 v2 v3
732744{-# INLINE setWindowPosition #-}
0 commit comments