Пример #1
0
        /// <summary>
        /// The set window position.
        /// </summary>
        /// <param name="window">
        /// The window.
        /// </param>
        /// <param name="position">
        /// The position.
        /// </param>
        internal static void SetWindowPosition(IntPtr window, GtkWindowPosition position)
        {
            if (CefRuntime.Platform == CefRuntimePlatform.Windows)
            {
                Win.gtk_window_set_position(window, position);
            }

            if (CefRuntime.Platform == CefRuntimePlatform.Linux)
            {
                Linux.gtk_window_set_position(window, position);
            }
        }
Пример #2
0
 public void SetWindowPosistion(GtkWindowPosition position)
 {
     try
     {
         NativeMethods.gtk_window_set_position(_handle, position);
     }
     catch (Exception exception)
     {
         Log.Error("Error in LinuxGtk3Host::SetWindowPosistion");
         Log.Error(exception);
     }
 }
Пример #3
0
 protected virtual void SetWindowPosistion(int windowPosition)
 {
     try
     {
         GtkWindowPosition position = (GtkWindowPosition)windowPosition;
         gtk_window_set_position(_handle, position);
     }
     catch (Exception exception)
     {
         Logger.Instance.Log.LogError("Error in LinuxGtk3Host::SetWindowPosistion");
         Logger.Instance.Log.LogError(exception);
     }
 }
Пример #4
0
 public static extern bool gtk_window_set_position(IntPtr window, GtkWindowPosition position);
Пример #5
0
 public static extern void SetPosition(IntPtr window, GtkWindowPosition position);
Пример #6
0
 public void SetWindowPosistion(GtkWindowPosition position)
 {
 }
Пример #7
0
 public void SetWindowPosistion(GtkWindowPosition position)
 {
     NativeMethods.gtk_window_set_position(_handle, position);
 }