Class: Gtk::CellRendererProgress

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#inverted=(inverted) ⇒ TrueClass

Parameters:

  • inverted (TrueClass)

Returns:

  • (TrueClass)

    inverted

  • (TrueClass)

    inverted

#inverted?TrueClass

Returns inverted.

Returns:

  • (TrueClass)

    inverted

#newGtk::CellRenderer

Creates a new Gtk::CellRendererProgress.

Returns:

#pulseInteger

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.

Returns:

  • (Integer)

    pulse

#pulse=(pulse) ⇒ Integer

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.

Parameters:

  • pulse (Integer)

Returns:

  • (Integer)

    pulse

  • (Integer)

    pulse

#textString

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

Returns:

  • (String)

    text

#text=(text) ⇒ String

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

Parameters:

  • text (String)

Returns:

  • (String)

    text

  • (String)

    text

#text_xalignGtk::gfloat

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.

Returns:

  • (Gtk::gfloat)

    text-xalign

#text_xalign=(text_xalign) ⇒ Gtk::gfloat

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.

Parameters:

  • text_xalign (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    text-xalign

  • (Gtk::gfloat)

    text-xalign

#text_yalignGtk::gfloat

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

Returns:

  • (Gtk::gfloat)

    text-yalign

#text_yalign=(text_yalign) ⇒ Gtk::gfloat

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

Parameters:

  • text_yalign (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    text-yalign

  • (Gtk::gfloat)

    text-yalign

#valueInteger

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

Returns:

  • (Integer)

    value

#value=(value) ⇒ Integer

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

Parameters:

  • value (Integer)

Returns:

  • (Integer)

    value

  • (Integer)

    value