EntryBufferRef

public struct EntryBufferRef : EntryBufferProtocol, GWeakCapturing

A GtkEntryBuffer hold the text displayed in a GtkText widget.

A single GtkEntryBuffer object can be shared by multiple widgets which will then share the same text content, but not the cursor position, visibility attributes, icon etc.

GtkEntryBuffer may be derived from. Such a derived class might allow text to be stored in an alternate location, such as non-pageable memory, useful in the case of important passwords. Or a derived class could integrate with an application’s concept of undo/redo.

The EntryBufferRef type acts as a lightweight Swift reference to an underlying GtkEntryBuffer instance. It exposes methods that can operate on this data type through EntryBufferProtocol conformance. Use EntryBufferRef only as an unowned reference to an existing GtkEntryBuffer instance.

  • ptr
    Untyped pointer to the underlying `GtkEntryBuffer` instance.
    

    For type-safe access, use the generated, typed pointer entry_buffer_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

EntryBuffer Class

  • Designated initialiser from the underlying C data type

    Declaration

    Swift

    @inlinable
    init(_ p: UnsafeMutablePointer<GtkEntryBuffer>)
  • Designated initialiser from a constant pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init(_ p: UnsafePointer<GtkEntryBuffer>)
  • Conditional initialiser from an optional pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafeMutablePointer<GtkEntryBuffer>?)
  • Conditional initialiser from an optional, non-mutable pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafePointer<GtkEntryBuffer>?)
  • Conditional initialiser from an optional gpointer

    Declaration

    Swift

    @inlinable
    init!(gpointer g: gpointer?)
  • Conditional initialiser from an optional, non-mutable gconstpointer

    Declaration

    Swift

    @inlinable
    init!(gconstpointer g: gconstpointer?)
  • Reference intialiser for a related type that implements EntryBufferProtocol

    Declaration

    Swift

    @inlinable
    init<T>(_ other: T) where T : EntryBufferProtocol
  • This factory is syntactic sugar for setting weak pointers wrapped in GWeak<T>

    Declaration

    Swift

    @inlinable
    static func unowned<T>(_ other: T) -> EntryBufferRef where T : EntryBufferProtocol
  • Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to EntryBufferProtocol.

    Declaration

    Swift

    @inlinable
    init<T>(cPointer: UnsafeMutablePointer<T>)
  • Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to EntryBufferProtocol.

    Declaration

    Swift

    @inlinable
    init<T>(constPointer: UnsafePointer<T>)
  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to EntryBufferProtocol.

    Declaration

    Swift

    @inlinable
    init(mutating raw: UnsafeRawPointer)
  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to EntryBufferProtocol.

    Declaration

    Swift

    @inlinable
    init(raw: UnsafeMutableRawPointer)
  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to EntryBufferProtocol.

    Declaration

    Swift

    @inlinable
    init(opaquePointer: OpaquePointer)
  • Create a new `GtkEntryBuffer` object.
    

    Optionally, specify initial text to set in the buffer.

    Declaration

    Swift

    @inlinable
    init(initialChars: UnsafePointer<CChar>? = nil, nInitialChars: Int)