package Implements_Gtk_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Font_Chooser_Widget_Record, Gtk_Font_Chooser_Widget);
package Implements_Gtk_Font_Chooser is new Glib.Types.Implements (Gtk.Font_Chooser.Gtk_Font_Chooser, Gtk_Font_Chooser_Widget_Record, Gtk_Font_Chooser_Widget);
package Implements_Gtk_Orientable is new Glib.Types.Implements (Gtk.Orientable.Gtk_Orientable, Gtk_Font_Chooser_Widget_Record, Gtk_Font_Chooser_Widget);
type Gtk_Font_Chooser_Widget_Record is new Gtk_Box_Record with null record;
type Gtk_Font_Chooser_Widget is access all Gtk_Font_Chooser_Widget_Record'Class;
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;
procedure Gtk_New
( | Self | : out Gtk_Font_Chooser_Widget); |
procedure Initialize
( | Self | : not null access Gtk_Font_Chooser_Widget_Record'Class); |
function Gtk_Font_Chooser_Widget_New return Gtk_Font_Chooser_Widget;
function Get_Type return Glib.GType;
procedure Set_Filter_Func
( | Self | : not null access Gtk_Font_Chooser_Widget_Record; |
Filter | : Gtk_Font_Filter_Func); |
function Get_Font
( | Self | : not null access Gtk_Font_Chooser_Widget_Record) return UTF8_String; |
procedure Set_Font
( | Self | : not null access Gtk_Font_Chooser_Widget_Record; |
Fontname | : UTF8_String); |
function Get_Font_Desc
( | Self | : not null access Gtk_Font_Chooser_Widget_Record) return Pango.Font.Pango_Font_Description; |
procedure Set_Font_Desc
( | Self | : not null access Gtk_Font_Chooser_Widget_Record; |
Font_Desc | : Pango.Font.Pango_Font_Description); |
function Get_Font_Face
( | Self | : not null access Gtk_Font_Chooser_Widget_Record) return Pango.Font_Face.Pango_Font_Face; |
function Get_Font_Family
( | Self | : not null access Gtk_Font_Chooser_Widget_Record) return Pango.Font_Family.Pango_Font_Family; |
function Get_Font_Size
( | Self | : not null access Gtk_Font_Chooser_Widget_Record) return Gint; |
function Get_Preview_Text
( | Self | : not null access Gtk_Font_Chooser_Widget_Record) return UTF8_String; |
procedure Set_Preview_Text
( | Self | : not null access Gtk_Font_Chooser_Widget_Record; |
Text | : UTF8_String); |
function Get_Show_Preview_Entry
( | Self | : not null access Gtk_Font_Chooser_Widget_Record) return Boolean; |
procedure Set_Show_Preview_Entry
( | Self | : not null access Gtk_Font_Chooser_Widget_Record; |
Show_Preview_Entry | : Boolean); |
function Get_Orientation
( | Self | : not null access Gtk_Font_Chooser_Widget_Record) return Gtk.Enums.Gtk_Orientation; |
procedure Set_Orientation
( | Self | : not null access Gtk_Font_Chooser_Widget_Record; |
Orientation | : Gtk.Enums.Gtk_Orientation); |
function "+"
( | Widget | : access Gtk_Font_Chooser_Widget_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Gtk_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Font_Chooser_Widget renames Implements_Gtk_Buildable.To_Object; |
function "+"
( | Widget | : access Gtk_Font_Chooser_Widget_Record'Class) return Gtk.Font_Chooser.Gtk_Font_Chooser renames Implements_Gtk_Font_Chooser.To_Interface; |
function "-"
( | Interf | : Gtk.Font_Chooser.Gtk_Font_Chooser) return Gtk_Font_Chooser_Widget renames Implements_Gtk_Font_Chooser.To_Object; |
function "+"
( | Widget | : access Gtk_Font_Chooser_Widget_Record'Class) return Gtk.Orientable.Gtk_Orientable renames Implements_Gtk_Orientable.To_Interface; |
function "-"
( | Interf | : Gtk.Orientable.Gtk_Orientable) return Gtk_Font_Chooser_Widget renames Implements_Gtk_Orientable.To_Object; |
The Gtk.Font_Chooser_Widget.Gtk_Font_Chooser_Widget widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the Gtk.Font_Chooser_Dialog.Gtk_Font_Chooser_Dialog widget to provide a dialog box for selecting fonts.
To set the font which is initially selected, use Gtk.Font_Chooser.Set_Font or Gtk.Font_Chooser.Set_Font_Desc.
To get the selected font use Gtk.Font_Chooser.Get_Font or Gtk.Font_Chooser.Get_Font_Desc.
To change the text which is shown in the preview area, use Gtk.Font_Chooser.Set_Preview_Text.