Gtk.Cell_Renderer_Progress

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

Gtk.Cell_Renderer_Progress.Gtk_Cell_Renderer_Progress renders a numeric value as a progress par in a cell. Additionally, it can display a text on top of the progress bar.

The Gtk.Cell_Renderer_Progress.Gtk_Cell_Renderer_Progress cell renderer was added in GTK+ 2.6.

"+"

function "+"
  (Widget : access Gtk_Cell_Renderer_Progress_Record'Class)
return Gtk.Orientable.Gtk_Orientable
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Orientable.Gtk_Orientable)
return Gtk_Cell_Renderer_Progress
Parameters
Interf
Return Value

Get_Orientation

function Get_Orientation
   (Self : not null access Gtk_Cell_Renderer_Progress_Record)
    return Gtk.Enums.Gtk_Orientation
Parameters
Self
Return Value

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Cell_Renderer_Progress

type Gtk_Cell_Renderer_Progress is access all Gtk_Cell_Renderer_Progress_Record'Class;

Gtk_Cell_Renderer_Progress_New

function Gtk_Cell_Renderer_Progress_New return Gtk_Cell_Renderer_Progress

Creates a new Gtk.Cell_Renderer_Progress.Gtk_Cell_Renderer_Progress. Since: gtk+ 2.6

Return Value

Gtk_Cell_Renderer_Progress_Record

type Gtk_Cell_Renderer_Progress_Record is new Gtk_Cell_Renderer_Record with null record;

Gtk_New

procedure Gtk_New (Self : out Gtk_Cell_Renderer_Progress)

Creates a new Gtk.Cell_Renderer_Progress.Gtk_Cell_Renderer_Progress. Since: gtk+ 2.6 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self

Implements_Gtk_Orientable

package Implements_Gtk_Orientable is new Glib.Types.Implements
  (Gtk.Orientable.Gtk_Orientable, Gtk_Cell_Renderer_Progress_Record, Gtk_Cell_Renderer_Progress);

Initialize

procedure Initialize
   (Self : not null access Gtk_Cell_Renderer_Progress_Record'Class)

Creates a new Gtk.Cell_Renderer_Progress.Gtk_Cell_Renderer_Progress. Since: gtk+ 2.6 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self

Inverted_Property

Inverted_Property : constant Glib.Properties.Property_Boolean;

Pulse_Property

Pulse_Property : constant Glib.Properties.Property_Int;

Setting this to a non-negative value causes the cell renderer to enter "activity mode", where a block bounces back and forth to indicate that some progress is made, without specifying exactly how much.

Each increment of the property causes the block to move by a little bit.

To indicate that the activity has not started yet, set the property to zero. To indicate completion, set the property to G_MAXINT.

Set_Orientation

procedure Set_Orientation
   (Self        : not null access Gtk_Cell_Renderer_Progress_Record;
    Orientation : Gtk.Enums.Gtk_Orientation)
Parameters
Self
Orientation

Text_Property

Text_Property : constant Glib.Properties.Property_String;

The "text" property determines the label which will be drawn over the progress bar. Setting this property to null causes the default label to be displayed. Setting this property to an empty string causes no label to be displayed.

Text_Xalign_Property

Text_Xalign_Property : constant Glib.Properties.Property_Float;

The "text-xalign" property controls the horizontal alignment of the text in the progress bar. Valid values range from 0 (left) to 1 (right). Reserved for RTL layouts.

Text_Yalign_Property

Text_Yalign_Property : constant Glib.Properties.Property_Float;

The "text-yalign" property controls the vertical alignment of the text in the progress bar. Valid values range from 0 (top) to 1 (bottom).

Value_Property

Value_Property : constant Glib.Properties.Property_Int;

The "value" property determines the percentage to which the progress bar will be "filled in".