Show / Hide Table of Contents

Class MacOSShellComponent

Inheritance
object
MacOSShellComponent
Implements
IShellComponent
IPalComponent
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenTK.Platform.Native.macOS
Assembly: OpenTK.Platform.dll
Syntax
public class MacOSShellComponent : IShellComponent, IPalComponent

Properties

Logger

Declaration
public ILogger? Logger { get; set; }
Property Value
Type Description
ILogger

Name

Declaration
public string Name { get; }
Property Value
Type Description
string

Provides

Declaration
public PalComponents Provides { get; }
Property Value
Type Description
PalComponents

Methods

AllowScreenSaver(bool, string?)

Declaration
public void AllowScreenSaver(bool allow, string? disableReason)
Parameters
Type Name Description
bool allow
string disableReason

GetBatteryInfo(out BatteryInfo)

Declaration
public BatteryStatus GetBatteryInfo(out BatteryInfo batteryInfo)
Parameters
Type Name Description
BatteryInfo batteryInfo
Returns
Type Description
BatteryStatus

GetPreferredTheme()

Declaration
public ThemeInfo GetPreferredTheme()
Returns
Type Description
ThemeInfo

GetSystemMemoryInformation()

Declaration
public SystemMemoryInfo GetSystemMemoryInformation()
Returns
Type Description
SystemMemoryInfo

Initialize(ToolkitOptions)

Declaration
public void Initialize(ToolkitOptions options)
Parameters
Type Name Description
ToolkitOptions options

IsScreenSaverAllowed()

Declaration
public bool IsScreenSaverAllowed()
Returns
Type Description
bool

NSLog(string)

Calls NSLog to log a message to the Apple System Log facility. This can be useful when running your application as a bundle as stdout and stderr can't be used. This function is static so that it can be used before Toolkit has been initialized.

Declaration
public static void NSLog(string message)
Parameters
Type Name Description
string message

The message to print to the system log.

Uninitialize()

Uninitialize the component. Frees any native resources used by the component.

Declaration
public void Uninitialize()
See Also
Uninit()

Implements

IShellComponent
IPalComponent
In this article
Back to top Generated by DocFX