Static Public Member Functions | |
static float | windowToScreenX (const Window &window, const UDim &x) |
Convert a window co-ordinate value, specified as a UDim, to a screen relative pixel co-ordinate. | |
static float | windowToScreenX (const Window &window, const float x) |
Convert a window pixel co-ordinate value, specified as a float, to a screen pixel co-ordinate. | |
static float | windowToScreenY (const Window &window, const UDim &y) |
Convert a window co-ordinate value, specified as a UDim, to a screen relative pixel co-ordinate. | |
static float | windowToScreenY (const Window &window, const float y) |
Convert a window pixel co-ordinate value, specified as a float, to a screen pixel co-ordinate. | |
static Vector2 | windowToScreen (const Window &window, const UVector2 &vec) |
Convert a window co-ordinate point, specified as a UVector2, to a screen relative pixel co-ordinate point. | |
static Vector2 | windowToScreen (const Window &window, const Vector2 &vec) |
Convert a window pixel co-ordinate point, specified as a Vector2, to a screen pixel co-ordinate point. | |
static Rect | windowToScreen (const Window &window, const URect &rect) |
Convert a window area, specified as a URect, to a screen area. | |
static Rect | windowToScreen (const Window &window, const Rect &rect) |
Convert a pixel window area, specified as a Rect, to a screen area. | |
static float | screenToWindowX (const Window &window, const UDim &x) |
Convert a screen relative UDim co-ordinate value to a window co-ordinate value, specified in pixels. | |
static float | screenToWindowX (const Window &window, const float x) |
Convert a screen pixel co-ordinate value to a window co-ordinate value, specified in pixels. | |
static float | screenToWindowY (const Window &window, const UDim &y) |
Convert a screen relative UDim co-ordinate value to a window co-ordinate value, specified in pixels. | |
static float | screenToWindowY (const Window &window, const float y) |
Convert a screen pixel co-ordinate value to a window co-ordinate value, specified in pixels. | |
static Vector2 | screenToWindow (const Window &window, const UVector2 &vec) |
Convert a screen relative UVector2 point to a window co-ordinate point, specified in pixels. | |
static Vector2 | screenToWindow (const Window &window, const Vector2 &vec) |
Convert a screen Vector2 pixel point to a window co-ordinate point, specified in pixels. | |
static Rect | screenToWindow (const Window &window, const URect &rect) |
Convert a URect screen area to a window area, specified in pixels. | |
static Rect | screenToWindow (const Window &window, const Rect &rect) |
Convert a Rect screen pixel area to a window area, specified in pixels. |
Convert a Rect screen pixel area to a window area, specified in pixels.
window | Window object to use as a target for the conversion. | |
rect | Rect object describing the area to be converted. |
References CEGUI::Vector2::d_x, CEGUI::Vector2::d_y, and CEGUI::Rect::offset().
Convert a URect screen area to a window area, specified in pixels.
window | Window object to use as a target for the conversion. | |
rect | URect object describing the area to be converted |
References CEGUI::URect::asAbsolute(), CEGUI::Vector2::d_x, CEGUI::Vector2::d_y, CEGUI::System::getRenderer(), CEGUI::System::getSingleton(), CEGUI::Renderer::getSize(), and CEGUI::Rect::offset().
Vector2 CEGUI::CoordConverter::screenToWindow | ( | const Window & | window, | |
const Vector2 & | vec | |||
) | [static] |
Vector2 CEGUI::CoordConverter::screenToWindow | ( | const Window & | window, | |
const UVector2 & | vec | |||
) | [static] |
Convert a screen relative UVector2 point to a window co-ordinate point, specified in pixels.
window | Window object to use as a target for the conversion. | |
vec | UVector2 object describing the point to be converted |
References CEGUI::UVector2::asAbsolute(), and CEGUI::System::getSingleton().
Referenced by CEGUI::MultiLineEditbox::getTextIndexFromPosition(), CEGUI::Tree::onMouseButtonDown(), CEGUI::Titlebar::onMouseButtonDown(), CEGUI::Thumb::onMouseButtonDown(), CEGUI::MultiColumnList::onMouseButtonDown(), CEGUI::ListHeaderSegment::onMouseButtonDown(), CEGUI::Listbox::onMouseButtonDown(), CEGUI::FrameWindow::onMouseButtonDown(), CEGUI::DragContainer::onMouseButtonDown(), CEGUI::Tree::onMouseMove(), CEGUI::Titlebar::onMouseMove(), CEGUI::Thumb::onMouseMove(), CEGUI::ListHeaderSegment::onMouseMove(), CEGUI::Listbox::onMouseMove(), CEGUI::FrameWindow::onMouseMove(), CEGUI::DragContainer::onMouseMove(), and CEGUI::ComboDropList::onMouseMove().
float CEGUI::CoordConverter::screenToWindowX | ( | const Window & | window, | |
const float | x | |||
) | [static] |
Convert a screen pixel co-ordinate value to a window co-ordinate value, specified in pixels.
window | Window object to use as a target for the conversion. | |
x | float x co-ordinate value to be converted. |
Convert a screen relative UDim co-ordinate value to a window co-ordinate value, specified in pixels.
window | Window object to use as a target for the conversion. | |
x | UDim x co-ordinate value to be converted |
References CEGUI::UDim::asAbsolute(), and CEGUI::System::getSingleton().
Referenced by CEGUI::FalagardEditbox::getTextIndexFromPosition().
float CEGUI::CoordConverter::screenToWindowY | ( | const Window & | window, | |
const float | y | |||
) | [static] |
Convert a screen pixel co-ordinate value to a window co-ordinate value, specified in pixels.
window | Window object to use as a target for the conversion. | |
y | UDim y co-ordinate value to be converted. |
Convert a screen relative UDim co-ordinate value to a window co-ordinate value, specified in pixels.
window | Window object to use as a target for the conversion. | |
y | UDim y co-ordinate value to be converted |
References CEGUI::UDim::asAbsolute(), and CEGUI::System::getSingleton().
Convert a pixel window area, specified as a Rect, to a screen area.
window | Window object to use as a base for the conversion. | |
rect | Rect object describing the area to be converted. |
References CEGUI::Rect::offset().
Convert a window area, specified as a URect, to a screen area.
rect | URect object describing the area to be converted |
References CEGUI::URect::asAbsolute(), CEGUI::Window::getPixelSize(), and CEGUI::Rect::offset().
Vector2 CEGUI::CoordConverter::windowToScreen | ( | const Window & | window, | |
const Vector2 & | vec | |||
) | [static] |
Vector2 CEGUI::CoordConverter::windowToScreen | ( | const Window & | window, | |
const UVector2 & | vec | |||
) | [static] |
Convert a window co-ordinate point, specified as a UVector2, to a screen relative pixel co-ordinate point.
window | Window object to use as a base for the conversion. | |
vec | UVector2 object describing the point to be converted |
References CEGUI::UVector2::asAbsolute(), and CEGUI::Window::getPixelSize().
Referenced by CEGUI::ClippedContainer::getUnclippedInnerRect_impl(), and CEGUI::Window::getUnclippedPixelRect().
float CEGUI::CoordConverter::windowToScreenX | ( | const Window & | window, | |
const float | x | |||
) | [static] |
Convert a window pixel co-ordinate value, specified as a float, to a screen pixel co-ordinate.
window | Window object to use as a base for the conversion. | |
x | float x co-ordinate value to be converted. |
Convert a window co-ordinate value, specified as a UDim, to a screen relative pixel co-ordinate.
window | Window object to use as a base for the conversion. | |
x | UDim x co-ordinate value to be converted |
References CEGUI::UDim::asAbsolute(), CEGUI::Size::d_width, and CEGUI::Window::getPixelSize().
float CEGUI::CoordConverter::windowToScreenY | ( | const Window & | window, | |
const float | y | |||
) | [static] |
Convert a window pixel co-ordinate value, specified as a float, to a screen pixel co-ordinate.
window | Window object to use as a base for the conversion. | |
y | float y co-ordinate value to be converted. |
Convert a window co-ordinate value, specified as a UDim, to a screen relative pixel co-ordinate.
window | Window object to use as a base for the conversion. | |
y | UDim y co-ordinate value to be converted |
References CEGUI::UDim::asAbsolute(), CEGUI::Size::d_height, and CEGUI::Window::getPixelSize().