namespace: ashet.gui.clipboard
System Calls
syscall set(in desktop: Desktop, in mime: str, in value: str)Sets the contents of the clip board. Takes a mime type as well as the value in the provided format.
syscall get_type(in desktop: Desktop, in type_buf: ?[]u8, out type_len: usize)Returns the current type present in the clipboard, if any.
syscall get_value(in desktop: Desktop, in mime: str, out value: []const u8)Returns the current clipboard value as the provided mime type. The os provides a conversion *if possible*, otherwise returns an error. The returned memory for
valueis owned by the process and must be freed withashet.process.memory.release.