File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ module SDL.Video
3333 , setWindowMode
3434 , getWindowAbsolutePosition
3535 , getWindowBordersSize
36+ , setWindowIcon
3637 , setWindowPosition
3738 , windowTitle
3839 , windowData
@@ -296,6 +297,11 @@ setWindowMode (Window w) mode =
296297 Minimized -> Raw. minimizeWindow w >> return 0
297298 Windowed -> Raw. setWindowFullscreen w 0 <* Raw. restoreWindow w
298299
300+ -- | Set the icon for a window.
301+ setWindowIcon :: MonadIO m => Window -> Surface -> m ()
302+ setWindowIcon (Window win) (Surface sfc _) =
303+ Raw. setWindowIcon win sfc
304+
299305-- | Set the position of the window.
300306setWindowPosition :: MonadIO m => Window -> WindowPosition -> m ()
301307setWindowPosition (Window w) pos = case pos of
You can’t perform that action at this time.
0 commit comments