Exemplo n.º 1
0
        /// <summary>
        /// returns a "local" axis aligned bounding box of the node in pixels.
        /// The returned box is relative only to its parent.
        /// The returned box is in Points.
        /// @since v0.99.5
        /// </summary>
        public CCRect boundingBoxInPixels()
        {
            CCRect rect = new CCRect(0, 0, m_tContentSizeInPixels.width, m_tContentSizeInPixels.height);

            return(CCAffineTransform.CCRectApplyAffineTransform(rect, nodeToParentTransform()));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Callback by CCDirector for change devic e orientation.
        /// </summary>
        /// <param name="orientation">The defination of orientation which CCDirector want change to.</param>
        /// <returns>The actual orientation of the application.</returns>
        //public Orientation setOrientation(Orientation orientation)
        //{

        //}

        /// <summary>
        /// Get status bar rectangle in EGLView window.
        /// </summary>
        /// <param name="rect"></param>
        public void statusBarFrame(out CCRect rect)
        {
            // Windows doesn't have status bar.
            rect = new CCRect(0, 0, 0, 0);
        }
Exemplo n.º 3
0
        /// <summary>
        /// returns a "local" axis aligned bounding box of the node.
        /// The returned box is relative only to its parent.
        /// @since v0.8.2
        /// </summary>
        public CCRect boundingBox()
        {
            CCRect ret = boundingBoxInPixels();

            return(ccMacros.CC_RECT_PIXELS_TO_POINTS(ret));
        }