Screen functions

fl global screen functions declared in <FL/Fl.H> More...

Functions

static int Fl::h ()
 Returns the height of the screen in pixels.
static int Fl::screen_count ()
 Gets the number of available screens.
static void Fl::screen_xywh (int &X, int &Y, int &W, int &H, int n)
 Gets the screen bounding rect for the given screen.
static void Fl::screen_xywh (int &X, int &Y, int &W, int &H, int mx, int my)
 Gets the bounding box of a screen that contains the specified screen position mx, my.
static void Fl::screen_xywh (int &X, int &Y, int &W, int &H)
 Gets the bounding box of a screen that contains the mouse pointer.
static int Fl::w ()
 Returns the width of the screen in pixels.
static int Fl::x ()
 Returns the origin of the current screen, where 0 indicates the left side of the screen.
static int Fl::y ()
 Returns the origin of the current screen, where 0 indicates the top edge of the screen.

Detailed Description

fl global screen functions declared in <FL/Fl.H>


Function Documentation

static int Fl::h (  )  [static, inherited]

Returns the height of the screen in pixels.

void Fl::screen_xywh ( int &  X,
int &  Y,
int &  W,
int &  H,
int  n 
) [static, inherited]

Gets the screen bounding rect for the given screen.

Parameters:
[out] X,Y,W,H the corresponding screen bounding box
[in] n the screen number (0 to Fl::screen_count() - 1)
See also:
void screen_xywh(int &x, int &y, int &w, int &h, int mx, int my)

void Fl::screen_xywh ( int &  X,
int &  Y,
int &  W,
int &  H,
int  mx,
int  my 
) [static, inherited]

Gets the bounding box of a screen that contains the specified screen position mx, my.

Parameters:
[out] X,Y,W,H the corresponding screen bounding box
[in] mx,my the absolute screen position

static void Fl::screen_xywh ( int &  X,
int &  Y,
int &  W,
int &  H 
) [inline, static, inherited]

Gets the bounding box of a screen that contains the mouse pointer.

Parameters:
[out] X,Y,W,H the corresponding screen bounding box
See also:
void screen_xywh(int &x, int &y, int &w, int &h, int mx, int my)

static int Fl::w (  )  [static, inherited]

Returns the width of the screen in pixels.

static int Fl::x (  )  [static, inherited]

Returns the origin of the current screen, where 0 indicates the left side of the screen.

static int Fl::y (  )  [static, inherited]

Returns the origin of the current screen, where 0 indicates the top edge of the screen.


FLTK © 1998-2010 by 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.