portico/Sources/Portico/Containers/GtkBox+SequentialContainer.swift

15 lines
557 B
Swift

import Gtk
@_spi(Portico) extension Gtk.Box: SequentialContainer {
/// Delegates to `Gtk.Box.append(child:)`, using the distinct SPI name
/// to avoid recursion with the wrapper's own `append` method.
@_spi(Portico) public func appendChild(_ child: Gtk.Widget) {
append(child: child)
}
/// Delegates to `Gtk.Box.remove(child:)`, using the distinct SPI name
/// to avoid recursion with the wrapper's own `remove` method.
@_spi(Portico) public func removeChild(_ child: Gtk.Widget) {
remove(child: child)
}
}