Monitor Class Reference

Inherits Rectangle.

List of all members.

Public Member Functions

int depth () const
float dpi_x () const
float dpi_y () const
float dpi () const

Static Public Member Functions

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

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

Monitor::work
 

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:
Sun Jan 7 00:55:18 2007. FLTK ©2006 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.