Table of Contents

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

constructArguments ConstructArgument[]

FontDialog(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FontDialog(CreationData data)

Parameters

data CreationData

FontDialog(FontDialogHandle)

protected FontDialog(FontDialogHandle handle)

Parameters

handle FontDialogHandle

Fields

FilterPropertyDefinition

public static readonly Property<Filter?, FontDialog> FilterPropertyDefinition

Field Value

Property<Filter, FontDialog>

FontMapPropertyDefinition

public static readonly Property<FontMap?, FontDialog> FontMapPropertyDefinition

Field Value

Property<FontMap, FontDialog>

LanguagePropertyDefinition

public static readonly Property<Language, FontDialog> LanguagePropertyDefinition

Field Value

Property<Language, FontDialog>

ModalPropertyDefinition

public static readonly Property<bool, FontDialog> ModalPropertyDefinition

Field Value

Property<bool, FontDialog>

TitlePropertyDefinition

public static readonly Property<string?, FontDialog> TitlePropertyDefinition

Field Value

Property<string, FontDialog>

Properties

Filter

public Filter? Filter { get; set; }

Property Value

Filter

FontMap

public FontMap? FontMap { get; set; }

Property Value

FontMap

Language

public Language Language { get; set; }

Property Value

Language

Modal

public bool Modal { get; set; }

Property Value

bool

Title

public string? Title { get; set; }

Property Value

string

Methods

ChooseFaceAsync(Window?, FontFace?)

public Task<FontFace?> ChooseFaceAsync(Window? parent, FontFace? fontFace)

Parameters

parent Window
fontFace FontFace

Returns

Task<FontFace>

ChooseFaceFinish(AsyncResult)

[Version("4.10")]
public FontFace ChooseFaceFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

FontFace

ChooseFamilyAsync(Window?, FontFamily?)

public Task<FontFamily?> ChooseFamilyAsync(Window? parent, FontFamily? fontFamily)

Parameters

parent Window
fontFamily FontFamily

Returns

Task<FontFamily>

ChooseFamilyFinish(AsyncResult)

[Version("4.10")]
public FontFamily ChooseFamilyFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

FontFamily

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

result AsyncResult
fontDesc FontDescription
fontFeatures string
language Language

Returns

bool

ChooseFontAsync(Window?, FontDescription?)

public Task<FontDescription?> ChooseFontAsync(Window? parent, FontDescription? fontDescription)

Parameters

parent Window
fontDescription FontDescription

Returns

Task<FontDescription>

ChooseFontFinish(AsyncResult)

[Version("4.10")]
public FontDescription ChooseFontFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

FontDescription

GetFilter()

[Version("4.10")]
public Filter? GetFilter()

Returns

Filter

GetFontMap()

[Version("4.10")]
public FontMap? GetFontMap()

Returns

FontMap

GetGType()

public static Type GetGType()

Returns

Type

GetLanguage()

[Version("4.10")]
public Language? GetLanguage()

Returns

Language

GetModal()

[Version("4.10")]
public bool GetModal()

Returns

bool

GetTitle()

[Version("4.10")]
public string GetTitle()

Returns

string

New()

[Version("4.10")]
public static FontDialog New()

Returns

FontDialog

NewFromPointer(nint, bool)

Creates a new managed FontDialog instance for a given pointer.

public static FontDialog NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

FontDialog

NewWithProperties(ConstructArgument[])

Creates a new FontDialog and sets the properties specified by the construct arguments.

public static FontDialog NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

FontDialog

SetFilter(Filter?)

[Version("4.10")]
public void SetFilter(Filter? filter)

Parameters

filter Filter

SetFontMap(FontMap?)

[Version("4.10")]
public void SetFontMap(FontMap? fontmap)

Parameters

fontmap FontMap

SetLanguage(Language)

[Version("4.10")]
public void SetLanguage(Language language)

Parameters

language Language

SetModal(bool)

[Version("4.10")]
public void SetModal(bool modal)

Parameters

modal bool

SetTitle(string)

[Version("4.10")]
public void SetTitle(string title)

Parameters

title string