Function ggez::graphics::set_window_icon
source · pub fn set_window_icon<P: AsRef<Path>>(
ctx: &impl Has<GraphicsContext>,
path: impl Into<Option<P>>
) -> GameResult
👎Deprecated since 0.8.0: Use
ctx.gfx.set_window_icon
instead.Expand description
Sets the window icon. None
for path removes the icon.