Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/ceguilua/ceguilua-0.5.0/package/CoordConverter.pkg @ 2755

Last change on this file since 2755 was 2710, checked in by rgrieder, 16 years ago

Merged buildsystem3 containing buildsystem2 containing Adi's buildsystem branch back to the trunk.
Please update the media directory if you were not using buildsystem3 before.

  • Property svn:eol-style set to native
File size: 1.3 KB
RevLine 
[2608]1/***********************************************************************
2    CoordConverter utility class
3***********************************************************************/
4class CoordConverter
5{
6    static float windowToScreenX(const Window& window, const UDim& x);
7    static float windowToScreenX(const Window& window, const float x);
8
9    static float windowToScreenY(const Window& window, const UDim& y);
10    static float windowToScreenY(const Window& window, const float y);
11
12    static Vector2 windowToScreen(const Window& window, const UVector2& vec);
13    static Vector2 windowToScreen(const Window& window, const Vector2& vec);
14
15    static Rect windowToScreen(const Window& window, const URect& rect);
16    static Rect windowToScreen(const Window& window, const Rect& rect);
17
18    static float screenToWindowX(const Window& window, const UDim& x);
19    static float screenToWindowX(const Window& window, const float x);
20
21    static float screenToWindowY(const Window& window, const UDim& y);
22    static float screenToWindowY(const Window& window, const float y);
23
24    static Vector2 screenToWindow(const Window& window, const UVector2& vec);
25    static Vector2 screenToWindow(const Window& window, const Vector2& vec);
26
27    static Rect screenToWindow(const Window& window, const URect& rect);
28    static Rect screenToWindow(const Window& window, const Rect& rect);
29
30};
Note: See TracBrowser for help on using the repository browser.