Class FontFamily
- Namespace
- Pango
- Assembly
- Pango-1.0.dll
public class FontFamily : Object, ListModel, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
FontFamily
- Implements
- Inherited Members
Constructors
FontFamily(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 FontFamily(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
FontFamily(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FontFamily(CreationData data)
Parameters
dataCreationData
FontFamily(FontFamilyHandle)
protected FontFamily(FontFamilyHandle handle)
Parameters
handleFontFamilyHandle
Fields
IsMonospacePropertyDefinition
public static readonly Property<bool, FontFamily> IsMonospacePropertyDefinition
Field Value
IsVariablePropertyDefinition
public static readonly Property<bool, FontFamily> IsVariablePropertyDefinition
Field Value
ItemsChangedSignal
Signal Descriptor for OnItemsChanged.
public static readonly Signal<ListModel, ListModel.ItemsChangedSignalArgs> ItemsChangedSignal
Field Value
NItemsPropertyDefinition
public static readonly Property<uint, FontFamily> NItemsPropertyDefinition
Field Value
NamePropertyDefinition
public static readonly Property<string?, FontFamily> NamePropertyDefinition
Field Value
Properties
IsMonospace
public bool IsMonospace { get; }
Property Value
IsVariable
public bool IsVariable { get; }
Property Value
NItems
public uint NItems { get; }
Property Value
Name
public string? Name { get; }
Property Value
Methods
GetFace(string?)
[Version("1.46")]
public FontFace? GetFace(string? name)
Parameters
namestring
Returns
GetGType()
public static Type GetGType()
Returns
GetIsMonospace()
[Version("1.4")]
public bool GetIsMonospace()
Returns
GetIsVariable()
[Version("1.44")]
public bool GetIsVariable()
Returns
GetItem(uint)
[Version("2.44")]
public nint GetItem(uint position)
Parameters
positionuint
Returns
GetItemType()
[Version("2.44")]
public Type GetItemType()
Returns
GetNItems()
[Version("2.44")]
public uint GetNItems()
Returns
GetName()
public string GetName()
Returns
GetObject(uint)
[Version("2.44")]
public Object? GetObject(uint position)
Parameters
positionuint
Returns
ItemsChanged(uint, uint, uint)
[Version("2.44")]
public void ItemsChanged(uint position, uint removed, uint added)
Parameters
NewFromPointer(nint, bool)
Creates a new managed FontFamily instance for a given pointer.
public static FontFamily NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new FontFamily and sets the properties specified by the construct arguments.
public static FontFamily NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Events
OnItemsChanged
public event SignalHandler<ListModel, ListModel.ItemsChangedSignalArgs> OnItemsChanged