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.
-
Untyped pointer to the underlying `GtkCellView` instance.For type-safe access, use the generated, typed pointer
cell_view_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkCellView>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkCellView>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkCellView>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkCellView>?) -
Conditional initialiser from an optional
gpointerDeclaration
Swift
@inlinable init!(gpointer g: gpointer?) -
Conditional initialiser from an optional, non-mutable
gconstpointerDeclaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?) -
Reference intialiser for a related type that implements
CellViewProtocolDeclaration
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
GtkCellViewwidget.Declaration
Swift
@inlinable init() -
Creates a new
GtkCellViewwidget with a specificGtkCellAreato layout cells and a specificGtkCellAreaContext.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
GtkCellViewwidget, adds aGtkCellRendererTextto it, and makes it showmarkup. The text can be marked up with the Pango text markup language.Declaration
Swift
@inlinable init(markup: UnsafePointer<gchar>!) -
Creates a new
GtkCellViewwidget, adds aGtkCellRendererPixbufto it, and makes it showpixbuf.Declaration
Swift
@inlinable init<PixbufT>(pixbuf: PixbufT) where PixbufT : PixbufProtocol -
Creates a new
GtkCellViewwidget, adds aGtkCellRendererTextto it, and makes it showtext.Declaration
Swift
@inlinable init(text: UnsafePointer<gchar>!) -
Creates a new
GtkCellViewwidget with a specificGtkCellAreato layout cells and a specificGtkCellAreaContext.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
GtkCellViewwidget, adds aGtkCellRendererTextto it, and makes it showmarkup. 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
GtkCellViewwidget, adds aGtkCellRendererPixbufto it, and makes it showpixbuf.Declaration
Swift
@inlinable static func newWith<PixbufT>(pixbuf: PixbufT) -> WidgetRef! where PixbufT : PixbufProtocol -
Creates a new
GtkCellViewwidget, adds aGtkCellRendererTextto it, and makes it showtext.Declaration
Swift
@inlinable static func newWith(text: UnsafePointer<gchar>!) -> WidgetRef!
View on GitHub
Install in Dash
CellViewRef Structure Reference