Class (GI Struct)

NM-1.0NMRange

Index

Constructors

Properties

Methods

Constructors

Properties

$gtype: GType<NM.Range>

Methods

  • Compare two ranges.

    Parameters

    Returns number

    zero if the two instances are equivalent or a non-zero integer otherwise. This defines a total ordering over the ranges.

  • Gets the start and end values for the range.

    Returns [boolean, number, number]

    true if the range contains more than one element, false otherwise.

  • Convert a %NMRange to a string.

    Returns string

    a string representing the range.

  • Decreases the reference count of the object. If the reference count reaches zero the object will be destroyed. This is thread-safe.

    Returns void

  • Parses the string representation of the range to create a %NMRange instance.

    Parameters

    • str: string

      the string representation of a range

    Returns NM.Range