pragma Ada_2005;
pragma Warnings (Off, "*is already use-visible*");
with Glib; use Glib;
with Glib.Object; use Glib.Object;
with Glib.Properties; use Glib.Properties;
with Glib.Types; use Glib.Types;
with Glib.Variant; use Glib.Variant;
with Gtk.Action; use Gtk.Action;
with Gtk.Actionable; use Gtk.Actionable;
with Gtk.Activatable; use Gtk.Activatable;
with Gtk.Buildable; use Gtk.Buildable;
with Gtk.Button; use Gtk.Button;
with Gtk.Font_Chooser; use Gtk.Font_Chooser;
with Pango.Font; use Pango.Font;
with Pango.Font_Face; use Pango.Font_Face;
with Pango.Font_Family; use Pango.Font_Family;
package Gtk.Font_Button is
type Gtk_Font_Button_Record is new Gtk_Button_Record with null record;
type Gtk_Font_Button is access all Gtk_Font_Button_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 (Font_Button : out Gtk_Font_Button);
procedure Initialize
(Font_Button : not null access Gtk_Font_Button_Record'Class);
function Gtk_Font_Button_New return Gtk_Font_Button;
procedure Gtk_New_With_Font
(Font_Button : out Gtk_Font_Button;
Fontname : UTF8_String);
procedure Initialize_With_Font
(Font_Button : not null access Gtk_Font_Button_Record'Class;
Fontname : UTF8_String);
function Gtk_Font_Button_New_With_Font
(Fontname : UTF8_String) return Gtk_Font_Button;
function Get_Type return Glib.GType;
pragma Import (C, Get_Type, "gtk_font_button_get_type");
function Get_Font_Name
(Font_Button : not null access Gtk_Font_Button_Record)
return UTF8_String;
function Set_Font_Name
(Font_Button : not null access Gtk_Font_Button_Record;
Fontname : UTF8_String) return Boolean;
function Get_Show_Size
(Font_Button : not null access Gtk_Font_Button_Record) return Boolean;
procedure Set_Show_Size
(Font_Button : not null access Gtk_Font_Button_Record;
Show_Size : Boolean);
function Get_Show_Style
(Font_Button : not null access Gtk_Font_Button_Record) return Boolean;
procedure Set_Show_Style
(Font_Button : not null access Gtk_Font_Button_Record;
Show_Style : Boolean);
function Get_Title
(Font_Button : not null access Gtk_Font_Button_Record)
return UTF8_String;
procedure Set_Title
(Font_Button : not null access Gtk_Font_Button_Record;
Title : UTF8_String);
function Get_Use_Font
(Font_Button : not null access Gtk_Font_Button_Record) return Boolean;
procedure Set_Use_Font
(Font_Button : not null access Gtk_Font_Button_Record;
Use_Font : Boolean);
function Get_Use_Size
(Font_Button : not null access Gtk_Font_Button_Record) return Boolean;
procedure Set_Use_Size
(Font_Button : not null access Gtk_Font_Button_Record;
Use_Size : Boolean);
procedure Set_Filter_Func
(Self : not null access Gtk_Font_Button_Record;
Filter : Gtk_Font_Filter_Func);
generic
type User_Data_Type (<>) is private;
with procedure Destroy (Data : in out User_Data_Type) is null;
package Set_Filter_Func_User_Data is
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;
Data : User_Data_Type) return Boolean;
procedure Set_Filter_Func
(Self : not null access Gtk.Font_Button.Gtk_Font_Button_Record'Class;
Filter : Gtk_Font_Filter_Func;
User_Data : User_Data_Type);
end Set_Filter_Func_User_Data;
function Get_Action_Name
(Self : not null access Gtk_Font_Button_Record) return UTF8_String;
procedure Set_Action_Name
(Self : not null access Gtk_Font_Button_Record;
Action_Name : UTF8_String);
function Get_Action_Target_Value
(Self : not null access Gtk_Font_Button_Record)
return Glib.Variant.Gvariant;
procedure Set_Action_Target_Value
(Self : not null access Gtk_Font_Button_Record;
Target_Value : Glib.Variant.Gvariant);
procedure Set_Detailed_Action_Name
(Self : not null access Gtk_Font_Button_Record;
Detailed_Action_Name : UTF8_String);
procedure Do_Set_Related_Action
(Self : not null access Gtk_Font_Button_Record;
Action : not null access Gtk.Action.Gtk_Action_Record'Class);
function Get_Related_Action
(Self : not null access Gtk_Font_Button_Record)
return Gtk.Action.Gtk_Action;
procedure Set_Related_Action
(Self : not null access Gtk_Font_Button_Record;
Action : not null access Gtk.Action.Gtk_Action_Record'Class);
function Get_Use_Action_Appearance
(Self : not null access Gtk_Font_Button_Record) return Boolean;
procedure Set_Use_Action_Appearance
(Self : not null access Gtk_Font_Button_Record;
Use_Appearance : Boolean);
procedure Sync_Action_Properties
(Self : not null access Gtk_Font_Button_Record;
Action : access Gtk.Action.Gtk_Action_Record'Class);
function Get_Font
(Self : not null access Gtk_Font_Button_Record) return UTF8_String;
procedure Set_Font
(Self : not null access Gtk_Font_Button_Record;
Fontname : UTF8_String);
function Get_Font_Desc
(Self : not null access Gtk_Font_Button_Record)
return Pango.Font.Pango_Font_Description;
procedure Set_Font_Desc
(Self : not null access Gtk_Font_Button_Record;
Font_Desc : Pango.Font.Pango_Font_Description);
function Get_Font_Face
(Self : not null access Gtk_Font_Button_Record)
return Pango.Font_Face.Pango_Font_Face;
function Get_Font_Family
(Self : not null access Gtk_Font_Button_Record)
return Pango.Font_Family.Pango_Font_Family;
function Get_Font_Size
(Self : not null access Gtk_Font_Button_Record) return Gint;
function Get_Preview_Text
(Self : not null access Gtk_Font_Button_Record) return UTF8_String;
procedure Set_Preview_Text
(Self : not null access Gtk_Font_Button_Record;
Text : UTF8_String);
function Get_Show_Preview_Entry
(Self : not null access Gtk_Font_Button_Record) return Boolean;
procedure Set_Show_Preview_Entry
(Self : not null access Gtk_Font_Button_Record;
Show_Preview_Entry : Boolean);
Font_Name_Property : constant Glib.Properties.Property_String;
Show_Size_Property : constant Glib.Properties.Property_Boolean;
Show_Style_Property : constant Glib.Properties.Property_Boolean;
Title_Property : constant Glib.Properties.Property_String;
Use_Font_Property : constant Glib.Properties.Property_Boolean;
Use_Size_Property : constant Glib.Properties.Property_Boolean;
type Cb_Gtk_Font_Button_Void is not null access procedure
(Self : access Gtk_Font_Button_Record'Class);
type Cb_GObject_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class);
Signal_Font_Set : constant Glib.Signal_Name := "font-set";
procedure On_Font_Set
(Self : not null access Gtk_Font_Button_Record;
Call : Cb_Gtk_Font_Button_Void;
After : Boolean := False);
procedure On_Font_Set
(Self : not null access Gtk_Font_Button_Record;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False);
package Implements_Gtk_Actionable is new Glib.Types.Implements
(Gtk.Actionable.Gtk_Actionable, Gtk_Font_Button_Record, Gtk_Font_Button);
function "+"
(Widget : access Gtk_Font_Button_Record'Class)
return Gtk.Actionable.Gtk_Actionable
renames Implements_Gtk_Actionable.To_Interface;
function "-"
(Interf : Gtk.Actionable.Gtk_Actionable)
return Gtk_Font_Button
renames Implements_Gtk_Actionable.To_Object;
package Implements_Gtk_Activatable is new Glib.Types.Implements
(Gtk.Activatable.Gtk_Activatable, Gtk_Font_Button_Record, Gtk_Font_Button);
function "+"
(Widget : access Gtk_Font_Button_Record'Class)
return Gtk.Activatable.Gtk_Activatable
renames Implements_Gtk_Activatable.To_Interface;
function "-"
(Interf : Gtk.Activatable.Gtk_Activatable)
return Gtk_Font_Button
renames Implements_Gtk_Activatable.To_Object;
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Font_Button_Record, Gtk_Font_Button);
function "+"
(Widget : access Gtk_Font_Button_Record'Class)
return Gtk.Buildable.Gtk_Buildable
renames Implements_Gtk_Buildable.To_Interface;
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Font_Button
renames Implements_Gtk_Buildable.To_Object;
package Implements_Gtk_Font_Chooser is new Glib.Types.Implements
(Gtk.Font_Chooser.Gtk_Font_Chooser, Gtk_Font_Button_Record, Gtk_Font_Button);
function "+"
(Widget : access Gtk_Font_Button_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_Button
renames Implements_Gtk_Font_Chooser.To_Object;
private
Use_Size_Property : constant Glib.Properties.Property_Boolean :=
Glib.Properties.Build ("use-size");
Use_Font_Property : constant Glib.Properties.Property_Boolean :=
Glib.Properties.Build ("use-font");
Title_Property : constant Glib.Properties.Property_String :=
Glib.Properties.Build ("title");
Show_Style_Property : constant Glib.Properties.Property_Boolean :=
Glib.Properties.Build ("show-style");
Show_Size_Property : constant Glib.Properties.Property_Boolean :=
Glib.Properties.Build ("show-size");
Font_Name_Property : constant Glib.Properties.Property_String :=
Glib.Properties.Build ("font-name");
end Gtk.Font_Button;