Exemple #1
0
 public override string?GetClipboardString()
 {
     if (App.System.Windows[0].Implementation is GLFW_Window window)
     {
         return(GLFW.GetClipboardString(window.pointer));
     }
     return(null);
 }
Exemple #2
0
 internal void BeforeUpdate()
 {
     if (App.Window.Implementation is GLFW_Window window)
     {
         var ptr = GLFW.GetClipboardString(window.pointer);
         if (ptr == IntPtr.Zero)
         {
             clipboardText = null;
         }
         else
         {
             clipboardText = Marshal.PtrToStringUTF8(ptr);
         }
     }
 }
Exemple #3
0
 internal void BeforeUpdate()
 {
     // clipboard text
     if (windows.Count > 0)
     {
         var ptr = GLFW.GetClipboardString(windows[0]);
         if (ptr == IntPtr.Zero)
         {
             clipboardText = null;
         }
         else
         {
             clipboardText = Marshal.PtrToStringUTF8(ptr);
         }
     }
 }