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