Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/hudimprovements/src/external/ceguilua/ceguilua-0.5.0/package/CoordConverter.pkg @ 8365

Last change on this file since 8365 was 5781, checked in by rgrieder, 15 years ago

Reverted trunk again. We might want to find a way to delete these revisions again (x3n's changes are still available as diff in the commit mails).

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
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.