enum Gtk::ButtonsType

Overview

Prebuilt sets of buttons for Gtk::Dialog.

If none of these choices are appropriate, simply use %GTK_BUTTONS_NONE and call Gtk::Dialog#add_buttons.

Please note that %GTK_BUTTONS_OK, %GTK_BUTTONS_YES_NO and %GTK_BUTTONS_OK_CANCEL are discouraged by the GNOME Human Interface Guidelines.

Defined in:

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

Enum Members

None = 0_u32

no buttons at all

Ok = 1_u32

an OK button

Close = 2_u32

a Close button

Cancel = 3_u32

a Cancel button

YesNo = 4_u32

Yes and No buttons

OkCancel = 5_u32

OK and Cancel buttons

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 cancel? #

def close? #

def none? #

def ok? #

def ok_cancel? #

def yes_no? #