public virtual AsRectangle getTextBounds()
 {
     if (mRequiresRedraw)
     {
         redrawContents();
     }
     if (mTextBounds == null)
     {
         mTextBounds = mQuadBatch.getBounds(mQuadBatch);
     }
     return(mTextBounds.clone());
 }
        private void setClipping(AsRectangle _value)
        {
            mClipping     = _value;
            mRootClipping = _value.clone();
            AsSubTexture parentTexture = mParent as AsSubTexture;

            while (parentTexture != null)
            {
                AsRectangle parentClipping = parentTexture.mClipping;
                mRootClipping.x      = parentClipping.x + mRootClipping.x * parentClipping.width;
                mRootClipping.y      = parentClipping.y + mRootClipping.y * parentClipping.height;
                mRootClipping.width  = mRootClipping.width * parentClipping.width;
                mRootClipping.height = mRootClipping.height * parentClipping.height;
                parentTexture        = parentTexture.mParent as AsSubTexture;
            }
        }
 public virtual AsRectangle getClipping()
 {
     return(mClipping.clone());
 }
 public virtual void setViewPort(AsRectangle _value)
 {
     mViewPort = _value.clone();
     updateViewPort();
 }
 public virtual AsRectangle getViewPort()
 {
     return(mViewPort.clone());
 }
Exemple #6
0
 public virtual void setTextBounds(AsRectangle _value)
 {
     mTextBounds = _value.clone();
     createTextField();
 }
Exemple #7
0
 public virtual AsRectangle getTextBounds()
 {
     return(mTextBounds.clone());
 }
 public virtual AsRectangle getFrame()
 {
     return(mFrame != null?mFrame.clone() : new AsRectangle(0, 0, getWidth(), getHeight()));
 }