9 lines
317 B
Swift
9 lines
317 B
Swift
import Gtk
|
|
|
|
/// SPI protocol for containers that host exactly one child widget.
|
|
///
|
|
/// No P0 conformance — declared now for later phases (single-child sugar).
|
|
@_spi(Portico) @MainActor public protocol SingleChildContainer {
|
|
/// Attaches or detaches a child widget.
|
|
func attachChild(_ child: Gtk.Widget?)
|
|
}
|