fltk::Monitor Class Reference

Inherits fltk::Rectangle.

List of all members.

Static Public Member Functions

static const Monitorall ()
static const Monitorfind (int x, int y)
static int list (const Monitor **)

Public Attributes

Rectangle work

Detailed Description

Structure describing one of the monitors (screens) connected to the system. You can ask for one by position with find(), ask for all of them with list(), and ask for a fake one that surrounds all of them with all(). You then look in the structure to get information like the size and bit depth.

Member Function Documentation

const Monitor & Monitor::all ( ) [static]

Return a "monitor" that surrounds all the monitors. If you have a single monitor, this returns a monitor structure that defines it. If you have multiple monitors this returns a fake monitor that surrounds all of them.

const Monitor & Monitor::find ( int  x,
int  y 
) [static]

Return a pointer to a Monitor structure describing the monitor that contains or is closest to the given x,y, position.

int Monitor::list ( const Monitor **  p) [static]

Return an array of all Monitors. p is set to point to a static array of Monitor structures describing all monitors connected to the system. If there is a "primary" monitor, it will be first in the list.

Subsequent calls will usually return the same array, but if a signal comes in indicating a change it will probably delete the old array and return a new one.

Member Data Documentation

The rectangle of the monitor not covered by tool or menu bars. This is not a method because it looks clearer to write "monitor.work.x()" than "monitor.work().x()".

The documentation for this class was generated from the following files: