FontSelectionDialogProtocol
public protocol FontSelectionDialogProtocol : DialogProtocol
The FontSelectionDialogProtocol protocol exposes the methods and properties of an underlying GtkFontSelectionDialog instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see FontSelectionDialog.
Alternatively, use FontSelectionDialogRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkFontSelectionDialoginstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
font_selection_dialog_ptrDefault implementationTyped pointer to the underlying
GtkFontSelectionDialoginstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkFontSelectionDialoginstance.Declaration
Swift
var font_selection_dialog_ptr: UnsafeMutablePointer<GtkFontSelectionDialog>! { get } -
Required Initialiser for types conforming to
FontSelectionDialogProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
bind(property:Extension methodto: _: flags: transformFrom: transformTo: ) Bind a
FontSelectionDialogPropertyNamesource property to a given target object.Declaration
Swift
@discardableResult @inlinable func bind<Q, T>(property source_property: FontSelectionDialogPropertyName, to target: T, _ target_property: Q, flags f: BindingFlags = .default, transformFrom transform_from: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }, transformTo transform_to: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }) -> BindingRef! where Q : PropertyNameProtocol, T : ObjectProtocolParameters
source_propertythe source property to bind
targetthe target object to bind to
target_propertythe target property to bind to
flagsthe flags to pass to the
Bindingtransform_fromValueTransformerto use for forward transformationtransform_toValueTransformerto use for backwards transformationReturn Value
binding reference or
nilin case of an error -
get(property:Extension method) Get the value of a FontSelectionDialog property
Declaration
Swift
@inlinable func get(property: FontSelectionDialogPropertyName) -> GLibObject.ValueParameters
propertythe property to get the value for
Return Value
the value of the named property
-
set(property:Extension methodvalue: ) Set the value of a FontSelectionDialog property. Note that this will only have an effect on properties that are writable and not construct-only!
Declaration
Swift
@inlinable func set(property: FontSelectionDialogPropertyName, value v: GLibObject.Value)Parameters
propertythe property to get the value for
Return Value
the value of the named property
-
getCancelButton()Extension methodGets the “Cancel” button.
get_cancel_button is deprecated: Use #GtkFontChooserDialog
Declaration
Swift
@available(*, deprecated) @inlinable func getCancelButton() -> WidgetRef! -
getFontName()Extension methodGets the currently-selected font name.
Note that this can be a different string than what you set with
gtk_font_selection_dialog_set_font_name(), as the font selection widget may normalize font names and thus return a string with a different structure. For example, “Helvetica Italic Bold 12” could be normalized to “Helvetica Bold Italic 12”. Usepango_font_description_equal()if you want to compare two font descriptions.get_font_name is deprecated: Use #GtkFontChooserDialog
Declaration
Swift
@available(*, deprecated) @inlinable func getFontName() -> String! -
getFontSelection()Extension methodRetrieves the
GtkFontSelectionwidget embedded in the dialog.get_font_selection is deprecated: Use #GtkFontChooserDialog
Declaration
Swift
@available(*, deprecated) @inlinable func getFontSelection() -> WidgetRef! -
getOkButton()Extension methodGets the “OK” button.
get_ok_button is deprecated: Use #GtkFontChooserDialog
Declaration
Swift
@available(*, deprecated) @inlinable func getOkButton() -> WidgetRef! -
getPreviewText()Extension methodGets the text displayed in the preview area.
get_preview_text is deprecated: Use #GtkFontChooserDialog
Declaration
Swift
@available(*, deprecated) @inlinable func getPreviewText() -> String! -
setFontName(fontname:Extension method) Sets the currently selected font.
set_font_name is deprecated: Use #GtkFontChooserDialog
Declaration
Swift
@available(*, deprecated) @inlinable func setFontName(fontname: UnsafePointer<gchar>!) -> Bool -
setPreview(text:Extension method) Sets the text displayed in the preview area.
set_preview_text is deprecated: Use #GtkFontChooserDialog
Declaration
Swift
@available(*, deprecated) @inlinable func setPreview(text: UnsafePointer<gchar>!) -
cancelButtonExtension methodGets the “Cancel” button.
get_cancel_button is deprecated: Use #GtkFontChooserDialog
Declaration
Swift
@inlinable var cancelButton: WidgetRef! { get } -
fontNameExtension methodGets the currently-selected font name.
Note that this can be a different string than what you set with
gtk_font_selection_dialog_set_font_name(), as the font selection widget may normalize font names and thus return a string with a different structure. For example, “Helvetica Italic Bold 12” could be normalized to “Helvetica Bold Italic 12”. Usepango_font_description_equal()if you want to compare two font descriptions.get_font_name is deprecated: Use #GtkFontChooserDialog
Declaration
Swift
@inlinable var fontName: String! { get nonmutating set } -
fontSelectionExtension methodRetrieves the
GtkFontSelectionwidget embedded in the dialog.get_font_selection is deprecated: Use #GtkFontChooserDialog
Declaration
Swift
@inlinable var fontSelection: WidgetRef! { get } -
okButtonExtension methodGets the “OK” button.
get_ok_button is deprecated: Use #GtkFontChooserDialog
Declaration
Swift
@inlinable var okButton: WidgetRef! { get } -
previewTextExtension methodGets the text displayed in the preview area.
get_preview_text is deprecated: Use #GtkFontChooserDialog
Declaration
Swift
@inlinable var previewText: String! { get nonmutating set } -
parentInstanceExtension methodUndocumented
Declaration
Swift
@inlinable var parentInstance: GtkDialog { get }
View on GitHub
Install in Dash
FontSelectionDialogProtocol Protocol Reference