Interface IShellComponent
Interface for interacting with operating system features.
Inherited Members
Namespace: OpenTK .Core.Platform
Assembly: OpenTK.Core.dll
Syntax
public interface IShellComponent : IPalComponent
Methods
AllowScreenSaver(bool)
Sets whether or not a screensaver is allowed to draw on top of the window.
For games with long cutscenes it would be appropriate to set this to false
,
while tools that act like normal applications should set this to true
.
By default this setting is untouched.
Declaration
void AllowScreenSaver(bool allow)
Parameters
Type | Name | Description |
---|---|---|
bool | allow | Whether to allow screensavers to appear while the application is running. |
GetBatteryInfo(out BatteryInfo)
Gets the battery status of the computer.
Declaration
BatteryStatus GetBatteryInfo(out BatteryInfo batteryInfo)
Parameters
Type | Name | Description |
---|---|---|
Battery |
batteryInfo | The battery status of the computer,
this is only filled with values when Has |
Returns
Type | Description |
---|---|
Battery |
Whether the computer has a battery or not, or if this function failed. |
GetPreferredTheme()
Gets the user preference for application theme.
Declaration
ThemeInfo GetPreferredTheme()
Returns
Type | Description |
---|---|
Theme |
The user set preferred theme. |
GetSystemMemoryInformation()
Gets information about the memory of the device and the current status.
Declaration
SystemMemoryInfo GetSystemMemoryInformation()
Returns
Type | Description |
---|---|
System |
The memory info. |