pragma Ada_2005;
pragma Warnings (Off, "*is already use-visible*");
with GNAT.Strings; use GNAT.Strings;
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.Adjustment; use Gtk.Adjustment;
with Gtk.Buildable; use Gtk.Buildable;
with Gtk.Button; use Gtk.Button;
with Gtk.Enums; use Gtk.Enums;
with Gtk.Orientable; use Gtk.Orientable;
with Gtk.Widget; use Gtk.Widget;
package Gtk.Scale_Button is
type Gtk_Scale_Button_Record is new Gtk_Button_Record with null record;
type Gtk_Scale_Button is access all Gtk_Scale_Button_Record'Class;
procedure Gtk_New
(Button : out Gtk_Scale_Button;
Size : Gtk.Enums.Gtk_Icon_Size;
Min : Gdouble;
Max : Gdouble;
Step : Gdouble;
Icons : GNAT.Strings.String_List);
procedure Initialize
(Button : not null access Gtk_Scale_Button_Record'Class;
Size : Gtk.Enums.Gtk_Icon_Size;
Min : Gdouble;
Max : Gdouble;
Step : Gdouble;
Icons : GNAT.Strings.String_List);
function Gtk_Scale_Button_New
(Size : Gtk.Enums.Gtk_Icon_Size;
Min : Gdouble;
Max : Gdouble;
Step : Gdouble;
Icons : GNAT.Strings.String_List) return Gtk_Scale_Button;
function Get_Type return Glib.GType;
pragma Import (C, Get_Type, "gtk_scale_button_get_type");
function Get_Adjustment
(Button : not null access Gtk_Scale_Button_Record)
return Gtk.Adjustment.Gtk_Adjustment;
procedure Set_Adjustment
(Button : not null access Gtk_Scale_Button_Record;
Adjustment : not null access Gtk.Adjustment.Gtk_Adjustment_Record'Class);
function Get_Minus_Button
(Button : not null access Gtk_Scale_Button_Record)
return Gtk.Widget.Gtk_Widget;
function Get_Plus_Button
(Button : not null access Gtk_Scale_Button_Record)
return Gtk.Widget.Gtk_Widget;
function Get_Popup
(Button : not null access Gtk_Scale_Button_Record)
return Gtk.Widget.Gtk_Widget;
function Get_Value
(Button : not null access Gtk_Scale_Button_Record) return Gdouble;
procedure Set_Value
(Button : not null access Gtk_Scale_Button_Record;
Value : Gdouble);
procedure Set_Icons
(Button : not null access Gtk_Scale_Button_Record;
Icons : GNAT.Strings.String_List);
function Get_Action_Name
(Self : not null access Gtk_Scale_Button_Record) return UTF8_String;
procedure Set_Action_Name
(Self : not null access Gtk_Scale_Button_Record;
Action_Name : UTF8_String);
function Get_Action_Target_Value
(Self : not null access Gtk_Scale_Button_Record)
return Glib.Variant.Gvariant;
procedure Set_Action_Target_Value
(Self : not null access Gtk_Scale_Button_Record;
Target_Value : Glib.Variant.Gvariant);
procedure Set_Detailed_Action_Name
(Self : not null access Gtk_Scale_Button_Record;
Detailed_Action_Name : UTF8_String);
procedure Do_Set_Related_Action
(Self : not null access Gtk_Scale_Button_Record;
Action : not null access Gtk.Action.Gtk_Action_Record'Class);
function Get_Related_Action
(Self : not null access Gtk_Scale_Button_Record)
return Gtk.Action.Gtk_Action;
procedure Set_Related_Action
(Self : not null access Gtk_Scale_Button_Record;
Action : not null access Gtk.Action.Gtk_Action_Record'Class);
function Get_Use_Action_Appearance
(Self : not null access Gtk_Scale_Button_Record) return Boolean;
procedure Set_Use_Action_Appearance
(Self : not null access Gtk_Scale_Button_Record;
Use_Appearance : Boolean);
procedure Sync_Action_Properties
(Self : not null access Gtk_Scale_Button_Record;
Action : access Gtk.Action.Gtk_Action_Record'Class);
function Get_Orientation
(Self : not null access Gtk_Scale_Button_Record)
return Gtk.Enums.Gtk_Orientation;
procedure Set_Orientation
(Self : not null access Gtk_Scale_Button_Record;
Orientation : Gtk.Enums.Gtk_Orientation);
Icons_Property : constant Glib.Properties.Property_String :=
Glib.Properties.Build ("icons");
Adjustment_Property : constant Glib.Properties.Property_Object;
Size_Property : constant Gtk.Enums.Property_Gtk_Icon_Size;
Value_Property : constant Glib.Properties.Property_Double;
type Cb_Gtk_Scale_Button_Void is not null access procedure
(Self : access Gtk_Scale_Button_Record'Class);
type Cb_GObject_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class);
Signal_Popdown : constant Glib.Signal_Name := "popdown";
procedure On_Popdown
(Self : not null access Gtk_Scale_Button_Record;
Call : Cb_Gtk_Scale_Button_Void;
After : Boolean := False);
procedure On_Popdown
(Self : not null access Gtk_Scale_Button_Record;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False);
Signal_Popup : constant Glib.Signal_Name := "popup";
procedure On_Popup
(Self : not null access Gtk_Scale_Button_Record;
Call : Cb_Gtk_Scale_Button_Void;
After : Boolean := False);
procedure On_Popup
(Self : not null access Gtk_Scale_Button_Record;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False);
type Cb_Gtk_Scale_Button_Gdouble_Void is not null access procedure
(Self : access Gtk_Scale_Button_Record'Class;
Value : Gdouble);
type Cb_GObject_Gdouble_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class;
Value : Gdouble);
Signal_Value_Changed : constant Glib.Signal_Name := "value-changed";
procedure On_Value_Changed
(Self : not null access Gtk_Scale_Button_Record;
Call : Cb_Gtk_Scale_Button_Gdouble_Void;
After : Boolean := False);
procedure On_Value_Changed
(Self : not null access Gtk_Scale_Button_Record;
Call : Cb_GObject_Gdouble_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_Scale_Button_Record, Gtk_Scale_Button);
function "+"
(Widget : access Gtk_Scale_Button_Record'Class)
return Gtk.Actionable.Gtk_Actionable
renames Implements_Gtk_Actionable.To_Interface;
function "-"
(Interf : Gtk.Actionable.Gtk_Actionable)
return Gtk_Scale_Button
renames Implements_Gtk_Actionable.To_Object;
package Implements_Gtk_Activatable is new Glib.Types.Implements
(Gtk.Activatable.Gtk_Activatable, Gtk_Scale_Button_Record, Gtk_Scale_Button);
function "+"
(Widget : access Gtk_Scale_Button_Record'Class)
return Gtk.Activatable.Gtk_Activatable
renames Implements_Gtk_Activatable.To_Interface;
function "-"
(Interf : Gtk.Activatable.Gtk_Activatable)
return Gtk_Scale_Button
renames Implements_Gtk_Activatable.To_Object;
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Scale_Button_Record, Gtk_Scale_Button);
function "+"
(Widget : access Gtk_Scale_Button_Record'Class)
return Gtk.Buildable.Gtk_Buildable
renames Implements_Gtk_Buildable.To_Interface;
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Scale_Button
renames Implements_Gtk_Buildable.To_Object;
package Implements_Gtk_Orientable is new Glib.Types.Implements
(Gtk.Orientable.Gtk_Orientable, Gtk_Scale_Button_Record, Gtk_Scale_Button);
function "+"
(Widget : access Gtk_Scale_Button_Record'Class)
return Gtk.Orientable.Gtk_Orientable
renames Implements_Gtk_Orientable.To_Interface;
function "-"
(Interf : Gtk.Orientable.Gtk_Orientable)
return Gtk_Scale_Button
renames Implements_Gtk_Orientable.To_Object;
private
Value_Property : constant Glib.Properties.Property_Double :=
Glib.Properties.Build ("value");
Size_Property : constant Gtk.Enums.Property_Gtk_Icon_Size :=
Gtk.Enums.Build ("size");
Adjustment_Property : constant Glib.Properties.Property_Object :=
Glib.Properties.Build ("adjustment");
end Gtk.Scale_Button;