/// <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); } }
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); } }
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); } }
public static extern bool gtk_window_set_position(IntPtr window, GtkWindowPosition position);
public static extern void SetPosition(IntPtr window, GtkWindowPosition position);
public void SetWindowPosistion(GtkWindowPosition position) { }
public void SetWindowPosistion(GtkWindowPosition position) { NativeMethods.gtk_window_set_position(_handle, position); }