#include <MultiMonitor.h>
Static Public Member Functions | |
static int | getNumMonitors () |
static GdkRectangle | getMonitor (int monitorNum) |
static GdkRectangle | getMonitorForWindow (GtkWindow *window) |
static void | printMonitorInfo () |
greebo: This class acts as container for several multi-monitor-related functions. Use the getMonitor() method to acquire the screen dimensions of the given screen.
Definition at line 17 of file MultiMonitor.h.
static GdkRectangle gtkutil::MultiMonitor::getMonitor | ( | int | monitorNum | ) | [inline, static] |
Returns the screen rectangle of the screen with the given index. The first screen is always present and has the index 0.
Definition at line 36 of file MultiMonitor.h.
Referenced by getMonitorForWindow(), and printMonitorInfo().
static GdkRectangle gtkutil::MultiMonitor::getMonitorForWindow | ( | GtkWindow * | window | ) | [inline, static] |
greebo: Returns the rectangle (width/height) for the monitor which the given window is displayed on.
Definition at line 50 of file MultiMonitor.h.
References getMonitor().
static int gtkutil::MultiMonitor::getNumMonitors | ( | ) | [inline, static] |
Returns the number of monitors of the default screen.
Definition at line 23 of file MultiMonitor.h.
Referenced by printMonitorInfo().
static void gtkutil::MultiMonitor::printMonitorInfo | ( | ) | [inline, static] |
Definition at line 61 of file MultiMonitor.h.
References getMonitor(), and getNumMonitors().