Class MountOperation

All Implemented Interfaces:
PointerInterface

public class MountOperation extends MountOperation
`GtkMountOperation` is an implementation of `GMountOperation`.

The functions and objects described here make working with GTK and
GIO more convenient.

`GtkMountOperation` is needed when mounting volumes:
It is an implementation of `GMountOperation` that can be used with
GIO functions for mounting volumes such as
g_file_mount_enclosing_volume(), g_file_mount_mountable(),
g_volume_mount(), g_mount_unmount_with_operation() and others.

When necessary, `GtkMountOperation` shows dialogs to let the user
enter passwords, ask questions or show processes blocking unmount.

https://docs.gtk.org/gtk4/class.MountOperation.html

  • Constructor Details

    • MountOperation

      public MountOperation(PointerContainer pointer)
    • MountOperation

      public MountOperation(@Nullable Window parent)
      Creates a new `GtkMountOperation`.
      Parameters:
      parent - transient parent of the window
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getDisplay

      public Display getDisplay()
      Gets the display on which windows of the `GtkMountOperation`
      will be shown.
      Returns:
      the display on which windows of @op are shown
    • getParent

      public Window getParent()
      Gets the transient parent used by the `GtkMountOperation`.
      Returns:
      the transient parent for windows shown by @op
    • isShowing

      public boolean isShowing()
      Returns whether the `GtkMountOperation` is currently displaying
      a window.
      Returns:
      %TRUE if @op is currently displaying a window
    • setDisplay

      public void setDisplay(@Nonnull Display display)
      Sets the display to show windows of the `GtkMountOperation` on.
      Parameters:
      display - a `GdkDisplay`
    • setParent

      public void setParent(@Nullable Window parent)
      Sets the transient parent for windows shown by the
      `GtkMountOperation`.
      Parameters:
      parent - transient parent of the window
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()