class GObject::EnumClass

Overview

The class of an enumeration type holds information about its possible values.

Defined in:

lib/gi-crystal/src/auto/g_object-2.0/enum_class.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

[View source]
def self.new(data : LibGObject::EnumClass, transfer : GICrystal::Transfer) #

[View source]
def self.new(g_type_class : GObject::TypeClass | Nil = nil, minimum : Int32 | Nil = nil, maximum : Int32 | Nil = nil, n_values : UInt32 | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


[View source]
def g_type_class : GObject::TypeClass #

[View source]
def g_type_class=(value : GObject::TypeClass) #

[View source]
def maximum : Int32 #

[View source]
def maximum=(value : Int32) #

[View source]
def minimum : Int32 #

[View source]
def minimum=(value : Int32) #

[View source]
def n_values : UInt32 #

[View source]
def n_values=(value : UInt32) #

[View source]
def to_unsafe #

[View source]
def values : GObject::EnumValue | Nil #

[View source]
def values! #

[View source]