GtkVolumeButton is a GtkScaleButton subclass tailored for volume control.
<picture> <source srcset="volumebutton-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkVolumeButton" src="volumebutton.png"> </picture> <group>Numeric/Text Data Entry</group> <gtkada_demo>create_range.adb</gtkada_demo>
function "+"
(Widget : access Gtk_Volume_Button_Record'Class)
return Gtk.Accessible.Gtk_Accessible
function "+"
(Widget : access Gtk_Volume_Button_Record'Class)
return Gtk.Accessible_Range.Gtk_Accessible_Range
function "+"
(Widget : access Gtk_Volume_Button_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "+"
(Widget : access Gtk_Volume_Button_Record'Class)
return Gtk.Constraint_Target.Gtk_Constraint_Target
function "+"
(Widget : access Gtk_Volume_Button_Record'Class)
return Gtk.Orientable.Gtk_Orientable
function "-"
(Interf : Gtk.Accessible.Gtk_Accessible)
return Gtk_Volume_Button
function "-"
(Interf : Gtk.Accessible_Range.Gtk_Accessible_Range)
return Gtk_Volume_Button
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Volume_Button
function "-"
(Interf : Gtk.Constraint_Target.Gtk_Constraint_Target)
return Gtk_Volume_Button
function "-"
(Interf : Gtk.Orientable.Gtk_Orientable)
return Gtk_Volume_Button
procedure Announce
(Self : not null access Gtk_Volume_Button_Record;
Message : UTF8_String;
Priority : Gtk.Accessible.Gtk_Accessible_Announcement_Priority)
function Get_Accessible_Id
(Self : not null access Gtk_Volume_Button_Record) return UTF8_String
function Get_Accessible_Parent
(Self : not null access Gtk_Volume_Button_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Accessible_Role
(Self : not null access Gtk_Volume_Button_Record)
return Gtk.Accessible.Gtk_Accessible_Role
function Get_At_Context
(Self : not null access Gtk_Volume_Button_Record)
return Gtk.Atcontext.Gtk_Atcontext
function Get_Bounds
(Self : not null access Gtk_Volume_Button_Record;
X : out Glib.Gint;
Y : out Glib.Gint;
Width : out Glib.Gint;
Height : out Glib.Gint) return Boolean
function Get_First_Accessible_Child
(Self : not null access Gtk_Volume_Button_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Next_Accessible_Sibling
(Self : not null access Gtk_Volume_Button_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Orientation
(Self : not null access Gtk_Volume_Button_Record)
return Gtk.Enums.Gtk_Orientation
function Get_Platform_State
(Self : not null access Gtk_Volume_Button_Record;
State : Gtk.Accessible.Gtk_Accessible_Platform_State) return Boolean
function Get_Type return Glib.GType
procedure Gtk_New (Self : out Gtk_Volume_Button)
Creates a GtkVolumeButton. The button has a range between 0.0 and 1.0, with a stepping of 0.02. Volume values can be obtained and modified using the functions from [classGtk.ScaleButton]. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
type Gtk_Volume_Button is access all Gtk_Volume_Button_Record'Class;
function Gtk_Volume_Button_New return Gtk_Volume_Button
Creates a GtkVolumeButton. The button has a range between 0.0 and 1.0, with a stepping of 0.02. Volume values can be obtained and modified using the functions from [classGtk.ScaleButton].
type Gtk_Volume_Button_Record is new Gtk_Scale_Button_Record with null record;
package Implements_Gtk_Accessible is new Glib.Types.Implements
(Gtk.Accessible.Gtk_Accessible, Gtk_Volume_Button_Record, Gtk_Volume_Button);
package Implements_Gtk_Accessible_Range is new Glib.Types.Implements
(Gtk.Accessible_Range.Gtk_Accessible_Range, Gtk_Volume_Button_Record, Gtk_Volume_Button);
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Volume_Button_Record, Gtk_Volume_Button);
package Implements_Gtk_Constraint_Target is new Glib.Types.Implements
(Gtk.Constraint_Target.Gtk_Constraint_Target, Gtk_Volume_Button_Record, Gtk_Volume_Button);
package Implements_Gtk_Orientable is new Glib.Types.Implements
(Gtk.Orientable.Gtk_Orientable, Gtk_Volume_Button_Record, Gtk_Volume_Button);
procedure Initialize
(Self : not null access Gtk_Volume_Button_Record'Class)
Creates a GtkVolumeButton. The button has a range between 0.0 and 1.0, with a stepping of 0.02. Volume values can be obtained and modified using the functions from [classGtk.ScaleButton]. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
procedure Reset_Property
(Self : not null access Gtk_Volume_Button_Record;
Property : Gtk.Accessible.Gtk_Accessible_Property)
procedure Reset_Relation
(Self : not null access Gtk_Volume_Button_Record;
Relation : Gtk.Accessible.Gtk_Accessible_Relation)
procedure Reset_State
(Self : not null access Gtk_Volume_Button_Record;
State : Gtk.Accessible.Gtk_Accessible_State)
procedure Set_Accessible_Parent
(Self : not null access Gtk_Volume_Button_Record;
Parent : Gtk.Accessible.Gtk_Accessible;
Next_Sibling : Gtk.Accessible.Gtk_Accessible)
procedure Set_Orientation
(Self : not null access Gtk_Volume_Button_Record;
Orientation : Gtk.Enums.Gtk_Orientation)
procedure Update_Next_Accessible_Sibling
(Self : not null access Gtk_Volume_Button_Record;
New_Sibling : Gtk.Accessible.Gtk_Accessible)
procedure Update_Platform_State
(Self : not null access Gtk_Volume_Button_Record;
State : Gtk.Accessible.Gtk_Accessible_Platform_State)
Use_Symbolic_Property : constant Glib.Properties.Property_Boolean;
Whether to use symbolic icons as the icons.
Note that if the symbolic icons are not available in your installed theme, then the normal (potentially colorful) icons will be used.