DragAction
public struct DragAction : OptionSet
Used in GdkDrop
and GdkDrag
to indicate the actions that the
destination can and should do with the dropped data.
-
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
GdkDragAction
enum valueDeclaration
Swift
@inlinable public var value: GdkDragAction { 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
GdkDragAction
enum valueDeclaration
Swift
@inlinable public init(_ enumValue: GdkDragAction)
-
Creates a new instance with the specified Int value
Declaration
Swift
@inlinable public init<I>(_ intValue: I) where I : BinaryInteger
-
Copy the data.
Declaration
Swift
public static let copy: DragAction
-
Move the data, i.e. first copy it, then delete it from the source using the DELETE target of the X selection protocol.
Declaration
Swift
public static let move: DragAction
-
Add a link to the data. Note that this is only useful if source and destination agree on what it means, and is not supported on all platforms.
Declaration
Swift
public static let link: DragAction
-
Ask the user what to do with the data.
Declaration
Swift
public static let ask: DragAction