gtk.mount_operation

Module for [MountOperation] class

Types 3

gtk.mount_operation.MountOperation is an implementation of gio.mount_operation.MountOperation.

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

gtk.mount_operation.MountOperation is needed when mounting volumes: It is an implementation of gio.mount_operation.MountOperation that can be used with GIO functions for mounting volumes such as gio.file.File.mountEnclosingVolume, gio.file.File.mountMountable, gio.volume.Volume.mount, gio.mount.Mount.unmountWithOperation and others.

When necessary, gtk.mount_operation.MountOperation shows dialogs to let the user enter passwords, ask questions or show processes blocking unmount.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
MountOperation self() nothrowReturns `this`, for use in `with` statements.
MountOperationGidBuilder builder() static nothrowGet builder for [gtk.mount_operation.MountOperation] Returns: New builder object
gdk.display.Display display() @property nothrowGet `display` property. Returns: The display where dialogs will be shown.
void display(gdk.display.Display propval) @property nothrowSet `display` property. Params: propval = The display where dialogs will be shown.
gtk.window.Window parent() @property nothrowGet `parent` property. Returns: The parent window.
void parent(gtk.window.Window propval) @property nothrowSet `parent` property. Params: propval = The parent window.
gdk.display.Display getDisplay() nothrowGets the display on which windows of the [gtk.mount_operation.MountOperation] will be shown. Returns: the display on which windows of op are shown
gtk.window.Window getParent() nothrowGets the transient parent used by the [gtk.mount_operation.MountOperation]. Returns: the transient parent for windows shown by op
bool isShowing() nothrowReturns whether the [gtk.mount_operation.MountOperation] is currently displaying a window. Returns: true if op is currently displaying a window
void setDisplay(gdk.display.Display display) nothrowSets the display to show windows of the [gtk.mount_operation.MountOperation] on.
void setParent(gtk.window.Window parent = null) nothrowSets the transient parent for windows shown by the [gtk.mount_operation.MountOperation].
Constructors
this(void * ptr, Flag!"Take" take)
this(gtk.window.Window parent = null)Creates a new [gtk.mount_operation.MountOperation].

Fluent builder implementation template for gtk.mount_operation.MountOperation

Methods
T display(gdk.display.Display propval) nothrowSet `display` property. Params: propval = The display where dialogs will be shown. Returns: Builder instance for fluent chaining
T parent(gtk.window.Window propval) nothrowSet `parent` property. Params: propval = The parent window. Returns: Builder instance for fluent chaining
Methods
MountOperation build() nothrowCreate object from builder. Returns: New object