Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
IWindowService.cs
Go to the documentation of this file.
1using System;
3using SDL2;
4
5namespace ReLogic.OS;
6
7public interface IWindowService
8{
9 void SetUnicodeTitle(GameWindow window, string title);
10
11 void StartFlashingIcon(GameWindow window);
12
13 void StopFlashingIcon(GameWindow window);
14
15 float GetScaling();
16
17 void SetQuickEditEnabled(bool enabled);
18
20
21 void SetIcon(GameWindow window)
22 {
23 IntPtr surface = SDL.SDL_LoadBMP("Libraries/Native/tModLoader.bmp");
24 SDL.SDL_SetWindowIcon(window.Handle, surface);
25 }
26}
void SetIcon(GameWindow window)
void SetQuickEditEnabled(bool enabled)
void StopFlashingIcon(GameWindow window)
void SetUnicodeTitle(GameWindow window, string title)
void StartFlashingIcon(GameWindow window)