ToolItemGroupProtocol
public protocol ToolItemGroupProtocol : ContainerProtocol, ToolShellProtocol
A GtkToolItemGroup is used together with GtkToolPalette to add
GtkToolItems to a palette like container with different
categories and drag and drop support.
CSS nodes
GtkToolItemGroup has a single CSS node named toolitemgroup.
The ToolItemGroupProtocol protocol exposes the methods and properties of an underlying GtkToolItemGroup 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 ToolItemGroup.
Alternatively, use ToolItemGroupRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkToolItemGroupinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
tool_item_group_ptrDefault implementationTyped pointer to the underlying
GtkToolItemGroupinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkToolItemGroupinstance.Declaration
Swift
var tool_item_group_ptr: UnsafeMutablePointer<GtkToolItemGroup>! { get } -
Required Initialiser for types conforming to
ToolItemGroupProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
bind(property:Extension methodto: _: flags: transformFrom: transformTo: ) Bind a
ToolItemGroupPropertyNamesource property to a given target object.Declaration
Swift
@discardableResult @inlinable func bind<Q, T>(property source_property: ToolItemGroupPropertyName, 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 : ObjectProtocolParameters
source_propertythe source property to bind
targetthe target object to bind to
target_propertythe target property to bind to
flagsthe flags to pass to the
Bindingtransform_fromValueTransformerto use for forward transformationtransform_toValueTransformerto use for backwards transformationReturn Value
binding reference or
nilin case of an error -
get(property:Extension method) Get the value of a ToolItemGroup property
Declaration
Swift
@inlinable func get(property: ToolItemGroupPropertyName) -> GLibObject.ValueParameters
propertythe property to get the value for
Return Value
the value of the named property
-
set(property:Extension methodvalue: ) Set the value of a ToolItemGroup property. Note that this will only have an effect on properties that are writable and not construct-only!
Declaration
Swift
@inlinable func set(property: ToolItemGroupPropertyName, value v: GLibObject.Value)Parameters
propertythe property to get the value for
Return Value
the value of the named property
-
getCollapsed()Extension methodGets whether
groupis collapsed or expanded.Declaration
Swift
@inlinable func getCollapsed() -> Bool -
getDropItem(x:Extension methody: ) Gets the tool item at position (x, y).
Declaration
Swift
@inlinable func getDropItem(x: Int, y: Int) -> ToolItemRef! -
getEllipsize()Extension methodGets the ellipsization mode of
group.Declaration
Swift
@inlinable func getEllipsize() -> PangoEllipsizeMode -
getHeaderRelief()Extension methodGets the relief mode of the header button of
group.Declaration
Swift
@inlinable func getHeaderRelief() -> GtkReliefStyle -
getItemPosition(item:Extension method) Gets the position of
itemingroupas index.Declaration
Swift
@inlinable func getItemPosition<ToolItemT>(item: ToolItemT) -> Int where ToolItemT : ToolItemProtocol -
getLabel()Extension methodGets the label of
group.Declaration
Swift
@inlinable func getLabel() -> String! -
getLabelWidget()Extension methodGets the label widget of
group. Seegtk_tool_item_group_set_label_widget().Declaration
Swift
@inlinable func getLabelWidget() -> WidgetRef! -
getNItems()Extension methodGets the number of tool items in
group.Declaration
Swift
@inlinable func getNItems() -> Int -
getNthItem(index:Extension method) Gets the tool item at
indexin group.Declaration
Swift
@inlinable func getNthItem(index: Int) -> ToolItemRef! -
insert(item:Extension methodposition: ) Inserts
itematpositionin the list of children ofgroup.Declaration
Swift
@inlinable func insert<ToolItemT>(item: ToolItemT, position: Int) where ToolItemT : ToolItemProtocol -
set(collapsed:Extension method) Sets whether the
groupshould be collapsed or expanded.Declaration
Swift
@inlinable func set(collapsed: Bool) -
set(ellipsize:Extension method) Sets the ellipsization mode which should be used by labels in
group.Declaration
Swift
@inlinable func set(ellipsize: PangoEllipsizeMode) -
setHeaderRelief(style:Extension method) Set the button relief of the group header. See
gtk_button_set_relief()for details.Declaration
Swift
@inlinable func setHeaderRelief(style: GtkReliefStyle) -
setItemPosition(item:Extension methodposition: ) Sets the position of
itemin the list of children ofgroup.Declaration
Swift
@inlinable func setItemPosition<ToolItemT>(item: ToolItemT, position: Int) where ToolItemT : ToolItemProtocol -
set(label:Extension method) Sets the label of the tool item group. The label is displayed in the header of the group.
Declaration
Swift
@inlinable func set(label: UnsafePointer<gchar>!) -
set(labelWidget:Extension method) Sets the label of the tool item group. The label widget is displayed in the header of the group, in place of the usual label.
Declaration
Swift
@inlinable func set<WidgetT>(labelWidget: WidgetT) where WidgetT : WidgetProtocol -
collapsedExtension methodUndocumented
Declaration
Swift
@inlinable var collapsed: Bool { get nonmutating set } -
ellipsizeExtension methodUndocumented
Declaration
Swift
@inlinable var ellipsize: PangoEllipsizeMode { get nonmutating set } -
headerReliefExtension methodGets the relief mode of the header button of
group.Declaration
Swift
@inlinable var headerRelief: GtkReliefStyle { get nonmutating set } -
labelExtension methodUndocumented
Declaration
Swift
@inlinable var label: String! { get nonmutating set } -
labelWidgetExtension methodGets the label widget of
group. Seegtk_tool_item_group_set_label_widget().Declaration
Swift
@inlinable var labelWidget: WidgetRef! { get nonmutating set } -
nItemsExtension methodGets the number of tool items in
group.Declaration
Swift
@inlinable var nItems: Int { get } -
parentInstanceExtension methodUndocumented
Declaration
Swift
@inlinable var parentInstance: GtkContainer { get }
View on GitHub
Install in Dash
ToolItemGroupProtocol Protocol Reference