Skip to main content

X11PlatformOptions Class

Platform-specific options which apply to Linux.

Definition

Namespace: Avalonia
Assembly: Avalonia.X11 (in Avalonia.X11.dll)

public class X11PlatformOptions
InheritanceObject → X11PlatformOptions

Constructors

X11PlatformOptions()Initializes a new instance of the X11PlatformOptions class

Properties

EnableImeDetermines whether to use IME. IME would be enabled by default if the current user input language is one of the following: Mandarin, Japanese, Vietnamese or Korean.
EnableInputFocusProxyDetermines whether to use Input Focus Proxy. The default value is false.
EnableMultiTouchEnables multitouch support. The default value is true.
EnableSessionManagementDetermines whether to enable support for the X Session Management Protocol.
ExterinalGLibMainLoopExceptionLoggerIf Avalonia is in control of a run loop, we propagate exceptions by stopping the run loop frame and rethrowing an exception. However, if there is no Avalonia-controlled run loop frame, there is no way to report such exceptions, since allowing those to escape native->managed call boundary will likely brick GLib machinery since it's not aware of managed Exceptions This property allows to inspect such exceptions before they will be ignored
GlProfiles 
GlxRendererBlacklist 
OverlayPopupsEmbeds popups to the window when set to true. The default value is false.
RenderingModeGets or sets Avalonia rendering modes with fallbacks. The first element in the array has the highest priority. The default value is: Glx, Software.
ShouldRenderOnUIThreadRender directly on the UI thread instead of using a dedicated render thread. This can be usable if your device don't have multiple cores to begin with. This setting is false by default.
UseDBusFilePickerEnables DBus file picker instead of GTK. The default value is true.
UseDBusMenuEnables global menu support on Linux desktop environments where it's supported (e. g. XFCE and MATE with plugin, KDE, etc). The default value is true.
UseGLibMainLoopIf this option is set to true, GMainLoop and GSource based dispatcher implementation will be used instead of epoll-based one. Use this if you need to use GLib-based libraries on the main thread
UseRetainedFramebufferRetain window framebuffer contents if using CPU rendering mode. This will keep an offscreen bitmap for each window with contents of the previous frame While improving performance by saving a blit, it will increase memory consumption if you have many windows
WmClass 

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia Namespace