david-swift d8de611510 Add support for auto-generated widget bindings
Additionally fix an update problem occurring with custom views
2024-01-22 21:45:31 +01:00

17 lines
330 B
Swift

//
// OpaquePointer.swift
// Adwaita
//
// Created by david-swift on 15.01.23.
//
extension OpaquePointer {
/// Convert an opaque pointer into an unsafe mutable pointer with a defined type.
/// - Returns: The unsafe mutable pointer.
public func cast<T>() -> UnsafeMutablePointer<T> {
.init(self)
}
}