enum Gtk::ResponseType

Overview

Predefined values for use as response ids in gtk_dialog_add_button().

All predefined values are negative; GTK leaves values of 0 or greater for application-defined response ids.

Defined in:

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

Enum Members

None = -1

Returned if an action widget has no response id, or if the dialog gets programmatically hidden or destroyed

Reject = -2

Generic response id, not used by GTK dialogs

Accept = -3

Generic response id, not used by GTK dialogs

DeleteEvent = -4

Returned if the dialog is deleted

Ok = -5

Returned by OK buttons in GTK dialogs

Cancel = -6

Returned by Cancel buttons in GTK dialogs

Close = -7

Returned by Close buttons in GTK dialogs

Yes = -8

Returned by Yes buttons in GTK dialogs

No = -9

Returned by No buttons in GTK dialogs

Apply = -10

Returned by Apply buttons in GTK dialogs

Help = -11

Returned by Help buttons in GTK dialogs

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.


Instance Method Detail

def accept? #

def apply? #

def cancel? #

def close? #

def delete_event? #

def help? #

def no? #

def none? #

def ok? #

def reject? #

def yes? #