Class FontDialog
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class FontDialog : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
FontDialog
- Implements
- Inherited Members
Constructors
FontDialog(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 FontDialog(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
FontDialog(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FontDialog(CreationData data)
Parameters
dataCreationData
FontDialog(FontDialogHandle)
protected FontDialog(FontDialogHandle handle)
Parameters
handleFontDialogHandle
Fields
FilterPropertyDefinition
public static readonly Property<Filter?, FontDialog> FilterPropertyDefinition
Field Value
FontMapPropertyDefinition
public static readonly Property<FontMap?, FontDialog> FontMapPropertyDefinition
Field Value
LanguagePropertyDefinition
public static readonly Property<Language, FontDialog> LanguagePropertyDefinition
Field Value
ModalPropertyDefinition
public static readonly Property<bool, FontDialog> ModalPropertyDefinition
Field Value
TitlePropertyDefinition
public static readonly Property<string?, FontDialog> TitlePropertyDefinition
Field Value
Properties
Filter
public Filter? Filter { get; set; }
Property Value
FontMap
public FontMap? FontMap { get; set; }
Property Value
Language
public Language Language { get; set; }
Property Value
Modal
public bool Modal { get; set; }
Property Value
Title
public string? Title { get; set; }
Property Value
Methods
ChooseFaceAsync(Window?, FontFace?)
public Task<FontFace?> ChooseFaceAsync(Window? parent, FontFace? fontFace)
Parameters
Returns
ChooseFaceFinish(AsyncResult)
[Version("4.10")]
public FontFace ChooseFaceFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
ChooseFamilyAsync(Window?, FontFamily?)
public Task<FontFamily?> ChooseFamilyAsync(Window? parent, FontFamily? fontFamily)
Parameters
parentWindowfontFamilyFontFamily
Returns
ChooseFamilyFinish(AsyncResult)
[Version("4.10")]
public FontFamily ChooseFamilyFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
ChooseFontAndFeaturesFinish(AsyncResult, out FontDescription, out string, out Language)
[Version("4.10")]
public bool ChooseFontAndFeaturesFinish(AsyncResult result, out FontDescription fontDesc, out string fontFeatures, out Language language)
Parameters
resultAsyncResultfontDescFontDescriptionfontFeaturesstringlanguageLanguage
Returns
ChooseFontAsync(Window?, FontDescription?)
public Task<FontDescription?> ChooseFontAsync(Window? parent, FontDescription? fontDescription)
Parameters
parentWindowfontDescriptionFontDescription
Returns
ChooseFontFinish(AsyncResult)
[Version("4.10")]
public FontDescription ChooseFontFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
GetFilter()
[Version("4.10")]
public Filter? GetFilter()
Returns
GetFontMap()
[Version("4.10")]
public FontMap? GetFontMap()
Returns
GetGType()
public static Type GetGType()
Returns
GetLanguage()
[Version("4.10")]
public Language? GetLanguage()
Returns
GetModal()
[Version("4.10")]
public bool GetModal()
Returns
GetTitle()
[Version("4.10")]
public string GetTitle()
Returns
New()
[Version("4.10")]
public static FontDialog New()
Returns
NewFromPointer(nint, bool)
Creates a new managed FontDialog instance for a given pointer.
public static FontDialog NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new FontDialog and sets the properties specified by the construct arguments.
public static FontDialog NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetFilter(Filter?)
[Version("4.10")]
public void SetFilter(Filter? filter)
Parameters
filterFilter
SetFontMap(FontMap?)
[Version("4.10")]
public void SetFontMap(FontMap? fontmap)
Parameters
fontmapFontMap
SetLanguage(Language)
[Version("4.10")]
public void SetLanguage(Language language)
Parameters
languageLanguage
SetModal(bool)
[Version("4.10")]
public void SetModal(bool modal)
Parameters
modalbool
SetTitle(string)
[Version("4.10")]
public void SetTitle(string title)
Parameters
titlestring