DestDefaults
public struct DestDefaults : OptionSet
The GtkDestDefaults
enumeration specifies the various
types of action that will be taken on behalf
of the user for a drag destination site.
-
The corresponding value of the raw type
Declaration
Swift
public var rawValue: UInt32
-
The equivalent raw Int value
Declaration
Swift
@inlinable public var intValue: Int { get set }
-
The equivalent raw
gint
valueDeclaration
Swift
@inlinable public var int: gint { get set }
-
The equivalent underlying
GtkDestDefaults
enum valueDeclaration
Swift
@inlinable public var value: GtkDestDefaults { get set }
-
Creates a new instance with the specified raw value
Declaration
Swift
@inlinable public init(rawValue: UInt32)
-
Creates a new instance with the specified
GtkDestDefaults
enum valueDeclaration
Swift
@inlinable public init(_ enumValue: GtkDestDefaults)
-
Creates a new instance with the specified Int value
Declaration
Swift
@inlinable public init<I>(_ intValue: I) where I : BinaryInteger
-
If set for a widget, GTK+, during a drag over this widget will check if the drag matches this widget’s list of possible targets and actions. GTK+ will then call
gdk_drag_status()
as appropriate.Declaration
Swift
public static let motion: DestDefaults
-
If set for a widget, GTK+ will draw a highlight on this widget as long as a drag is over this widget and the widget drag format and action are acceptable.
Declaration
Swift
public static let highlight: DestDefaults
-
If set for a widget, when a drop occurs, GTK+ will will check if the drag matches this widget’s list of possible targets and actions. If so, GTK+ will call
gtk_drag_get_data()
on behalf of the widget. Whether or not the drop is successful, GTK+ will callgtk_drag_finish()
. If the action was a move, then if the drag was successful, thentrue
will be passed for thedelete
parameter togtk_drag_finish()
.Declaration
Swift
public static let drop: DestDefaults
-
If set, specifies that all default actions should be taken.
Declaration
Swift
public static let all: DestDefaults