Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2006, 12:58:31 AM (19 years ago)
Author:
bensch
Message:

gui: new Element2D functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/graphics/render2D/element_2d.cc

    r7919 r8007  
    299299
    300300/**
     301 * @brief updates the Rel - Coordinate in x-direction
     302 * @param x the x coordinate
     303 */
     304void Element2D::setRelCoorX2D(float x)
     305{
     306  this->setRelCoor2D(Vector2D(x, this->relCoordinate.y));
     307}
     308
     309/**
     310 * @brief updates the Rel - Coordinate in y-direction
     311 * @param y the y coordinate
     312 */
     313void Element2D::setRelCoorY2D(float y)
     314{
     315  this->setRelCoor2D(Vector2D(this->relCoordinate.x, y));
     316}
     317
     318
     319/**
    301320 * @brief sets the Relative coordinate to the parent in Pixels
    302321 * @param x the relCoord X
     
    388407  this->setAbsCoor2D(Vector2D(x, y));
    389408}
     409
     410/**
     411 * @brief updates the Abs - Coordinate in x-direction
     412 * @param x the x coordinate
     413 */
     414void Element2D::setAbsCoorX2D(float x)
     415{
     416  this->setAbsCoor2D(x, this->getAbsCoor2D().y);
     417}
     418
     419/**
     420 * @brief updates the Abs - Coordinate in y-direction
     421 * @param y the y coordinate
     422 */
     423void Element2D::setAbsCoorY2D(float y)
     424{
     425  this->setAbsCoor2D(this->getAbsCoor2D().x, y);
     426}
     427
    390428
    391429/**
Note: See TracChangeset for help on using the changeset viewer.