tbx
0.7.6
|
Class to store information for the Visible area of a window and provide work area to screen conversion. More...
#include <visiblearea.h>
Public Member Functions | |
VisibleArea () | |
Construct an uninitialised visible area. | |
VisibleArea (int *block) | |
Construct a visible area from an array of 6 integers as provided by Wimp calls. | |
const BBox & | bounds () const |
The visible area of the window on the screen. More... | |
BBox & | bounds () |
The visible area of the window on the screen. More... | |
const Point & | scroll () const |
The scroll offset of the work area within the window. | |
Point & | scroll () |
The scroll offset of the work area within the window. | |
int | work_x (int scr_x) const |
Convert screen x coordinate to work area. | |
int | work_y (int scr_y) const |
Convert screen y coordinate to work area. | |
Point & | work (const Point &scr_pt, Point &work_pt) const |
Convert point from screen coordinates to work area coordinates. More... | |
Point | work (const Point &scr_pt) const |
Convert point from screen coordinates to work area coordinates. More... | |
BBox & | work (const BBox &scr_box, BBox &work_box) const |
Convert bounding box from screen coordinates to work area coordinates. More... | |
BBox | work (const BBox &scr_box) const |
Convert bounding box from screen coordinates to work area coordinates. More... | |
int | screen_x (int work_x) const |
Convert work area x coordinate to screen. | |
int | screen_y (int work_y) const |
Convert work area y coordinate to screen area. | |
Point & | screen (const Point &work_pt, Point &scr_pt) const |
Convert point from work coordinates to screen area coordinates. More... | |
Point | screen (const Point &work_pt) const |
Convert point from work area coordinates to screen coordinates. More... | |
BBox & | screen (const BBox &work_box, BBox &scr_box) const |
Convert bounding box from work area coordinates to screen coordinates. More... | |
BBox | screen (const BBox &work_box) const |
Convert bounding box from work area coordinates to screen coordinates. More... | |
Class to store information for the Visible area of a window and provide work area to screen conversion.
|
inline |
The visible area of the window on the screen.
(screen coordinates)
|
inline |
The visible area of the window on the screen.
(screen coordinates)
Convert bounding box from work area coordinates to screen coordinates.
work_box | work area BBox to convert |
Convert point from work area coordinates to screen coordinates.
work_pt | work area point to convert |
Convert point from work coordinates to screen area coordinates.
work_pt | Work area point to convertt |
scr_pt | Screen point to store resul |
Convert bounding box from screen coordinates to work area coordinates.
scr_box | Screen BBox to convert |
Convert point from screen coordinates to work area coordinates.
scr_pt | Screen point to convert |
Convert point from screen coordinates to work area coordinates.
scr_pt | Screen point to convert |
work_pt | Work area point to store result |