Interface IXPlatformInterface
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
The platform interface for various controls. Used by the game to handle various properties.
public interface IXPlatformInterface- Extension Methods
Properties
Window
GameWindow Window { get; set; }Property Value
Methods
AvailableCodecs()
AvailableCodec[] AvailableCodecs()Returns
FocusWindow()
void FocusWindow()GetAviWriter(int, double, string)
IAviWriter GetAviWriter(int recordingBufferSize, double framerate, string codeccode)Parameters
Returns
GetClipboardText()
string GetClipboardText()Returns
GetCpuInfo()
string GetCpuInfo()Returns
GetFreeDiskSpace(string)
Total disk space in bytes
long GetFreeDiskSpace(string filepath)Parameters
- filepathstring
Returns
GetRamCapacity()
Total system ram in bytes
long GetRamCapacity()Returns
GetScreenSize()
Size2i GetScreenSize()Returns
MoveFileToRecyclebin(string)
void MoveFileToRecyclebin(string filepath)Parameters
- filepathstring
SetClipboardText(string)
void SetClipboardText(string text)Parameters
- textstring
ShowMessageBox(string, string)
void ShowMessageBox(string title, string text)