Class PlessSystemSettingsHandler
Implements internal ISystemSettingsHandler provider.
public class PlessSystemSettingsHandler : DisposableObject, IBaseObjectWithId, ISystemSettingsHandler, IDisposableObject, IDisposable, IBaseObject
- Inheritance
-
PlessSystemSettingsHandler
- Implements
Constructors
- PlessSystemSettingsHandler()
Initializes a new instance of the PlessSystemSettingsHandler class.
Properties
- AppClassName
Gets or sets the application class name.
- AppDisplayName
Gets or sets application name for the display purposes.
- AppName
Gets or sets application name.
- UseBestVisual
Gets or sets whether application will use the best visual on systems that support different visuals.
- VendorDisplayName
Gets or sets the vendor display name.
- VendorName
Gets or sets the vendor name.
Methods
- CreateDisplayFactoryHandler()
Creates IDisplayFactoryHandler interface provider.
- GetAppearanceIsDark()
Return true if the current system theme is explicitly recognized as being a dark theme or if the default window background is dark.
- GetAppearanceName()
Returns the name if available or empty string otherwise.
- GetClassDefaultAttributesBgColor(ControlTypeId, ControlRenderSizeVariant)
Gets default value of the control background color.
- GetClassDefaultAttributesFgColor(ControlTypeId, ControlRenderSizeVariant)
Gets default value of the control foreground color.
- GetClassDefaultAttributesFont(ControlTypeId, ControlRenderSizeVariant)
Gets default value of the control font.
- GetColor(KnownSystemColor)
Gets a standard system color.
- GetLangDirection()
Gets language direction.
- GetLibraryVersionString()
Gets library version.
- GetMetric(SystemSettingsMetric)
Returns the value of a system metric, or -1 if the metric is not supported on the current system.
- GetMetric(SystemSettingsMetric, AbstractControl?)
Returns the value of a system metric, or -1 if the metric is not supported on the current system.
- GetPlatformKind()
Gets platform kind.
- GetUIVersion()
Gets user interface version.
- HasFeature(SystemSettingsFeature)
Returns
true
if the port has certain feature.
- IsMetricScaled(SystemSettingsMetric)
Gets whether metric value is scaled.
- IsUsingDarkBackground()
Returns true if the background is darker than foreground. This is used by AppearanceIsDark if there is no platform-specific way to determine whether a dark mode is being used and is generally not very useful to call directly.
- Reset()
Resets internal metrics to the default values.
- SetAllScrollBarMetrics(int)
Sets all scroll bar related metrics to the specified value.
- SetMetric(SystemSettingsMetric, int)
Sets metric value.
- SetMetricScaled(SystemSettingsMetric, bool)
Sets whether metric value is scaled.
- SetNativeTheme(string)
Allows runtime switching of the UI environment theme.
- SetSystemOption(string, int)
Sets system option.
- SetUseBestVisual(bool, bool)
Allows the programmer to specify whether the application will use the best visual on systems that support several visual on the same display.