Interface

GcrComparable

since: 3

Description [src]

interface Gcr.Comparable : GObject.Object

An interface for comparing objects.

Available since: 3

Prerequisite

In order to implement Comparable, your type must inherit fromGObject.

Functions

gcr_comparable_memcmp

Compare two blocks of memory. The return value can be used to sort the blocks of memory.

since: 3

Instance methods

gcr_comparable_compare

Compare whether two objects represent the same thing. The return value can also be used to sort the objects.

since: 3

Interface structure

struct GcrComparableIface {
  GTypeInterface parent;
  gint (* compare) (
    GcrComparable* self,
    GcrComparable* other
  );
  
}

The interface to implement for GcrComparable

Interface members
parent
GTypeInterface
 

Type interface.

compare
gint (* compare) (
    GcrComparable* self,
    GcrComparable* other
  )
 

Compare whether tow objects represent the same thing.

Virtual methods

Gcr.Comparable.compare

Compare whether two objects represent the same thing. The return value can also be used to sort the objects.

since: 3