class GObject::EnumValue

Overview

A structure which contains a single enum value, its name, and its nickname.

Defined in:

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

Constructors

Instance Method Summary

Constructor Detail

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

def self.new(value : Int32? = nil, value_name : String? = nil, value_nick : String? = nil) #

Instance Method Detail

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

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


def to_unsafe #

def value : Int32 #

def value=(value : Int32) #

def value_name : String? #

def value_name! #

def value_name=(value : String?) #

def value_nick : String? #

def value_nick! #

def value_nick=(value : String?) #