The Gtk.Font_Chooser_Dialog.Gtk_Font_Chooser_Dialog widget is a dialog for selecting a font. It implements the Gtk.Font_Chooser.Gtk_Font_Chooser interface.
# GtkFontChooserDialog as GtkBuildable
The GtkFontChooserDialog implementation of the Gtk.Buildable.Gtk_Buildable interface exposes the buttons with the names "select_button" and "cancel_button".
function "+"
(Widget : access Gtk_Font_Chooser_Dialog_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "+"
(Widget : access Gtk_Font_Chooser_Dialog_Record'Class)
return Gtk.Font_Chooser.Gtk_Font_Chooser
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Font_Chooser_Dialog
function "-"
(Interf : Gtk.Font_Chooser.Gtk_Font_Chooser)
return Gtk_Font_Chooser_Dialog
function Get_Font
(Self : not null access Gtk_Font_Chooser_Dialog_Record)
return UTF8_String
function Get_Font_Desc
(Self : not null access Gtk_Font_Chooser_Dialog_Record)
return Pango.Font.Pango_Font_Description
function Get_Font_Face
(Self : not null access Gtk_Font_Chooser_Dialog_Record)
return Pango.Font_Face.Pango_Font_Face
function Get_Font_Family
(Self : not null access Gtk_Font_Chooser_Dialog_Record)
return Pango.Font_Family.Pango_Font_Family
function Get_Font_Features
(Self : not null access Gtk_Font_Chooser_Dialog_Record)
return UTF8_String
function Get_Font_Map
(Self : not null access Gtk_Font_Chooser_Dialog_Record)
return Pango.Font_Map.Pango_Font_Map
function Get_Font_Size
(Self : not null access Gtk_Font_Chooser_Dialog_Record)
return Glib.Gint
function Get_Language
(Self : not null access Gtk_Font_Chooser_Dialog_Record)
return UTF8_String
function Get_Level
(Self : not null access Gtk_Font_Chooser_Dialog_Record)
return Gtk.Font_Chooser.Gtk_Font_Chooser_Level
function Get_Preview_Text
(Self : not null access Gtk_Font_Chooser_Dialog_Record)
return UTF8_String
function Get_Show_Preview_Entry
(Self : not null access Gtk_Font_Chooser_Dialog_Record) return Boolean
function Get_Type return Glib.GType
type Gtk_Font_Chooser_Dialog is access all Gtk_Font_Chooser_Dialog_Record'Class;
function Gtk_Font_Chooser_Dialog_New
(Title : UTF8_String := "";
Parent : access Gtk.Window.Gtk_Window_Record'Class)
return Gtk_Font_Chooser_Dialog
Creates a new Gtk.Font_Chooser_Dialog.Gtk_Font_Chooser_Dialog. Since: gtk+ 3.2
Title of the dialog, or null
Transient parent of the dialog, or null
type Gtk_Font_Chooser_Dialog_Record is new Gtk_Dialog_Record with null record;
type Gtk_Font_Filter_Func is access function
(Family : not null access Pango.Font_Family.Pango_Font_Family_Record'Class;
Face : not null access Pango.Font_Face.Pango_Font_Face_Record'Class)
return Boolean;
The type of function that is used for deciding what fonts get shown in a Gtk.Font_Chooser.Gtk_Font_Chooser. See Gtk.Font_Chooser.Set_Filter_Func.
a Pango.Font_Family.Pango_Font_Family
a Pango.Font_Face.Pango_Font_Face belonging to Family
True if the font should be displayed
procedure Gtk_New
(Self : out Gtk_Font_Chooser_Dialog;
Title : UTF8_String := "";
Parent : access Gtk.Window.Gtk_Window_Record'Class)
Creates a new Gtk.Font_Chooser_Dialog.Gtk_Font_Chooser_Dialog. Since: gtk+ 3.2 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
Title of the dialog, or null
Transient parent of the dialog, or null
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Font_Chooser_Dialog_Record, Gtk_Font_Chooser_Dialog);
package Implements_Gtk_Font_Chooser is new Glib.Types.Implements
(Gtk.Font_Chooser.Gtk_Font_Chooser, Gtk_Font_Chooser_Dialog_Record, Gtk_Font_Chooser_Dialog);
procedure Initialize
(Self : not null access Gtk_Font_Chooser_Dialog_Record'Class;
Title : UTF8_String := "";
Parent : access Gtk.Window.Gtk_Window_Record'Class)
Creates a new Gtk.Font_Chooser_Dialog.Gtk_Font_Chooser_Dialog. Since: gtk+ 3.2 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
Title of the dialog, or null
Transient parent of the dialog, or null
procedure Set_Filter_Func
(Self : not null access Gtk_Font_Chooser_Dialog_Record;
Filter : Gtk_Font_Filter_Func)
Adds a filter function that decides which fonts to display in the font chooser. Since: gtk+ 3.2
a Gtk_Font_Filter_Func, or null
procedure Set_Font
(Self : not null access Gtk_Font_Chooser_Dialog_Record;
Fontname : UTF8_String)
procedure Set_Font_Desc
(Self : not null access Gtk_Font_Chooser_Dialog_Record;
Font_Desc : Pango.Font.Pango_Font_Description)
procedure Set_Font_Map
(Self : not null access Gtk_Font_Chooser_Dialog_Record;
Fontmap : access Pango.Font_Map.Pango_Font_Map_Record'Class)
procedure Set_Language
(Self : not null access Gtk_Font_Chooser_Dialog_Record;
Language : UTF8_String)
procedure Set_Level
(Self : not null access Gtk_Font_Chooser_Dialog_Record;
Level : Gtk.Font_Chooser.Gtk_Font_Chooser_Level)
procedure Set_Preview_Text
(Self : not null access Gtk_Font_Chooser_Dialog_Record;
Text : UTF8_String)
procedure Set_Show_Preview_Entry
(Self : not null access Gtk_Font_Chooser_Dialog_Record;
Show_Preview_Entry : Boolean)