Class: Gtk::NativeDialog

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Overview

Class structure for GtkNativeDialog.

Direct Known Subclasses

FileChooserNative

Instance Method Summary collapse

Instance Method Details

#destroynil

Destroys a dialog.

When a dialog is destroyed, it will break any references it holds to other objects.

If it is visible it will be hidden and any underlying window system resources will be destroyed.

Note that this does not release any reference to the object (as opposed to destroying a GtkWindow) because there is no reference from the windowing system to the GtkNativeDialog.

Returns:

  • (nil)

#hidenil

Hides the dialog if it is visible, aborting any interaction.

Once this is called the [signalGtk.NativeDialog::response] signal will not be emitted until after the next call to [methodGtk.NativeDialog.show].

If the dialog is not visible this does nothing.

Returns:

  • (nil)

Returns whether the dialog is modal.

Returns:

  • (Boolean)

    true if the dialog is set to be modal

#modal=(modal) ⇒ Boolean

Whether the window should be modal with respect to its transient parent.

Parameters:

  • modal (Boolean)

Returns:

  • (Boolean)

    modal

  • (Boolean)

    modal

#modal?Boolean

Whether the window should be modal with respect to its transient parent.

Returns:

  • (Boolean)

    modal

#shownil

Shows the dialog on the display.

When the user accepts the state of the dialog the dialog will be automatically hidden and the [signalGtk.NativeDialog::response] signal will be emitted.

Multiple calls while the dialog is visible will be ignored.

Returns:

  • (nil)

#titleString

The title of the dialog window

Returns:

  • (String)

    title

#title=(title) ⇒ String

The title of the dialog window

Parameters:

  • title (String)

Returns:

  • (String)

    title

  • (String)

    title

#transient_forGtk::Window

The transient parent of the dialog, or nil for none.

Returns:

#transient_for=(transient_for) ⇒ Gtk::Window

The transient parent of the dialog, or nil for none.

Parameters:

Returns:

#visibleBoolean

Determines whether the dialog is visible.

Returns:

  • (Boolean)

    true if the dialog is visible

#visible=(visible) ⇒ Boolean

Whether the window is currently visible.

Parameters:

  • visible (Boolean)

Returns:

  • (Boolean)

    visible

  • (Boolean)

    visible

#visible?Boolean

Whether the window is currently visible.

Returns:

  • (Boolean)

    visible