Esempio n. 1
0
        /// <summary>
        /// Gets the view rect (width, height)
        /// </summary>
        /// <returns>ViewRect.</returns>
        protected virtual Rect GetViewRect()
        {
            if (RenderHandler == null)
            {
                return(new Rect(0, 0, 640, 480));
            }

            return(RenderHandler.GetViewRect());
        }
Esempio n. 2
0
 /// <summary>
 /// Gets the view rect (width, height)
 /// </summary>
 /// <returns>ViewRect.</returns>
 protected virtual ViewRect?GetViewRect()
 {
     return(RenderHandler?.GetViewRect());
 }