Monitors and Displays

Functions for finding our information about the environment. More...

+ Collaboration diagram for Monitors and Displays:

Functions

long jmonitor_getnumdisplays ()
 Return the number of monitors on which can be displayed. More...
 
void jmonitor_getdisplayrect (long workarea, long displayindex, t_rect *rect)
 Return the t_rect for a given display. More...
 
void jmonitor_getdisplayrect_foralldisplays (long workarea, t_rect *rect)
 Return a union of all display rects. More...
 
void jmonitor_getdisplayrect_forpoint (long workarea, t_pt pt, t_rect *rect)
 Return the t_rect for the display on which a point exists. More...
 

Detailed Description

Functions for finding our information about the environment.

Function Documentation

void jmonitor_getdisplayrect ( long  workarea,
long  displayindex,
t_rect rect 
)

Return the t_rect for a given display.

Parameters
workareaSet workarea non-zero to clip out things like dock / task bar.
displayindexThe index number for a monitor. The primary monitor has an index of 0.
rectThe address of a valid t_rect whose values will be filled-in upon return.
void jmonitor_getdisplayrect_foralldisplays ( long  workarea,
t_rect rect 
)

Return a union of all display rects.

Parameters
workareaSet workarea non-zero to clip out things like dock / task bar.
rectThe address of a valid t_rect whose values will be filled-in upon return.
void jmonitor_getdisplayrect_forpoint ( long  workarea,
t_pt  pt,
t_rect rect 
)

Return the t_rect for the display on which a point exists.

Parameters
workareaSet workarea non-zero to clip out things like dock / task bar.
ptA point, for which the monitor will be determined and the rect recturned.
rectThe address of a valid t_rect whose values will be filled-in upon return.
long jmonitor_getnumdisplays ( )

Return the number of monitors on which can be displayed.

Returns
The number of monitors.
  Copyright © 2015, Cycling '74