type Gtk_Font_Selection_Dialog_Record is new Gtk.Dialog.Gtk_Dialog_Record with private;
type Gtk_Font_Selection_Record is new Gtk.Box.Gtk_Box_Record with private;
type Gtk_Font_Selection_Dialog is access all Gtk_Font_Selection_Dialog_Record'Class;
type Gtk_Font_Selection is access all Gtk_Font_Selection_Record'Class;
Font_Name_Property : constant Glib.Properties.Property_String;
Preview_Text_Property : constant Glib.Properties.Property_String;
procedure Gtk_New
( | Widget | : out Gtk_Font_Selection); |
procedure Initialize
( | Widget | : access Gtk_Font_Selection_Record'Class); |
function Get_Type return Gtk.Gtk_Type;
function Set_Font_Name
( | Fontsel | : access Gtk_Font_Selection_Record; |
Fontname | : String) return Boolean; |
function Get_Font_Name
( | Fontsel | : access Gtk_Font_Selection_Record) return String; |
procedure Set_Preview_Text
( | Fontsel | : access Gtk_Font_Selection_Record; |
Text | : UTF8_String); |
function Get_Preview_Text
( | Fontsel | : access Gtk_Font_Selection_Record) return UTF8_String; |
procedure Gtk_New
( | Widget | : out Gtk_Font_Selection_Dialog; |
Title | : UTF8_String); |
procedure Initialize
( | Widget | : access Gtk_Font_Selection_Dialog_Record'Class; |
Title | : UTF8_String); |
function Dialog_Get_Type return Gtk.Gtk_Type;
function Set_Font_Name
( | Fsd | : access Gtk_Font_Selection_Dialog_Record; |
Fontname | : String) return Boolean; |
function Get_Font_Name
( | Fsd | : access Gtk_Font_Selection_Dialog_Record) return String; |
procedure Set_Preview_Text
( | Fsd | : access Gtk_Font_Selection_Dialog_Record; |
Text | : UTF8_String); |
function Get_Preview_Text
( | Fsd | : access Gtk_Font_Selection_Dialog_Record) return UTF8_String; |
function Get_Cancel_Button
( | Fsd | : access Gtk_Font_Selection_Dialog_Record) return Gtk.Button.Gtk_Button; |
function Get_OK_Button
( | Fsd | : access Gtk_Font_Selection_Dialog_Record) return Gtk.Button.Gtk_Button; |
function Get_Apply_Button
( | Fsd | : access Gtk_Font_Selection_Dialog_Record) return Gtk.Button.Gtk_Button; |
function Get_Font
( | Fontsel | : access Gtk_Font_Selection_Record) return Gdk.Font.Gdk_Font; |
function Get_Font
( | Fsd | : access Gtk_Font_Selection_Dialog_Record) return Gdk.Font.Gdk_Font; |
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.
Binding from C File version 2.8.17
<testgtk>create_font_selection.adb</testgtk>