Add content to renderable storage
This commit is contained in:
parent
fcc8ec4d7c
commit
8da8115172
@ -14,6 +14,8 @@ public class RenderableStorage {
|
|||||||
public var pointer: Any?
|
public var pointer: Any?
|
||||||
/// Various properties of a widget.
|
/// Various properties of a widget.
|
||||||
public var fields: [String: Any] = [:]
|
public var fields: [String: Any] = [:]
|
||||||
|
/// Other renderable storage elements.
|
||||||
|
public var content: [String: [RenderableStorage]] = [:]
|
||||||
|
|
||||||
/// The pointer as an opaque pointer, as this is may be needed with backends interoperating with C or C++.
|
/// The pointer as an opaque pointer, as this is may be needed with backends interoperating with C or C++.
|
||||||
public var opaquePointer: OpaquePointer? {
|
public var opaquePointer: OpaquePointer? {
|
||||||
@ -26,9 +28,12 @@ public class RenderableStorage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Initialize a renderable storage.
|
/// Initialize a renderable storage.
|
||||||
/// - Parameter pointer: The pointer to the renderable element, its type depends on the backend.
|
/// - Parameters:
|
||||||
public init(_ pointer: Any?, content: [String: [ViewStorage]] = [:]) {
|
/// - pointer: The pointer to the renderable element, its type depends on the backend.
|
||||||
|
/// - content: Other renderable storages.
|
||||||
|
public init(_ pointer: Any?, content: [String: [RenderableStorage]] = [:]) {
|
||||||
self.pointer = pointer
|
self.pointer = pointer
|
||||||
|
self.content = content
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user