TreeViewColumnProtocol
public protocol TreeViewColumnProtocol : InitiallyUnownedProtocol, BuildableProtocol, CellLayoutProtocol
The GtkTreeViewColumn object represents a visible column in a GtkTreeView
widget.
It allows to set properties of the column header, and functions as a holding pen for
the cell renderers which determine how the data in the column is displayed.
Please refer to the tree widget conceptual overview for an overview of all the objects and data types related to the tree widget and how they work together.
The TreeViewColumnProtocol
protocol exposes the methods and properties of an underlying GtkTreeViewColumn
instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see TreeViewColumn
.
Alternatively, use TreeViewColumnRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkTreeViewColumn
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
tree_view_column_ptr
Default implementationTyped pointer to the underlying
GtkTreeViewColumn
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTreeViewColumn
instance.Declaration
Swift
var tree_view_column_ptr: UnsafeMutablePointer<GtkTreeViewColumn>! { get }
-
Required Initialiser for types conforming to
TreeViewColumnProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
bind(property:
Extension methodto: _: flags: transformFrom: transformTo: ) Bind a
TreeViewColumnPropertyName
source property to a given target object.Declaration
Swift
@discardableResult @inlinable func bind<Q, T>(property source_property: TreeViewColumnPropertyName, to target: T, _ target_property: Q, flags f: BindingFlags = .default, transformFrom transform_from: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }, transformTo transform_to: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }) -> BindingRef! where Q : PropertyNameProtocol, T : ObjectProtocol
Parameters
source_property
the source property to bind
target
the target object to bind to
target_property
the target property to bind to
flags
the flags to pass to the
Binding
transform_from
ValueTransformer
to use for forward transformationtransform_to
ValueTransformer
to use for backwards transformationReturn Value
binding reference or
nil
in case of an error -
get(property:
Extension method) Get the value of a TreeViewColumn property
Declaration
Swift
@inlinable func get(property: TreeViewColumnPropertyName) -> GLibObject.Value
Parameters
property
the property to get the value for
Return Value
the value of the named property
-
set(property:
Extension methodvalue: ) Set the value of a TreeViewColumn property. Note that this will only have an effect on properties that are writable and not construct-only!
Declaration
Swift
@inlinable func set(property: TreeViewColumnPropertyName, value v: GLibObject.Value)
Parameters
property
the property to get the value for
Return Value
the value of the named property
-
connect(signal:
Extension methodflags: handler: ) Connect a Swift signal handler to the given, typed
TreeViewColumnSignalName
signalDeclaration
Swift
@discardableResult @inlinable func connect(signal s: TreeViewColumnSignalName, flags f: ConnectFlags = ConnectFlags(0), handler h: @escaping SignalHandler) -> Int
Parameters
signal
The signal to connect
flags
The connection flags to use
data
A pointer to user data to provide to the callback
destroyData
A
GClosureNotify
C function to destroy the data pointed to byuserData
handler
The Swift signal handler (function or callback) to invoke on the given signal
Return Value
The signal handler ID (always greater than 0 for successful connections)
-
connect(signal:
Extension methodflags: data: destroyData: signalHandler: ) Connect a C signal handler to the given, typed
TreeViewColumnSignalName
signalDeclaration
Swift
@discardableResult @inlinable func connect(signal s: TreeViewColumnSignalName, flags f: ConnectFlags = ConnectFlags(0), data userData: gpointer!, destroyData destructor: GClosureNotify? = nil, signalHandler h: @escaping GCallback) -> Int
Parameters
signal
The signal to connect
flags
The connection flags to use
data
A pointer to user data to provide to the callback
destroyData
A
GClosureNotify
C function to destroy the data pointed to byuserData
signalHandler
The C function to be called on the given signal
Return Value
The signal handler ID (always greater than 0 for successful connections)
-
onClicked(flags:
Extension methodhandler: ) Note
This represents the underlyingclicked
signalDeclaration
Swift
@discardableResult @inlinable func onClicked(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
handler
The signal handler to call Run the given callback whenever the
clicked
signal is emitted -
clickedSignal
Extension methodTyped
clicked
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var clickedSignal: TreeViewColumnSignalName { get }
-
onNotifyAlignment(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::alignment
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyAlignment(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyAlignment
signal is emitted -
notifyAlignmentSignal
Extension methodTyped
notify::alignment
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyAlignmentSignal: TreeViewColumnSignalName { get }
-
onNotifyCellArea(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::cell-area
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyCellArea(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyCellArea
signal is emitted -
notifyCellAreaSignal
Extension methodTyped
notify::cell-area
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyCellAreaSignal: TreeViewColumnSignalName { get }
-
onNotifyClickable(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::clickable
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyClickable(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyClickable
signal is emitted -
notifyClickableSignal
Extension methodTyped
notify::clickable
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyClickableSignal: TreeViewColumnSignalName { get }
-
onNotifyExpand(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::expand
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyExpand(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyExpand
signal is emitted -
notifyExpandSignal
Extension methodTyped
notify::expand
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyExpandSignal: TreeViewColumnSignalName { get }
-
onNotifyFixedWidth(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::fixed-width
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyFixedWidth(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyFixedWidth
signal is emitted -
notifyFixedWidthSignal
Extension methodTyped
notify::fixed-width
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyFixedWidthSignal: TreeViewColumnSignalName { get }
-
onNotifyMaxWidth(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::max-width
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyMaxWidth(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyMaxWidth
signal is emitted -
notifyMaxWidthSignal
Extension methodTyped
notify::max-width
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyMaxWidthSignal: TreeViewColumnSignalName { get }
-
onNotifyMinWidth(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::min-width
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyMinWidth(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyMinWidth
signal is emitted -
notifyMinWidthSignal
Extension methodTyped
notify::min-width
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyMinWidthSignal: TreeViewColumnSignalName { get }
-
onNotifyReorderable(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::reorderable
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyReorderable(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyReorderable
signal is emitted -
notifyReorderableSignal
Extension methodTyped
notify::reorderable
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyReorderableSignal: TreeViewColumnSignalName { get }
-
onNotifyResizable(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::resizable
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyResizable(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyResizable
signal is emitted -
notifyResizableSignal
Extension methodTyped
notify::resizable
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyResizableSignal: TreeViewColumnSignalName { get }
-
onNotifySizing(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::sizing
signalDeclaration
Swift
@discardableResult @inlinable func onNotifySizing(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifySizing
signal is emitted -
notifySizingSignal
Extension methodTyped
notify::sizing
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifySizingSignal: TreeViewColumnSignalName { get }
-
onNotifySortColumnID(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::sort-column-id
signalDeclaration
Swift
@discardableResult @inlinable func onNotifySortColumnID(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifySortColumnID
signal is emitted -
notifySortColumnIDSignal
Extension methodTyped
notify::sort-column-id
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifySortColumnIDSignal: TreeViewColumnSignalName { get }
-
onNotifySortIndicator(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::sort-indicator
signalDeclaration
Swift
@discardableResult @inlinable func onNotifySortIndicator(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifySortIndicator
signal is emitted -
notifySortIndicatorSignal
Extension methodTyped
notify::sort-indicator
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifySortIndicatorSignal: TreeViewColumnSignalName { get }
-
onNotifySortOrder(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::sort-order
signalDeclaration
Swift
@discardableResult @inlinable func onNotifySortOrder(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifySortOrder
signal is emitted -
notifySortOrderSignal
Extension methodTyped
notify::sort-order
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifySortOrderSignal: TreeViewColumnSignalName { get }
-
onNotifySpacing(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::spacing
signalDeclaration
Swift
@discardableResult @inlinable func onNotifySpacing(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifySpacing
signal is emitted -
notifySpacingSignal
Extension methodTyped
notify::spacing
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifySpacingSignal: TreeViewColumnSignalName { get }
-
onNotifyTitle(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::title
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyTitle(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyTitle
signal is emitted -
notifyTitleSignal
Extension methodTyped
notify::title
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyTitleSignal: TreeViewColumnSignalName { get }
-
onNotifyVisible(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::visible
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyVisible(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyVisible
signal is emitted -
notifyVisibleSignal
Extension methodTyped
notify::visible
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyVisibleSignal: TreeViewColumnSignalName { get }
-
onNotifyWidget(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::widget
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyWidget(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyWidget
signal is emitted -
notifyWidgetSignal
Extension methodTyped
notify::widget
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyWidgetSignal: TreeViewColumnSignalName { get }
-
onNotifyWidth(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::width
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyWidth(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyWidth
signal is emitted -
notifyWidthSignal
Extension methodTyped
notify::width
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyWidthSignal: TreeViewColumnSignalName { get }
-
onNotifyXOffset(flags:
Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::x-offset
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyXOffset(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: TreeViewColumnRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyXOffset
signal is emitted -
notifyXOffsetSignal
Extension methodTyped
notify::x-offset
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyXOffsetSignal: TreeViewColumnSignalName { get }
-
addAttribute(cellRenderer:
Extension methodattribute: column: ) Adds an attribute mapping to the list in
tree_column
. Thecolumn
is the column of the model to get a value from, and theattribute
is the parameter oncell_renderer
to be set from the value. So for example if column 2 of the model contains strings, you could have the “text” attribute of aGtkCellRendererText
get its values from column 2.Declaration
Swift
@inlinable func addAttribute<CellRendererT>(cellRenderer: CellRendererT, attribute: UnsafePointer<gchar>!, column: Int) where CellRendererT : CellRendererProtocol
-
cellGetPosition(cellRenderer:
Extension methodxOffset: width: ) Obtains the horizontal position and size of a cell in a column. If the cell is not found in the column,
start_pos
andwidth
are not changed andfalse
is returned.Declaration
Swift
@inlinable func cellGetPosition<CellRendererT>(cellRenderer: CellRendererT, xOffset: UnsafeMutablePointer<gint>! = nil, width: UnsafeMutablePointer<gint>! = nil) -> Bool where CellRendererT : CellRendererProtocol
-
cellGetSize(cellArea:
Extension methodxOffset: yOffset: width: height: ) Obtains the width and height needed to render the column. This is used primarily by the
GtkTreeView
.Declaration
Swift
@inlinable func cellGetSize(cellArea: Gdk.RectangleRef? = nil, xOffset: UnsafeMutablePointer<gint>! = nil, yOffset: UnsafeMutablePointer<gint>! = nil, width: UnsafeMutablePointer<gint>! = nil, height: UnsafeMutablePointer<gint>! = nil)
-
cellGetSize(cellArea:
Extension methodxOffset: yOffset: width: height: ) Obtains the width and height needed to render the column. This is used primarily by the
GtkTreeView
.Declaration
Swift
@inlinable func cellGetSize<RectangleT>(cellArea: RectangleT?, xOffset: UnsafeMutablePointer<gint>! = nil, yOffset: UnsafeMutablePointer<gint>! = nil, width: UnsafeMutablePointer<gint>! = nil, height: UnsafeMutablePointer<gint>! = nil) where RectangleT : RectangleProtocol
-
cellIsVisible()
Extension methodReturns
true
if any of the cells packed into thetree_column
are visible. For this to be meaningful, you must first initialize the cells withgtk_tree_view_column_cell_set_cell_data()
Declaration
Swift
@inlinable func cellIsVisible() -> Bool
-
cellSetCellData(treeModel:
Extension methoditer: isExpander: isExpanded: ) Sets the cell renderer based on the
tree_model
anditer
. That is, for every attribute mapping intree_column
, it will get a value from the set column on theiter
, and use that value to set the attribute on the cell renderer. This is used primarily by theGtkTreeView
.Declaration
Swift
@inlinable func cellSetCellData<TreeIterT, TreeModelT>(treeModel: TreeModelT, iter: TreeIterT, isExpander: Bool, isExpanded: Bool) where TreeIterT : TreeIterProtocol, TreeModelT : TreeModelProtocol
-
clear()
Extension methodUnsets all the mappings on all renderers on the
tree_column
.Declaration
Swift
@inlinable func clear()
-
clearAttributes(cellRenderer:
Extension method) Clears all existing attributes previously set with
gtk_tree_view_column_set_attributes()
.Declaration
Swift
@inlinable func clearAttributes<CellRendererT>(cellRenderer: CellRendererT) where CellRendererT : CellRendererProtocol
-
clicked()
Extension methodEmits the “clicked” signal on the column. This function will only work if
tree_column
is clickable.Declaration
Swift
@inlinable func clicked()
-
focus(cell:
Extension method) Sets the current keyboard focus to be at
cell
, if the column contains 2 or more editable and activatable cells.Declaration
Swift
@inlinable func focus<CellRendererT>(cell: CellRendererT) where CellRendererT : CellRendererProtocol
-
getAlignment()
Extension methodReturns the current x alignment of
tree_column
. This value can range between 0.0 and 1.0.Declaration
Swift
@inlinable func getAlignment() -> Double
-
getButton()
Extension methodReturns the button used in the treeview column header
Declaration
Swift
@inlinable func getButton() -> WidgetRef!
-
getClickable()
Extension methodReturns
true
if the user can click on the header for the column.Declaration
Swift
@inlinable func getClickable() -> Bool
-
getExpand()
Extension methodReturns
true
if the column expands to fill available space.Declaration
Swift
@inlinable func getExpand() -> Bool
-
getFixedWidth()
Extension methodGets the fixed width of the column. This may not be the actual displayed width of the column; for that, use
gtk_tree_view_column_get_width()
.Declaration
Swift
@inlinable func getFixedWidth() -> Int
-
getMaxWidth()
Extension methodReturns the maximum width in pixels of the
tree_column
, or -1 if no maximum width is set.Declaration
Swift
@inlinable func getMaxWidth() -> Int
-
getMinWidth()
Extension methodReturns the minimum width in pixels of the
tree_column
, or -1 if no minimum width is set.Declaration
Swift
@inlinable func getMinWidth() -> Int
-
getReorderable()
Extension methodReturns
true
if thetree_column
can be reordered by the user.Declaration
Swift
@inlinable func getReorderable() -> Bool
-
getResizable()
Extension methodReturns
true
if thetree_column
can be resized by the end user.Declaration
Swift
@inlinable func getResizable() -> Bool
-
getSizing()
Extension methodReturns the current type of
tree_column
.Declaration
Swift
@inlinable func getSizing() -> GtkTreeViewColumnSizing
-
getSortColumnID()
Extension methodGets the logical
sort_column_id
that the model sorts on when this column is selected for sorting. Seegtk_tree_view_column_set_sort_column_id()
.Declaration
Swift
@inlinable func getSortColumnID() -> Int
-
getSortIndicator()
Extension methodGets the value set by
gtk_tree_view_column_set_sort_indicator()
.Declaration
Swift
@inlinable func getSortIndicator() -> Bool
-
getSortOrder()
Extension methodGets the value set by
gtk_tree_view_column_set_sort_order()
.Declaration
Swift
@inlinable func getSortOrder() -> GtkSortType
-
getSpacing()
Extension methodReturns the spacing of
tree_column
.Declaration
Swift
@inlinable func getSpacing() -> Int
-
getTitle()
Extension methodReturns the title of the widget.
Declaration
Swift
@inlinable func getTitle() -> String!
-
getTreeView()
Extension methodReturns the
GtkTreeView
whereintree_column
has been inserted. Ifcolumn
is currently not inserted in any tree view,nil
is returned.Declaration
Swift
@inlinable func getTreeView() -> WidgetRef!
-
getVisible()
Extension methodReturns
true
iftree_column
is visible.Declaration
Swift
@inlinable func getVisible() -> Bool
-
getWidget()
Extension methodReturns the
GtkWidget
in the button on the column header. If a custom widget has not been set thennil
is returned.Declaration
Swift
@inlinable func getWidget() -> WidgetRef!
-
getWidth()
Extension methodReturns the current size of
tree_column
in pixels.Declaration
Swift
@inlinable func getWidth() -> Int
-
getXOffset()
Extension methodReturns the current X offset of
tree_column
in pixels.Declaration
Swift
@inlinable func getXOffset() -> Int
-
packEnd(cell:
Extension methodexpand: ) Adds the
cell
to end of the column. Ifexpand
isfalse
, then thecell
is allocated no more space than it needs. Any unused space is divided evenly between cells for whichexpand
istrue
.Declaration
Swift
@inlinable func packEnd<CellRendererT>(cell: CellRendererT, expand: Bool) where CellRendererT : CellRendererProtocol
-
packStart(cell:
Extension methodexpand: ) Packs the
cell
into the beginning of the column. Ifexpand
isfalse
, then thecell
is allocated no more space than it needs. Any unused space is divided evenly between cells for whichexpand
istrue
.Declaration
Swift
@inlinable func packStart<CellRendererT>(cell: CellRendererT, expand: Bool) where CellRendererT : CellRendererProtocol
-
queueResize()
Extension methodFlags the column, and the cell renderers added to this column, to have their sizes renegotiated.
Declaration
Swift
@inlinable func queueResize()
-
setAlignment(xalign:
Extension method) Sets the alignment of the title or custom widget inside the column header. The alignment determines its location inside the button – 0.0 for left, 0.5 for center, 1.0 for right.
Declaration
Swift
@inlinable func setAlignment(xalign: Double)
-
setCellDataFunc(cellRenderer:
Extension methodfunc: funcData: destroy: ) Sets the
GtkTreeCellDataFunc
to use for the column. This function is used instead of the standard attributes mapping for setting the column value, and should set the value oftree_column
‘s cell renderer as appropriate.func
may benil
to remove an older one.Declaration
Swift
@inlinable func setCellDataFunc<CellRendererT>(cellRenderer: CellRendererT, func: GtkTreeCellDataFunc? = nil, funcData: gpointer! = nil, destroy: GDestroyNotify?) where CellRendererT : CellRendererProtocol
-
set(clickable:
Extension method) Sets the header to be active if
clickable
istrue
. When the header is active, then it can take keyboard focus, and can be clicked.Declaration
Swift
@inlinable func set(clickable: Bool)
-
set(expand:
Extension method) Sets the column to take available extra space. This space is shared equally amongst all columns that have the expand set to
true
. If no column has this option set, then the last column gets all extra space. By default, every column is created with thisfalse
.Along with “fixed-width”, the “expand” property changes when the column is resized by the user.
Declaration
Swift
@inlinable func set(expand: Bool)
-
set(fixedWidth:
Extension method) If
fixed_width
is not -1, sets the fixed width oftree_column
; otherwise unsets it. The effective value offixed_width
is clamped between the minimum and maximum width of the column; however, the value stored in the “fixed-width” property is not clamped. If the column sizing isGTK_TREE_VIEW_COLUMN_GROW_ONLY
orGTK_TREE_VIEW_COLUMN_AUTOSIZE
, setting a fixed width overrides the automatically calculated width. Note thatfixed_width
is only a hint to GTK+; the width actually allocated to the column may be greater or less than requested.Along with “expand”, the “fixed-width” property changes when the column is resized by the user.
Declaration
Swift
@inlinable func set(fixedWidth: Int)
-
set(maxWidth:
Extension method) Sets the maximum width of the
tree_column
. Ifmax_width
is -1, then the maximum width is unset. Note, the column can actually be wider than max width if it’s the last column in a view. In this case, the column expands to fill any extra space.Declaration
Swift
@inlinable func set(maxWidth: Int)
-
set(minWidth:
Extension method) Sets the minimum width of the
tree_column
. Ifmin_width
is -1, then the minimum width is unset.Declaration
Swift
@inlinable func set(minWidth: Int)
-
set(reorderable:
Extension method) If
reorderable
istrue
, then the column can be reordered by the end user dragging the header.Declaration
Swift
@inlinable func set(reorderable: Bool)
-
set(resizable:
Extension method) If
resizable
istrue
, then the user can explicitly resize the column by grabbing the outer edge of the column button. If resizable istrue
and sizing mode of the column isGTK_TREE_VIEW_COLUMN_AUTOSIZE
, then the sizing mode is changed toGTK_TREE_VIEW_COLUMN_GROW_ONLY
.Declaration
Swift
@inlinable func set(resizable: Bool)
-
setSizing(type:
Extension method) Sets the growth behavior of
tree_column
totype
.Declaration
Swift
@inlinable func setSizing(type: GtkTreeViewColumnSizing)
-
set(sortColumnID:
Extension method) Sets the logical
sort_column_id
that this column sorts on when this column is selected for sorting. Doing so makes the column header clickable.Declaration
Swift
@inlinable func set(sortColumnID: Int)
-
setSortIndicator(setting:
Extension method) Call this function with a
setting
oftrue
to display an arrow in the header button indicating the column is sorted. Callgtk_tree_view_column_set_sort_order()
to change the direction of the arrow.Declaration
Swift
@inlinable func setSortIndicator(setting: Bool)
-
setSort(order:
Extension method) Changes the appearance of the sort indicator.
This does not actually sort the model. Use
gtk_tree_view_column_set_sort_column_id()
if you want automatic sorting support. This function is primarily for custom sorting behavior, and should be used in conjunction withgtk_tree_sortable_set_sort_column_id()
to do that. For custom models, the mechanism will vary.The sort indicator changes direction to indicate normal sort or reverse sort. Note that you must have the sort indicator enabled to see anything when calling this function; see
gtk_tree_view_column_set_sort_indicator()
.Declaration
Swift
@inlinable func setSort(order: GtkSortType)
-
set(spacing:
Extension method) Sets the spacing field of
tree_column
, which is the number of pixels to place between cell renderers packed into it.Declaration
Swift
@inlinable func set(spacing: Int)
-
set(title:
Extension method) Sets the title of the
tree_column
. If a custom widget has been set, then this value is ignored.Declaration
Swift
@inlinable func set(title: UnsafePointer<gchar>!)
-
set(visible:
Extension method) Sets the visibility of
tree_column
.Declaration
Swift
@inlinable func set(visible: Bool)
-
set(widget:
Extension method) -
set(widget:
Extension method) Sets the widget in the header to be
widget
. If widget isnil
, then the header button is set with aGtkLabel
set to the title oftree_column
.Declaration
Swift
@inlinable func set<WidgetT>(widget: WidgetT?) where WidgetT : WidgetProtocol
-
alignment
Extension methodUndocumented
Declaration
Swift
@inlinable var alignment: Double { get nonmutating set }
-
button
Extension methodReturns the button used in the treeview column header
Declaration
Swift
@inlinable var button: WidgetRef! { get }
-
clickable
Extension methodUndocumented
Declaration
Swift
@inlinable var clickable: Bool { get nonmutating set }
-
expand
Extension methodUndocumented
Declaration
Swift
@inlinable var expand: Bool { get nonmutating set }
-
fixedWidth
Extension methodGets the fixed width of the column. This may not be the actual displayed width of the column; for that, use
gtk_tree_view_column_get_width()
.Declaration
Swift
@inlinable var fixedWidth: Int { get nonmutating set }
-
maxWidth
Extension methodReturns the maximum width in pixels of the
tree_column
, or -1 if no maximum width is set.Declaration
Swift
@inlinable var maxWidth: Int { get nonmutating set }
-
minWidth
Extension methodReturns the minimum width in pixels of the
tree_column
, or -1 if no minimum width is set.Declaration
Swift
@inlinable var minWidth: Int { get nonmutating set }
-
reorderable
Extension methodUndocumented
Declaration
Swift
@inlinable var reorderable: Bool { get nonmutating set }
-
resizable
Extension methodUndocumented
Declaration
Swift
@inlinable var resizable: Bool { get nonmutating set }
-
sizing
Extension methodUndocumented
Declaration
Swift
@inlinable var sizing: GtkTreeViewColumnSizing { get nonmutating set }
-
sortColumnID
Extension methodGets the logical
sort_column_id
that the model sorts on when this column is selected for sorting. Seegtk_tree_view_column_set_sort_column_id()
.Declaration
Swift
@inlinable var sortColumnID: Int { get nonmutating set }
-
sortIndicator
Extension methodGets the value set by
gtk_tree_view_column_set_sort_indicator()
.Declaration
Swift
@inlinable var sortIndicator: Bool { get nonmutating set }
-
sortOrder
Extension methodGets the value set by
gtk_tree_view_column_set_sort_order()
.Declaration
Swift
@inlinable var sortOrder: GtkSortType { get nonmutating set }
-
spacing
Extension methodUndocumented
Declaration
Swift
@inlinable var spacing: Int { get nonmutating set }
-
title
Extension methodUndocumented
Declaration
Swift
@inlinable var title: String! { get nonmutating set }
-
treeView
Extension methodReturns the
GtkTreeView
whereintree_column
has been inserted. Ifcolumn
is currently not inserted in any tree view,nil
is returned.Declaration
Swift
@inlinable var treeView: WidgetRef! { get }
-
visible
Extension methodUndocumented
Declaration
Swift
@inlinable var visible: Bool { get nonmutating set }
-
widget
Extension methodUndocumented
Declaration
Swift
@inlinable var widget: WidgetRef! { get nonmutating set }
-
width
Extension methodUndocumented
Declaration
Swift
@inlinable var width: Int { get }
-
xOffset
Extension methodReturns the current X offset of
tree_column
in pixels.Declaration
Swift
@inlinable var xOffset: Int { get }
-
parentInstance
Extension methodUndocumented
Declaration
Swift
@inlinable var parentInstance: GInitiallyUnowned { get }