⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 coordconverter.pkg

📁 cegui界面库
💻 PKG
字号:
/***********************************************************************
    CoordConverter utility class
***********************************************************************/
class CoordConverter
{
    static float windowToScreenX(const Window& window, const UDim& x);
    static float windowToScreenX(const Window& window, const float x);

    static float windowToScreenY(const Window& window, const UDim& y);
    static float windowToScreenY(const Window& window, const float y);

    static Vector2 windowToScreen(const Window& window, const UVector2& vec);
    static Vector2 windowToScreen(const Window& window, const Vector2& vec);

    static Rect windowToScreen(const Window& window, const URect& rect);
    static Rect windowToScreen(const Window& window, const Rect& rect);

    static float screenToWindowX(const Window& window, const UDim& x);
    static float screenToWindowX(const Window& window, const float x);

    static float screenToWindowY(const Window& window, const UDim& y);
    static float screenToWindowY(const Window& window, const float y);

    static Vector2 screenToWindow(const Window& window, const UVector2& vec);
    static Vector2 screenToWindow(const Window& window, const Vector2& vec);

    static Rect screenToWindow(const Window& window, const URect& rect);
    static Rect screenToWindow(const Window& window, const Rect& rect);

};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -