|
Macro used to return a float value rounded to the nearest integer.
This macro is used throughout the library to ensure that elements are kept at integer pixel positions on the display.
- Parameters:
-
| x | Expression to be rounded to nearest whole number |
- Returns:
- x after having been rounded
Definition at line 159 of file CEGUIBase.h.
Referenced by CEGUI::Window::absoluteToRelative_impl(), CEGUI::Window::absoluteToRelativeX_impl(), CEGUI::Window::absoluteToRelativeY_impl(), CEGUI::UDim::asAbsolute(), CEGUI::FrameComponent::doBackgroundRender(), CEGUI::ListHeaderSegment::doDragSizing(), CEGUI::ListboxTextItem::draw(), CEGUI::Imageset::draw(), CEGUI::Font::drawText(), CEGUI::RenderableImage::getBaseXCoord(), CEGUI::RenderableImage::getBaseYCoord(), CEGUI::ListboxTextItem::getPixelSize(), CEGUI::Menubar::layoutItemWidgets(), CEGUI::FrameWindow::moveBottomEdge(), CEGUI::FrameWindow::moveLeftEdge(), CEGUI::FrameWindow::moveRightEdge(), CEGUI::FrameWindow::moveTopEdge(), CEGUI::FrameWindow::offsetPixelPosition(), CEGUI::TextItem::populateRenderCache(), CEGUI::StaticText::populateRenderCache(), CEGUI::Window::relativeToAbsolute_impl(), CEGUI::Window::relativeToAbsoluteX_impl(), CEGUI::Window::relativeToAbsoluteY_impl(), CEGUI::ImageryComponent::render_impl(), CEGUI::Window::setMaximumSize(), CEGUI::Window::setMinimumSize(), CEGUI::Window::setPosition(), CEGUI::Window::setRect(), and CEGUI::Window::setSize(). |