package Implements_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Font_Selection_Record, Gtk_Font_Selection);
package Implements_Orientable is new Glib.Types.Implements (Gtk.Orientable.Gtk_Orientable, Gtk_Font_Selection_Record, Gtk_Font_Selection);
type Gtk_Font_Selection_Record is new Gtk_Vbox_Record with null record;
type Gtk_Font_Selection is access all Gtk_Font_Selection_Record'Class;
Font_Property : constant Glib.Properties.Property_Boxed;
Font_Name_Property : constant Glib.Properties.Property_String;
Preview_Text_Property : constant Glib.Properties.Property_String;
procedure Gtk_New
( | Fontsel | : out Gtk_Font_Selection); |
procedure Initialize
( | Fontsel | : access Gtk_Font_Selection_Record'Class); |
function Get_Type return Glib.GType;
function Get_Face_List
( | Fontsel | : access Gtk_Font_Selection_Record) return Gtk.Widget.Gtk_Widget; |
function Get_Family_List
( | Fontsel | : access Gtk_Font_Selection_Record) return Gtk.Widget.Gtk_Widget; |
function Get_Font
( | Fontsel | : access Gtk_Font_Selection_Record) return Gdk.Font.Gdk_Font; |
function Get_Font_Name
( | Fontsel | : access Gtk_Font_Selection_Record) return UTF8_String; |
function Set_Font_Name
( | Fontsel | : access Gtk_Font_Selection_Record; |
Fontname | : UTF8_String) return Boolean; |
function Get_Preview_Entry
( | Fontsel | : access Gtk_Font_Selection_Record) return Gtk.Widget.Gtk_Widget; |
function Get_Preview_Text
( | Fontsel | : access Gtk_Font_Selection_Record) return UTF8_String; |
procedure Set_Preview_Text
( | Fontsel | : access Gtk_Font_Selection_Record; |
Text | : UTF8_String); |
function Get_Size
( | Fontsel | : access Gtk_Font_Selection_Record) return Gint; |
function Get_Size_Entry
( | Fontsel | : access Gtk_Font_Selection_Record) return Gtk.Widget.Gtk_Widget; |
function Get_Size_List
( | Fontsel | : access Gtk_Font_Selection_Record) return Gtk.Widget.Gtk_Widget; |
function Get_Orientation
( | Self | : access Gtk_Font_Selection_Record) return Gtk.Enums.Gtk_Orientation; |
procedure Set_Orientation
( | Self | : access Gtk_Font_Selection_Record; |
Orientation | : Gtk.Enums.Gtk_Orientation); |
function "+"
( | Widget | : access Gtk_Font_Selection_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Font_Selection renames Implements_Buildable.To_Object; |
function "+"
( | Widget | : access Gtk_Font_Selection_Record'Class) return Gtk.Orientable.Gtk_Orientable renames Implements_Orientable.To_Interface; |
function "-"
( | Interf | : Gtk.Orientable.Gtk_Orientable) return Gtk_Font_Selection renames Implements_Orientable.To_Object; |
This widget provides a nice way for the user of your application to select fonts. It first searches on your system for the list of fonts available, and displays a set of boxes to select them based on their name, their weight, their size, etc. This widget is provided in two forms, one widget that can be embedded in any container, a Gtk_Font_Selection, whereas the other one comes directly in its own separate window (to be popped up as a dialog).
Some filters can be applied to the widget, when you want the user to select only a font only among a specific subset (like bitmap or true-type fonts for instance). There are two kinds of filters: a base filter, set in your application and that the user can not change; a user filter that can be modified interactively by the user.