示例#1
0
        /// <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);
                }
            }
        }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 public void Resize(Size2D size)
 {
     _jsOffscreen.CallVoid("resize", new { w = size.Width, h = size.Height });
 }