Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: CellRendererProgress

[14:7] extends: object

Renders numbers as progress bars GtkCellRendererProgress renders a numeric value as a progress par in a cell. Additionally, it can display a text on top of the progress bar.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • CellRendererProgress ()

    Creates a new GtkCellRendererProgress.

  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asCellRenderer ()

    Wraps this handle as CellRenderer.

    • @r A CellRenderer object.
  • asOrientable ()

    Wraps this handle as Orientable.

    • @r A Orientable object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setInverted (bool Value)

    Whether progess is inverted.

    • @p Value is the new property value.
    • @r None.
  • setPulse (int Value)

    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.

    • @p Value is the new property value.
    • @r None.
  • setText (string Value)

    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.

    • @p Value is the new property value.
    • @r None.
  • setTextxalign (double Value)

    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.

    • @p Value is the new property value.
    • @r None.
  • setTextyalign (double Value)

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

    • @p Value is the new property value.
    • @r None.
  • setValue (int Value)

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

    • @p Value is the new property value.
    • @r None.

class: CellRendererProgressMeta

[217:14] static extends: object

Generated metadata helpers for CellRendererProgress class surfaces.

Methods

  • properties ()

    Returns property metadata for CellRendererProgress.

    • @r A list.