Index

Package: Progress_Bar

Description

package Gtk.Progress_Bar is
The progress bar provides a convenient way of displaying a state of completion for typically lengthy tasks.

Binding from C File version 2.8.17

<testgtk>create_progress.adb</testgtk>

Screenshot

gtk-progress_bar.png

Classes

Gtk_Progress_Bar_Record

type Gtk_Progress_Bar_Record is new
     Gtk.Progress.Gtk_Progress_Record with private;

Ancestors:

Primitive operations:

Get_Ellipsize
Get_Fraction
Get_Orientation
Get_Pulse_Step
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Gtk.Progress.Configure (Inherited)
Gtk.Progress.Get_Activity_Mode (Inherited)
Gtk.Progress.Get_Adjustment (Inherited)
Gtk.Progress.Get_Current_Percentage (Inherited)
Gtk.Progress.Get_Current_Text (Inherited)
Gtk.Progress.Get_Percentage_From_Value (Inherited)
Gtk.Progress.Get_Text_From_Value (Inherited)
Gtk.Progress.Get_Value (Inherited)
Gtk.Progress.Set_Activity_Mode (Inherited)
Gtk.Progress.Set_Adjustment (Inherited)
Gtk.Progress.Set_Format_String (Inherited)
Gtk.Progress.Set_Percentage (Inherited)
Gtk.Progress.Set_Show_Text (Inherited)
Gtk.Progress.Set_Text_Alignment (Inherited)
Gtk.Progress.Set_Value (Inherited)
Gtk.Widget.Activate (Inherited)
Gtk.Widget.Add_Accelerator (Inherited)
Gtk.Widget.Add_Events (Inherited)
Gtk.Widget.Add_Mnemonic_Label (Inherited)
Gtk.Widget.Can_Activate_Accel (Inherited)
Gtk.Widget.Child_Notify (Inherited)
Gtk.Widget.Class_Path (Inherited)
Gtk.Widget.Class_Path_Reversed (Inherited)
Gtk.Widget.Create_Pango_Context (Inherited)
Gtk.Widget.Create_Pango_Layout (Inherited)
Gtk.Widget.Destroy (Inherited)
Gtk.Widget.Draw (Inherited)
Gtk.Widget.Ensure_Style (Inherited)
Gtk.Widget.Error_Bell (Inherited)
Gtk.Widget.Flag_Is_Set (Inherited)
Gtk.Widget.Flags (Inherited)
Gtk.Widget.Freeze_Child_Notify (Inherited)
Gtk.Widget.Get_Allocation_Height (Inherited)
Gtk.Widget.Get_Allocation_Width (Inherited)
Gtk.Widget.Get_Allocation_X (Inherited)
Gtk.Widget.Get_Allocation_Y (Inherited)
Gtk.Widget.Get_Ancestor (Inherited)
Gtk.Widget.Get_Child_Requisition (Inherited)
Gtk.Widget.Get_Child_Visible (Inherited)
Gtk.Widget.Get_Colormap (Inherited)
Gtk.Widget.Get_Composite_Name (Inherited)
Gtk.Widget.Get_Direction (Inherited)
Gtk.Widget.Get_Events (Inherited)
Gtk.Widget.Get_Extension_Events (Inherited)
Gtk.Widget.Get_Has_Tooltip (Inherited)
Gtk.Widget.Get_Name (Inherited)
Gtk.Widget.Get_No_Show_All (Inherited)
Gtk.Widget.Get_Pango_Context (Inherited)
Gtk.Widget.Get_Parent (Inherited)
Gtk.Widget.Get_Parent_Window (Inherited)
Gtk.Widget.Get_Pointer (Inherited)
Gtk.Widget.Get_Root_Window (Inherited)
Gtk.Widget.Get_Size_Request (Inherited)
Gtk.Widget.Get_Snapshot (Inherited)
Gtk.Widget.Get_State (Inherited)
Gtk.Widget.Get_Style (Inherited)
Gtk.Widget.Get_Tooltip_Markup (Inherited)
Gtk.Widget.Get_Tooltip_Text (Inherited)
Gtk.Widget.Get_Tooltip_Window (Inherited)
Gtk.Widget.Get_Toplevel (Inherited)
Gtk.Widget.Get_Visual (Inherited)
Gtk.Widget.Get_Window (Inherited)
Gtk.Widget.Grab_Default (Inherited)
Gtk.Widget.Grab_Focus (Inherited)
Gtk.Widget.Has_Screen (Inherited)
Gtk.Widget.Hide (Inherited)
Gtk.Widget.Hide_All (Inherited)
Gtk.Widget.Input_Shape_Combine_Mask (Inherited)
Gtk.Widget.Intersect (Inherited)
Gtk.Widget.Is_Ancestor (Inherited)
Gtk.Widget.Is_Composited (Inherited)
Gtk.Widget.Is_Focus (Inherited)
Gtk.Widget.Keynav_Failed (Inherited)
Gtk.Widget.List_Mnemonic_Labels (Inherited)
Gtk.Widget.Map (Inherited)
Gtk.Widget.Mnemonic_Activate (Inherited)
Gtk.Widget.Modify_Base (Inherited)
Gtk.Widget.Modify_Bg (Inherited)
Gtk.Widget.Modify_Cursor (Inherited)
Gtk.Widget.Modify_Fg (Inherited)
Gtk.Widget.Modify_Font (Inherited)
Gtk.Widget.Modify_Text (Inherited)
Gtk.Widget.Path (Inherited)
Gtk.Widget.Path_Reversed (Inherited)
Gtk.Widget.Queue_Clear (Inherited)
Gtk.Widget.Queue_Clear_Area (Inherited)
Gtk.Widget.Queue_Draw (Inherited)
Gtk.Widget.Queue_Draw_Area (Inherited)
Gtk.Widget.Queue_Resize (Inherited)
Gtk.Widget.Queue_Resize_No_Redraw (Inherited)
Gtk.Widget.Realize (Inherited)
Gtk.Widget.Region_Intersect (Inherited)
Gtk.Widget.Remove_Accelerator (Inherited)
Gtk.Widget.Remove_Mnemonic_Label (Inherited)
Gtk.Widget.Render_Icon (Inherited)
Gtk.Widget.Reparent (Inherited)
Gtk.Widget.Reset_Rc_Styles (Inherited)
Gtk.Widget.Reset_Shapes (Inherited)
Gtk.Widget.Restore_Default_Style (Inherited)
Gtk.Widget.Send_Expose (Inherited)
Gtk.Widget.Set_Accel_Path (Inherited)
Gtk.Widget.Set_App_Paintable (Inherited)
Gtk.Widget.Set_Child_Visible (Inherited)
Gtk.Widget.Set_Colormap (Inherited)
Gtk.Widget.Set_Composite_Name (Inherited)
Gtk.Widget.Set_Direction (Inherited)
Gtk.Widget.Set_Double_Buffered (Inherited)
Gtk.Widget.Set_Events (Inherited)
Gtk.Widget.Set_Extension_Events (Inherited)
Gtk.Widget.Set_Flags (Inherited)
Gtk.Widget.Set_Has_Tooltip (Inherited)
Gtk.Widget.Set_Name (Inherited)
Gtk.Widget.Set_No_Show_All (Inherited)
Gtk.Widget.Set_Parent (Inherited)
Gtk.Widget.Set_Parent_Window (Inherited)
Gtk.Widget.Set_Redraw_On_Allocate (Inherited)
Gtk.Widget.Set_Scroll_Adjustments (Inherited)
Gtk.Widget.Set_Sensitive (Inherited)
Gtk.Widget.Set_Size_Request (Inherited)
Gtk.Widget.Set_State (Inherited)
Gtk.Widget.Set_Style (Inherited)
Gtk.Widget.Set_Tooltip_Markup (Inherited)
Gtk.Widget.Set_Tooltip_Text (Inherited)
Gtk.Widget.Set_Tooltip_Window (Inherited)
Gtk.Widget.Set_UPosition (Inherited)
Gtk.Widget.Set_USize (Inherited)
Gtk.Widget.Set_Window (Inherited)
Gtk.Widget.Shape_Combine_Mask (Inherited)
Gtk.Widget.Show (Inherited)
Gtk.Widget.Show_All (Inherited)
Gtk.Widget.Show_Now (Inherited)
Gtk.Widget.Size_Allocate (Inherited)
Gtk.Widget.Size_Request (Inherited)
Gtk.Widget.Style_Get_Property (Inherited)
Gtk.Widget.Thaw_Child_Notify (Inherited)
Gtk.Widget.Trigger_Tooltip_Query (Inherited)
Gtk.Widget.Unmap (Inherited)
Gtk.Widget.Unrealize (Inherited)
Gtk.Widget.Unset_Flags (Inherited)
Set_Ellipsize
Set_Fraction
Set_Orientation
Set_Pulse_Step
Gtk.Progress is obsolete

