![]() | ![]() | ![]() | libxfcegui4 Reference Manual | ![]() |
---|
Xfce Gtk+ extensions — Additional Gtk+ related functions.
#include <libxfcegui4/libxfcegui4.h> void xfce_gtk_window_center_on_monitor (GtkWindow *window, GdkScreen *screen, gint monitor); void xfce_gtk_window_center_on_monitor_with_pointer (GtkWindow *window);
void xfce_gtk_window_center_on_monitor (GtkWindow *window, GdkScreen *screen, gint monitor);
Centers window on monitor of screen. monitor has to reference a valid monitor of screen.
window : | The Gtk window to center. |
screen : | The screen on which the window should be centered. |
monitor : | The monitor of the screen on which window should be centered. |
Since 4.2
void xfce_gtk_window_center_on_monitor_with_pointer (GtkWindow *window);
Determines the monitor that contains the pointer and centers the window on it. If it failes to determine the current pointer position, window is centered on the first monitor of the default screen on the default display.
window : | The Gtk window to center. |
<< Xfce Gdk extensions | Xfce GUI Netk Reference >> |