CellView

open class CellView : Widget, CellViewProtocol

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 CellView type acts as a reference-counted owner of an underlying GtkCellView instance. It provides the methods that can operate on this data type through CellViewProtocol conformance. Use CellView as a strong reference or owner of a GtkCellView instance.

  • Designated initialiser from the underlying `C` data type.
    

    This creates an instance without performing an unbalanced retain i.e., ownership is transferred to the CellView instance.

    Declaration

    Swift

    @inlinable
    public init(_ op: UnsafeMutablePointer<GtkCellView>)

    Parameters

    op

    pointer to the underlying object

  • Designated initialiser from a constant pointer to the underlying C data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to the CellView instance.

    Declaration

    Swift

    @inlinable
    public init(_ op: UnsafePointer<GtkCellView>)

    Parameters

    op

    pointer to the underlying object

  • Optional initialiser from a non-mutating gpointer to the underlying C data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to the CellView instance.

    Declaration

    Swift

    @inlinable
    override public init!(gpointer op: gpointer?)

    Parameters

    op

    gpointer to the underlying object

  • Optional initialiser from a non-mutating gconstpointer to the underlying C data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to the CellView instance.

    Declaration

    Swift

    @inlinable
    override public init!(gconstpointer op: gconstpointer?)

    Parameters

    op

    pointer to the underlying object

  • Optional initialiser from a constant pointer to the underlying C data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to the CellView instance.

    Declaration

    Swift

    @inlinable
    public init!(_ op: UnsafePointer<GtkCellView>?)

    Parameters

    op

    pointer to the underlying object

  • Optional initialiser from the underlying C data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to the CellView instance.

    Declaration

    Swift

    @inlinable
    public init!(_ op: UnsafeMutablePointer<GtkCellView>?)

    Parameters

    op

    pointer to the underlying object

  • Designated initialiser from the underlying C data type. Will retain GtkCellView. i.e., ownership is transferred to the CellView instance.

    Declaration

    Swift

    @inlinable
    public init(retaining op: UnsafeMutablePointer<GtkCellView>)

    Parameters

    op

    pointer to the underlying object

  • Reference intialiser for a related type that implements CellViewProtocol Will retain GtkCellView.

    Declaration

    Swift

    @inlinable
    public init<T>(cellView other: T) where T : CellViewProtocol

    Parameters

    other

    an instance of a related type that implements CellViewProtocol

  • Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to CellViewProtocol.

    Declaration

    Swift

    @inlinable
    override public init<T>(cPointer p: UnsafeMutablePointer<T>)

    Parameters

    cPointer

    pointer to the underlying object

  • Unsafe typed, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to CellViewProtocol.

    Declaration

    Swift

    @inlinable
    override public init<T>(retainingCPointer cPointer: UnsafeMutablePointer<T>)

    Parameters

    cPointer

    pointer to the underlying object

  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to CellViewProtocol.

    Declaration

    Swift

    @inlinable
    override public init(raw p: UnsafeRawPointer)

    Parameters

    p

    raw pointer to the underlying object

  • Unsafe untyped, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to CellViewProtocol.

    Declaration

    Swift

    @inlinable
    override public init(retainingRaw 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
    public required init(raw p: UnsafeMutableRawPointer)

    Parameters

    p

    mutable raw pointer to the underlying object

  • Unsafe untyped, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to CellViewProtocol.

    Declaration

    Swift

    @inlinable
    required public init(retainingRaw raw: UnsafeMutableRawPointer)

    Parameters

    raw

    mutable raw pointer to the underlying object

  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to CellViewProtocol.

    Declaration

    Swift

    @inlinable
    override public init(opaquePointer p: OpaquePointer)

    Parameters

    p

    opaque pointer to the underlying object

  • Unsafe untyped, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to CellViewProtocol.

    Declaration

    Swift

    @inlinable
    override public init(retainingOpaquePointer p: OpaquePointer)

    Parameters

    p

    opaque pointer to the underlying object

  • Creates a new GtkCellView widget.

    Declaration

    Swift

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

    Declaration

    Swift

    @inlinable
    public 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
    public 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
    public static func newWith<CellAreaContextT, CellAreaT>(context area: CellAreaT, context: CellAreaContextT) -> Widget! 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
    public static func newWith(markup: UnsafePointer<gchar>!) -> Widget!
  • Creates a new GtkCellView widget, adds a GtkCellRendererPixbuf to it, and makes it show pixbuf.

    Declaration

    Swift

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

    Declaration

    Swift

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