Toc Gallery Index Tree Gtk.Font_Button

Screenshot

No screeshot

Hierarchy

Description

The Gtk_Font_Button is a button which displays the currently selected font an allows to open a font selection dialog to change the font. It is suitable widget for selecting a font in a preference dialog.

Types

  • type Gtk_Font_Button is access all Gtk_Font_Button_Record'Class;
  • type Gtk_Font_Button_Record is new Gtk.Button.Gtk_Button_Record with null record;

Subprograms

  • procedure Gtk_New (Font_Button : out Gtk_Font_Button);
    procedure Initialize (Font_Button : access Gtk_Font_Button_Record'Class);
    Creates a new font picker widget.
  • procedure Gtk_New_With_Font (Font_Button : out Gtk_Font_Button; Fontname : String);
    procedure Initialize_With_Font (Font_Button : access Gtk_Font_Button_Record'Class; Fontname : String);
    Creates a new font picker widget.
  • function Get_Type return Gtk.Gtk_Type;
    Return the internal value associated with a Gtk_Font_Button
  • function Set_Font_Name (Font_Button : access Gtk_Font_Button_Record; Fontname : String) return Boolean;
    function Get_Font_Name (Font_Button : access Gtk_Font_Button_Record) return String;
    Sets or updates the currently-displayed font in font picker dialog. Returns the value of Gtk.Font_Selection.Set_Font_Name if the font selection dialog exists, False otherwise.
  • procedure Set_Show_Size (Font_Button : access Gtk_Font_Button_Record; Show_Size : Boolean);
    function Get_Show_Size (Font_Button : access Gtk_Font_Button_Record) return Boolean;
    If Show_Size is True, the font size will be displayed along with the name of the selected font.
  • procedure Set_Show_Style (Font_Button : access Gtk_Font_Button_Record; Show_Style : Boolean);
    function Get_Show_Style (Font_Button : access Gtk_Font_Button_Record) return Boolean;
    Returns whether the name of the font style will be shown in the label.
  • procedure Set_Title (Font_Button : access Gtk_Font_Button_Record; Title : String);
    function Get_Title (Font_Button : access Gtk_Font_Button_Record) return String;
    Retrieves the title of the font selection dialog.
  • procedure Set_Use_Font (Font_Button : access Gtk_Font_Button_Record; Use_Font : Boolean);
    function Get_Use_Font (Font_Button : access Gtk_Font_Button_Record) return Boolean;
    If Use_Font is True, the font name will be written using the selected font.
  • procedure Set_Use_Size (Font_Button : access Gtk_Font_Button_Record; Use_Size : Boolean);
    function Get_Use_Size (Font_Button : access Gtk_Font_Button_Record) return Boolean;
    If Use_Size is True, the font name will be written using the selected size.

Signals

Properties

  • Font_Name_Property
    String
    The name of the selected font
  • Show_Size_Property
    Boolean
    Whether selected font size is shown in the label
  • Show_Style_Property
    Boolean
    Whether the selected font style is shown in the label
  • Title_Property
    String
    The title of the font selection dialog
  • Use_Font_Property
    Boolean
    Whether the label is drawn in the selected font
  • Use_Size_Property
    Boolean
    Whether the label is drawn with the selected font size

Alphabetical Index