enum Gtk::Ordering

Overview

Describes the way two values can be compared.

These values can be used with a GLib::CompareFunc. However, a GCompareFunc is allowed to return any integer values. For converting such a value to a Gtk::Ordering value, use Gtk::Ordering#from_cmpfunc.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/gtk.cr

Enum Members

Smaller = -1

the first value is smaller than the second

Equal = 0

the two values are equal

Larger = 1

the first value is larger than the second

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


[View source]

Instance Method Detail

def equal? #

[View source]
def larger? #

[View source]
def smaller? #

[View source]