TargetEntryProtocol

public protocol TargetEntryProtocol

A GtkTargetEntry represents a single type of data than can be supplied for by a widget for a selection or for supplied or received during drag-and-drop.

The TargetEntryProtocol protocol exposes the methods and properties of an underlying GtkTargetEntry instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see TargetEntry. Alternatively, use TargetEntryRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying GtkTargetEntry instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • target_entry_ptr Default implementation

    Typed pointer to the underlying GtkTargetEntry instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GtkTargetEntry instance.

    Declaration

    Swift

    var target_entry_ptr: UnsafeMutablePointer<GtkTargetEntry>! { get }
  • Required Initialiser for types conforming to TargetEntryProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

TargetEntry Record: TargetEntryProtocol extension (methods and fields)

  • copy() Extension method

    Makes a copy of a GtkTargetEntry and its data.

    Declaration

    Swift

    @inlinable
    func copy() -> TargetEntryRef!
  • free() Extension method

    Frees a GtkTargetEntry returned from gtk_target_entry_new() or gtk_target_entry_copy().

    Declaration

    Swift

    @inlinable
    func free()
  • target Extension method

    a string representation of the target type

    Declaration

    Swift

    @inlinable
    var target: UnsafeMutablePointer<gchar>! { get set }
  • flags Extension method

    GtkTargetFlags for DND

    Declaration

    Swift

    @inlinable
    var flags: guint { get set }
  • info Extension method

    an application-assigned integer ID which will get passed as a parameter to e.g the GtkWidget::selection-get signal. It allows the application to identify the target type without extensive string compares.

    Declaration

    Swift

    @inlinable
    var info: guint { get set }