Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2006, 3:54:11 PM (19 years ago)
Author:
bensch
Message:

fixed the Shell

File:
1 edited

Legend:

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

    r7843 r7874  
    125125    inline const PNode* getBindNode() const { return this->bindNode; };
    126126
    127     inline void setSize2D(float x, float y) { this->sizeX = x, this->sizeY = y; };
     127    inline void setSize2D(float x, float y) { this->size = Vector2D(x, y); };
    128128    void setSizeSoft2D(float x, float y, float bias = 1.0);
    129     inline void setSizeX2D(float x) { this->sizeX = x; };
    130     inline void setSizeY2D(float y) { this->sizeY = y; };
    131     inline float getSizeX2D() const { return this->sizeX; };
    132     inline float getSizeY2D() const { return this->sizeY; };
     129    inline void setSizeX2D(float x) { this->size.x = x; };
     130    inline void setSizeY2D(float y) { this->size.y = y; };
     131    inline float getSizeX2D() const { return this->size.x; };
     132    inline float getSizeY2D() const { return this->size.y; };
    133133
    134134  public:
     
    238238  private:
    239239    const PNode*            bindNode;           //!< a node over which to display this 2D-element
    240     float                   sizeX;              //!< The size of the rendered item in x-direction
    241     float                   sizeY;              //!< The size of the rendered Item in y-direction
     240    Vector2D                size;               //!< The size of the rendered item
    242241    Vector2D*               toSize;             //!< The Size to iterate to.
    243242
Note: See TracChangeset for help on using the changeset viewer.