CellView
open class CellView : Widget, CellViewProtocol
A widget displaying a single row of a GtkTreeModel
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 each other (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
CellViewinstance.Declaration
Swift
@inlinable public init(_ op: UnsafeMutablePointer<GtkCellView>)Parameters
oppointer to the underlying object
-
Designated initialiser from a constant pointer to the underlying
Cdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theCellViewinstance.Declaration
Swift
@inlinable public init(_ op: UnsafePointer<GtkCellView>)Parameters
oppointer to the underlying object
-
Optional initialiser from a non-mutating
gpointerto the underlyingCdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theCellViewinstance.Declaration
Swift
@inlinable override public init!(gpointer op: gpointer?)Parameters
opgpointer to the underlying object
-
Optional initialiser from a non-mutating
gconstpointerto the underlyingCdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theCellViewinstance.Declaration
Swift
@inlinable override public init!(gconstpointer op: gconstpointer?)Parameters
oppointer to the underlying object
-
Optional initialiser from a constant pointer to the underlying
Cdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theCellViewinstance.Declaration
Swift
@inlinable public init!(_ op: UnsafePointer<GtkCellView>?)Parameters
oppointer to the underlying object
-
Optional initialiser from the underlying
Cdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theCellViewinstance.Declaration
Swift
@inlinable public init!(_ op: UnsafeMutablePointer<GtkCellView>?)Parameters
oppointer to the underlying object
-
Designated initialiser from the underlying
Cdata type. Will retainGtkCellView. i.e., ownership is transferred to theCellViewinstance.Declaration
Swift
@inlinable public init(retaining op: UnsafeMutablePointer<GtkCellView>)Parameters
oppointer to the underlying object
-
Reference intialiser for a related type that implements
CellViewProtocolWill retainGtkCellView.Declaration
Swift
@inlinable public init<T>(cellView other: T) where T : CellViewProtocolParameters
otheran 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
cPointerpointer 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
cPointerpointer 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
praw 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
pmutable 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
rawmutable 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
popaque 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
popaque pointer to the underlying object
-
Creates a new
GtkCellViewwidget.Declaration
Swift
@inlinable public init() -
Creates a new
GtkCellViewwidget with a specificGtkCellAreato layout cells and a specificGtkCellAreaContext.Specifying the same context for a handful 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
GtkCellViewwidget, adds aGtkCellRendererTextto it, and makes it showmarkup. The text can be marked up with the Pango text markup language.Declaration
Swift
@inlinable public init(markup: UnsafePointer<CChar>!) -
Creates a new
GtkCellViewwidget, adds aGtkCellRendererTextto it, and makes it showtext.Declaration
Swift
@inlinable public init(text: UnsafePointer<CChar>!) -
Creates a new
GtkCellViewwidget, adds aGtkCellRendererPixbufto it, and makes it showtexture.Declaration
Swift
@inlinable public init<TextureT>(texture: TextureT) where TextureT : TextureProtocol -
Creates a new
GtkCellViewwidget with a specificGtkCellAreato layout cells and a specificGtkCellAreaContext.Specifying the same context for a handful 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
GtkCellViewwidget, adds aGtkCellRendererTextto it, and makes it showmarkup. The text can be marked up with the Pango text markup language.Declaration
Swift
@inlinable public static func newWith(markup: UnsafePointer<CChar>!) -> Widget! -
Creates a new
GtkCellViewwidget, adds aGtkCellRendererTextto it, and makes it showtext.Declaration
Swift
@inlinable public static func newWith(text: UnsafePointer<CChar>!) -> Widget! -
Creates a new
GtkCellViewwidget, adds aGtkCellRendererPixbufto it, and makes it showtexture.Declaration
Swift
@inlinable public static func newWith<TextureT>(texture: TextureT) -> Widget! where TextureT : TextureProtocol
View on GitHub
Install in Dash
CellView Class Reference