simvx.core.clipboard¶
Clipboard support for the SimVX editor.
Provides node copy/paste (serialized via scene helpers) and text clipboard
with optional platform integration (e.g., GLFW glfwGetClipboardString).
Module Contents¶
Classes¶
Singleton-style clipboard accessed entirely through class methods. |
Data¶
API¶
- class simvx.core.clipboard.Clipboard[source]¶
Singleton-style clipboard accessed entirely through class methods.
- classmethod paste_node(parent: Any | None = None) Any | None[source]¶
Deserialize the stored node tree.
If parent is given the new node is added as a child. Returns the new node, or
Nonewhen the clipboard is empty.
- classmethod copy_text(text: str) None[source]¶
Store text and push to the platform clipboard if available.
- classmethod paste_text() str[source]¶
Return text from the platform clipboard, falling back to internal storage.