CellViewRef

public struct CellViewRef : CellViewProtocol, GWeakCapturing

A GtkCellView displays a single row of a GtkTreeModel using a GtkCellArea and GtkCellAreaContext. A GtkCellAreaContext can be provided to the GtkCellView at construction time in order to keep the cellview in context of a group of cell views, this ensures that the renderers displayed will be properly aligned with eachother (like the aligned cells in the menus of GtkComboBox).

GtkCellView is GtkOrientable in order to decide in which orientation the underlying GtkCellAreaContext should be allocated. Taking the GtkComboBox menu as an example, cellviews should be oriented horizontally if the menus are listed top-to-bottom and thus all share the same width but may have separate individual heights (left-to-right menus should be allocated vertically since they all share the same height but may have variable widths).

CSS nodes

GtkCellView has a single CSS node with name cellview.

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

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

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

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

CellView Class

  • Designated initialiser from the underlying C data type

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafePointer<GtkCellView>?)
  • 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 CellViewProtocol

    Declaration

    Swift

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

    Declaration

    Swift

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

    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 CellViewProtocol.

    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 CellViewProtocol.

    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 CellViewProtocol.

    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 CellViewProtocol.

    Declaration

    Swift

    @inlinable
    init(opaquePointer: OpaquePointer)
  • Creates a new GtkCellView widget.

    Declaration

    Swift

    @inlinable
    init()
  • Creates a new GtkCellView widget with a specific GtkCellArea to layout cells and a specific GtkCellAreaContext.

    Specifying the same context for a handfull of cells lets the underlying area synchronize the geometry for those cells, in this way alignments with cellviews for other rows are possible.

    Declaration

    Swift

    @inlinable
    init<CellAreaContextT, CellAreaT>(context area: CellAreaT, context: CellAreaContextT) where CellAreaContextT : CellAreaContextProtocol, CellAreaT : CellAreaProtocol
  • Creates a new GtkCellView widget, adds a GtkCellRendererText to it, and makes it show markup. The text can be marked up with the Pango text markup language.

    Declaration

    Swift

    @inlinable
    init(markup: UnsafePointer<gchar>!)
  • Creates a new GtkCellView widget, adds a GtkCellRendererPixbuf to it, and makes it show pixbuf.

    Declaration

    Swift

    @inlinable
    init<PixbufT>(pixbuf: PixbufT) where PixbufT : PixbufProtocol
  • Creates a new GtkCellView widget, adds a GtkCellRendererText to it, and makes it show text.

    Declaration

    Swift

    @inlinable
    init(text: UnsafePointer<gchar>!)
  • Creates a new GtkCellView widget with a specific GtkCellArea to layout cells and a specific GtkCellAreaContext.

    Specifying the same context for a handfull of cells lets the underlying area synchronize the geometry for those cells, in this way alignments with cellviews for other rows are possible.

    Declaration

    Swift

    @inlinable
    static func newWith<CellAreaContextT, CellAreaT>(context area: CellAreaT, context: CellAreaContextT) -> WidgetRef! where CellAreaContextT : CellAreaContextProtocol, CellAreaT : CellAreaProtocol
  • Creates a new GtkCellView widget, adds a GtkCellRendererText to it, and makes it show markup. The text can be marked up with the Pango text markup language.

    Declaration

    Swift

    @inlinable
    static func newWith(markup: UnsafePointer<gchar>!) -> WidgetRef!
  • Creates a new GtkCellView widget, adds a GtkCellRendererPixbuf to it, and makes it show pixbuf.

    Declaration

    Swift

    @inlinable
    static func newWith<PixbufT>(pixbuf: PixbufT) -> WidgetRef! where PixbufT : PixbufProtocol
  • Creates a new GtkCellView widget, adds a GtkCellRendererText to it, and makes it show text.

    Declaration

    Swift

    @inlinable
    static func newWith(text: UnsafePointer<gchar>!) -> WidgetRef!