/// <summary> /// /// </summary> internal void SetClipboardText(string text) { var bytes = TextEncodes.UTF8NoBOM.GetBytes(text); unsafe { fixed(byte *ptr = bytes) { _jsInputMethod.CallVoid("setClipboardText", (ulong)ptr, bytes.Length); } } }
/// <summary> /// /// </summary> public void Resize(Size2D size) { _jsOffscreen.CallVoid("resize", new { w = size.Width, h = size.Height }); }