Platform Class |
Namespace: Eto
The Platform type exposes the following members.
Name | Description | |
---|---|---|
AllowReinitialize |
Gets or sets a value indicating that the platform should allow reinitialization.
| |
Context |
Gets an object to wrap in the platform's context, when using multiple platforms.
| |
Detect |
Returns the current generator, or detects the generator to use if no current generator is set.
| |
ID |
Gets the ID of this platform
| |
Instance |
Gets the platform for the current thread
| |
IsAndroid |
Gets a value indicating whether this platform is based on Xamarin.Android.
| |
IsDesktop |
Gets a value indicating whether this is a desktop platform. This includes Mac, Gtk, WinForms, Wpf, Direct2D.
| |
IsGtk |
Gets a value indicating whether this platform is based on GTK# (2 or 3)
| |
IsIos |
Gets a value indicating whether this platform is based on Xamarin.iOS
| |
IsMac |
Gets a value indicating whether this platform is a mac based platform (MonoMac/XamMac)
| |
IsMobile |
Gets a value indicating whether this is a mobile platform. This includes iOS, Android, and WinRT.
| |
IsValid |
Gets a value indicating that this platform is valid on the running device
| |
IsWinForms |
Gets a value indicating whether this platform is based on Windows Forms
| |
IsWpf |
Gets a value indicating whether this platform is based on WPF
| |
SupportedFeatures |
Gets the supported features of the platform.
|
Name | Description | |
---|---|---|
Add(Type, FuncObject) |
Add the specified type and instantiator.
| |
AddT(FuncT) |
Add the instantiator for the specified handler type of T | |
CacheTKey, TValue |
Gets a shared cache dictionary
| |
Create(Type) |
Creates a new instance of the handler of the specified type
| |
CreateT |
Creates a new instance of the handler of the specified type of T | |
CreateShared(Type) |
Creates a shared singleton instance of the specified type of type | |
CreateSharedT |
Creates a shared singleton instance of the specified type of T | |
Find(Type) |
Find the delegate to create instances of the specified type | |
FindT |
Finds the delegate to create instances of the specified type
| |
Get |
Gets the generator of the specified type
| |
Initialize(String) |
Initialize the generator with the specified platformType as the current generator
| |
Initialize(Platform) |
Initializes the specified platform as the current generator, for the current thread
| |
Invoke(Action) |
Invoke the specified action within the context of this platform
| |
InvokeT(FuncT) |
Invoke the specified function within the context of this platform, returning its value.
| |
LoadAssembly(Assembly) |
Loads the extensions specified by the assembly attribute PlatformExtensionAttribute.
| |
LoadAssembly(String) |
Loads the extensions specified by the assembly attribute PlatformExtensionAttribute.
| |
OnHandlerCreated |
Handles the WidgetCreated event
| |
OnWidgetCreated |
Handles the WidgetCreated event
| |
Supports(Type) |
Gets a value indicating that the specified type is supported by this platform
| |
SupportsT |
Gets a value indicating that the specified type is supported by this platform
| |
ThreadStart |
Used at the start of your custom threads
|
Name | Description | |
---|---|---|
HandlerCreated |
Event to handle when widgets are created by this platform
| |
WidgetCreated |
Event to handle when widgets are created by this platform
|