Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
IWindowService.cs
Go to the documentation of this file.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
using
SDL2;
4
5
namespace
ReLogic.OS
;
6
7
public
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
19
void
HideConsole
();
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
}
ReLogic.OS.IWindowService.SetIcon
void SetIcon(GameWindow window)
Definition
IWindowService.cs:21
ReLogic.OS.IWindowService.GetScaling
float GetScaling()
ReLogic.OS.IWindowService.SetQuickEditEnabled
void SetQuickEditEnabled(bool enabled)
ReLogic.OS.IWindowService.StopFlashingIcon
void StopFlashingIcon(GameWindow window)
ReLogic.OS.IWindowService.SetUnicodeTitle
void SetUnicodeTitle(GameWindow window, string title)
ReLogic.OS.IWindowService.HideConsole
void HideConsole()
ReLogic.OS.IWindowService.StartFlashingIcon
void StartFlashingIcon(GameWindow window)
ReLogic.OS.IWindowService
Definition
IWindowService.cs:8
Microsoft.Xna.Framework
Definition
AlphaTestEffect.cs:1
ReLogic.OS
Definition
Clipboard.cs:3
System
Definition
BlockingCollection.cs:8
System.IntPtr
Definition
IntPtr.cs:14
source
ReLogic
ReLogic.OS
IWindowService.cs
Generated by
1.10.0