Class StyleManager
- Namespace
- Adw
- Assembly
- Adw-1.dll
public sealed class StyleManager : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
StyleManager
- Implements
- Inherited Members
Constructors
StyleManager(StyleManagerHandle)
protected StyleManager(StyleManagerHandle handle)
Parameters
handleStyleManagerHandle
StyleManager(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public StyleManager(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
StyleManager(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected StyleManager(CreationData data)
Parameters
dataCreationData
Fields
AccentColorPropertyDefinition
public static readonly Property<AccentColor, StyleManager> AccentColorPropertyDefinition
Field Value
AccentColorRgbaPropertyDefinition
public static readonly Property<RGBA, StyleManager> AccentColorRgbaPropertyDefinition
Field Value
ColorSchemePropertyDefinition
public static readonly Property<ColorScheme, StyleManager> ColorSchemePropertyDefinition
Field Value
DarkPropertyDefinition
public static readonly Property<bool, StyleManager> DarkPropertyDefinition
Field Value
DisplayPropertyDefinition
public static readonly Property<Display?, StyleManager> DisplayPropertyDefinition
Field Value
DocumentFontNamePropertyDefinition
public static readonly Property<string?, StyleManager> DocumentFontNamePropertyDefinition
Field Value
HighContrastPropertyDefinition
public static readonly Property<bool, StyleManager> HighContrastPropertyDefinition
Field Value
MonospaceFontNamePropertyDefinition
public static readonly Property<string?, StyleManager> MonospaceFontNamePropertyDefinition
Field Value
SystemSupportsAccentColorsPropertyDefinition
public static readonly Property<bool, StyleManager> SystemSupportsAccentColorsPropertyDefinition
Field Value
SystemSupportsColorSchemesPropertyDefinition
public static readonly Property<bool, StyleManager> SystemSupportsColorSchemesPropertyDefinition
Field Value
Properties
AccentColor
public AccentColor AccentColor { get; }
Property Value
AccentColorRgba
public RGBA AccentColorRgba { get; }
Property Value
ColorScheme
public ColorScheme ColorScheme { get; set; }
Property Value
Dark
public bool Dark { get; }
Property Value
Display
public Display? Display { get; }
Property Value
DocumentFontName
public string? DocumentFontName { get; }
Property Value
HighContrast
public bool HighContrast { get; }
Property Value
MonospaceFontName
public string? MonospaceFontName { get; }
Property Value
SystemSupportsAccentColors
public bool SystemSupportsAccentColors { get; }
Property Value
SystemSupportsColorSchemes
public bool SystemSupportsColorSchemes { get; }
Property Value
Methods
GetAccentColor()
[Version("1.6")]
public AccentColor GetAccentColor()
Returns
GetAccentColorRgba()
[Version("1.6")]
public RGBA GetAccentColorRgba()
Returns
GetColorScheme()
public ColorScheme GetColorScheme()
Returns
GetDark()
public bool GetDark()
Returns
GetDefault()
public static StyleManager GetDefault()
Returns
GetDisplay()
public Display? GetDisplay()
Returns
GetDocumentFontName()
[Version("1.7")]
public string GetDocumentFontName()
Returns
GetForDisplay(Display)
public static StyleManager GetForDisplay(Display display)
Parameters
displayDisplay
Returns
GetGType()
public static Type GetGType()
Returns
GetHighContrast()
public bool GetHighContrast()
Returns
GetMonospaceFontName()
[Version("1.7")]
public string GetMonospaceFontName()
Returns
GetSystemSupportsAccentColors()
[Version("1.6")]
public bool GetSystemSupportsAccentColors()
Returns
GetSystemSupportsColorSchemes()
public bool GetSystemSupportsColorSchemes()
Returns
NewFromPointer(nint, bool)
Creates a new managed StyleManager instance for a given pointer.
public static StyleManager NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new StyleManager and sets the properties specified by the construct arguments.
public static StyleManager NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetColorScheme(ColorScheme)
public void SetColorScheme(ColorScheme colorScheme)
Parameters
colorSchemeColorScheme