Example #1
0
 /// <see cref="IUIRenderContext.RenderString"/>
 protected abstract void RenderString_i(UIString str, RCIntVector position, RCIntVector textboxSize, UIStringAlignment alignment);
Example #2
0
        /// <see cref="IUIRenderContext.RenderString"/>
        public void RenderString(UIString str, RCIntVector position, RCIntVector textboxSize, UIStringAlignment alignment)
        {
            if (this.objectDisposed)
            {
                throw new ObjectDisposedException("UIRenderLoopBase");
            }
            if (!this.isRendering)
            {
                throw new UIException("Access denied on screen render context!");
            }
            if (str == null)
            {
                throw new ArgumentNullException("str");
            }
            if (position == RCIntVector.Undefined)
            {
                throw new ArgumentNullException("position");
            }
            if (textboxSize == RCIntVector.Undefined)
            {
                throw new ArgumentNullException("textboxSize");
            }
            if (textboxSize.X <= 0 || textboxSize.Y <= 0)
            {
                throw new ArgumentOutOfRangeException("textboxSize");
            }

            this.RenderString_i(str, position, textboxSize, alignment);
        }
Example #3
0
 /// <see cref="UIRenderLoopBase.RenderString_i"/>
 protected override void RenderString_i(UIString str, RCIntVector position, RCIntVector textboxSize, UIStringAlignment alignment)
 {
     throw new NotImplementedException();
 }
Example #4
0
        /// <see cref="IUIRenderContext.RenderSprite"/>
        public void RenderString(UIString str, RCIntVector position, RCIntVector textboxSize, UIStringAlignment alignment)
        {
            if (!this.enabled)
            {
                throw new InvalidOperationException("Render context is not enabled!");
            }
            if (str == null)
            {
                throw new ArgumentNullException("str");
            }
            if (position == RCIntVector.Undefined)
            {
                throw new ArgumentNullException("position");
            }
            if (textboxSize == RCIntVector.Undefined)
            {
                throw new ArgumentNullException("textboxSize");
            }
            if (textboxSize.X <= 0 || textboxSize.Y <= 0)
            {
                throw new ArgumentOutOfRangeException("textboxSize");
            }

            /// TODO: implement this method.
            throw new NotImplementedException();
        }
        /// <see cref="IUIRenderContext.RenderString"/>
        public void RenderString(UIString str, RCIntVector position, RCIntVector textboxSize, UIStringAlignment alignment)
        {
            if (this.isClosed)
            {
                throw new UIException("Render context unavailable!");
            }

            throw new NotImplementedException(); // TODO: implement this method
        }