Types

Gtk_Progress_Bar_Orientation

type Gtk_Progress_Bar_Orientation is
     (Progress_Left_To_Right,
      Progress_Right_To_Left,
      Progress_Bottom_To_Top,
      Progress_Top_To_Bottom);

Gtk_Progress_Bar

type Gtk_Progress_Bar is access all Gtk_Progress_Bar_Record'Class;

Constants & Global variables

Discrete_Blocks_Property (Glib.Properties.Property_Uint)

Discrete_Blocks_Property : constant Glib.Properties.Property_Uint;

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Progress_Bar: out Gtk_Progress_Bar);

Initialize

procedure Initialize 
(Progress_Bar: access Gtk_Progress_Bar_Record'Class);
Creates or initializes a new progress bar.

Get_Type

function Get_Type return Gtk.Gtk_Type;
Return the internal value associated with a Gtk_Progress_Bar.

Pulse

procedure Pulse 
(Progress_Bar: access Gtk_Progress_Bar_Record);
Indicate that some progress is made, but you don't know how much. Causes the progress bar to enter "activity mode," where a block bounces back and forth. Each call to Pulse causes the block to move by a little bit (the amount of movement per pulse is determined by Set_Pulse_Step).

Set_Text

procedure Set_Text 
(Progress_Bar: access Gtk_Progress_Bar_Record;
Text: UTF8_String);

Get_Text

function Get_Text 
(Progress_Bar: access Gtk_Progress_Bar_Record) return UTF8_String;
Causes the given Text to appear superimposed on the progress bar. Text: a UTF-8 string.

Set_Fraction

procedure Set_Fraction 
(Progress_Bar: access Gtk_Progress_Bar_Record;
Fraction: Gdouble);

Get_Fraction

function Get_Fraction 
(Progress_Bar: access Gtk_Progress_Bar_Record) return Gdouble;
Cause the progress bar to "fill in" the given fraction of the bar. The fraction should be between 0.0 and 1.0, inclusive.

Set_Pulse_Step

procedure Set_Pulse_Step 
(Progress_Bar: access Gtk_Progress_Bar_Record;
Step: Gdouble);

Get_Pulse_Step

function Get_Pulse_Step 
(Progress_Bar: access Gtk_Progress_Bar_Record) return Gdouble;
Set the fraction of total progress bar length to move the bouncing block for each call to Pulse.

Set_Orientation

procedure Set_Orientation 
(Progress_Bar: access Gtk_Progress_Bar_Record;
Orientation: Gtk_Progress_Bar_Orientation);

Get_Orientation

function Get_Orientation 
(Progress_Bar: access Gtk_Progress_Bar_Record) return Gtk_Progress_Bar_Orientation;
Cause the progress bar to switch to a different orientation (left-to-right, right-to-left, top-to-bottom, or bottom-to-top).

Set_Ellipsize

procedure Set_Ellipsize 
(Pbar: access Gtk_Progress_Bar_Record;
Mode: Pango.Layout.Pango_Ellipsize_Mode);

Get_Ellipsize

function Get_Ellipsize 
(Pbar: access Gtk_Progress_Bar_Record) return Pango.Layout.Pango_Ellipsize_Mode;
Sets the mode used to ellipsize (add an ellipsis: "...") the text if there is not enough space to render the entire string.