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.crEnum 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
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
-
#cancel?
Returns
trueif this enum value equalsCancel -
#close?
Returns
trueif this enum value equalsClose -
#none?
Returns
trueif this enum value equalsNone -
#ok?
Returns
trueif this enum value equalsOk -
#ok_cancel?
Returns
trueif this enum value equalsOkCancel -
#yes_no?
Returns
trueif this enum value equalsYesNo
Class methods inherited from struct Enum
g_type : UInt64
g_type
Class Method Detail
Returns the type id (GType) registered in GLib type system.