|
| static int | Fl::h () |
| | Returns the height in pixels of the main screen work area. More...
|
| |
| static void | Fl::keyboard_screen_scaling (int value) |
| | Controls the possibility to scale all windows by ctrl/+/-/0/ or cmd/+/-/0/. More...
|
| |
|
static int | Fl::screen_count () |
| | Gets the number of available screens.
|
| |
| static void | Fl::screen_dpi (float &h, float &v, int n=0) |
| | Gets the screen resolution in dots-per-inch for the given screen. More...
|
| |
| static int | Fl::screen_num (int x, int y) |
| | Gets the screen number of a screen that contains the specified screen position x, y. More...
|
| |
| static int | Fl::screen_num (int x, int y, int w, int h) |
| | Gets the screen number for the screen which intersects the most with the rectangle defined by x, y, w, h. More...
|
| |
|
static float | Fl::screen_scale (int n) |
| | Current value of the GUI scaling factor for screen number n.
|
| |
| static void | Fl::screen_scale (int n, float factor) |
| | Set the value of the GUI scaling factor for screen number n. More...
|
| |
| static int | Fl::screen_scaling_supported () |
| | See if scaling factors are supported by this platform. More...
|
| |
| static void | Fl::screen_work_area (int &X, int &Y, int &W, int &H, int mx, int my) |
| | Gets the bounding box of the work area of a screen that contains the specified screen position mx, my. More...
|
| |
| static void | Fl::screen_work_area (int &X, int &Y, int &W, int &H, int n) |
| | Gets the bounding box of the work area of the given screen. More...
|
| |
| static void | Fl::screen_work_area (int &X, int &Y, int &W, int &H) |
| | Gets the bounding box of the work area of the screen that contains the mouse pointer. More...
|
| |
| 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. More...
|
| |
| 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. More...
|
| |
| static void | Fl::screen_xywh (int &X, int &Y, int &W, int &H, int n) |
| | Gets the screen bounding rect for the given screen. More...
|
| |
| static void | Fl::screen_xywh (int &X, int &Y, int &W, int &H, int mx, int my, int mw, int mh) |
| | Gets the screen bounding rect for the screen which intersects the most with the rectangle defined by mx, my, mw, mh. More...
|
| |
| static int | Fl::w () |
| | Returns the width in pixels of the main screen work area. More...
|
| |
| static int | Fl::x () |
| | Returns the leftmost x coordinate of the main screen work area. More...
|
| |
| static int | Fl::y () |
| | Returns the topmost y coordinate of the main screen work area. More...
|
| |
FLTK supports high-DPI screens using a screen scaling factor. The scaling factor is initialized by the library to a value based on information obtained from the OS. If this initial value is not satisfactory, the FLTK_SCALING_FACTOR environment variable can be set to a value FLTK will use as initial scaling factor. The scaling factor value can be further changed at runtime by typing ctrl-/+/-/0/ (cmd-/+/-/0/ under MacOS). FLTK sends the FL_ZOOM_EVENT when the factor value is changed, to which a callback can be associated with Fl::add_handler(). By default, FLTK also displays the new scaling factor value in a yellow, transient window. This can be changed with option Fl::OPTION_SHOW_SCALING. The scaling factor value is programmatically get and set with the Fl::screen_scale() functions.