Example #1
0
        public virtual void recreatePen()
        {
            unchecked
            {
                global::System.Drawing.Pen newPen = new global::System.Drawing.Pen(((global::System.Drawing.Color)(this._color)), ((float)(this._lineWidth)));
                if ((this._pen != default(global::System.Drawing.Pen)))
                {
                    this._pen.Dispose();
                }

                this._pen = newPen;
            }
        }
Example #2
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 672263473:
                {
                    this._textBaseline = ((global::alphatab.model.TextBaseline)(@value));
                    return(@value);
                }


                case 2002104775:
                {
                    this._stringFormat = ((global::System.Drawing.StringFormat)(@value));
                    return(@value);
                }


                case 371286681:
                {
                    this._textAlign = ((global::alphatab.platform.model.TextAlign)(@value));
                    return(@value);
                }


                case 1993439662:
                {
                    this._font = ((global::System.Drawing.Font)(@value));
                    return(@value);
                }


                case 375895439:
                {
                    this._fontSize = ((double)(global::haxe.lang.Runtime.toDouble(@value)));
                    return(@value);
                }


                case 1828730163:
                {
                    this._lineWidth = ((double)(global::haxe.lang.Runtime.toDouble(@value)));
                    return(@value);
                }


                case 1178843300:
                {
                    this._color = ((global::System.Drawing.Color)(@value));
                    return(@value);
                }


                case 1059101146:
                {
                    this._pen = ((global::System.Drawing.Pen)(@value));
                    return(@value);
                }


                case 887070651:
                {
                    this._brush = ((global::System.Drawing.SolidBrush)(@value));
                    return(@value);
                }


                case 1658522975:
                {
                    this._currentY = ((float)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1658522974:
                {
                    this._currentX = ((float)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1760390271:
                {
                    this._currentPath = ((global::System.Drawing.Drawing2D.GraphicsPath)(@value));
                    return(@value);
                }


                case 1509814314:
                {
                    this._graphics = ((global::System.Drawing.Graphics)(@value));
                    return(@value);
                }


                case 1891834246:
                {
                    this._height = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1179254087:
                {
                    this._width = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 961570460:
                {
                    this._image = ((global::System.Drawing.Bitmap)(@value));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Example #3
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 672263473:
					{
						this._textBaseline = ((global::alphatab.model.TextBaseline) (@value) );
						return @value;
					}
					
					
					case 2002104775:
					{
						this._stringFormat = ((global::System.Drawing.StringFormat) (@value) );
						return @value;
					}
					
					
					case 371286681:
					{
						this._textAlign = ((global::alphatab.platform.model.TextAlign) (@value) );
						return @value;
					}
					
					
					case 1993439662:
					{
						this._font = ((global::System.Drawing.Font) (@value) );
						return @value;
					}
					
					
					case 375895439:
					{
						this._fontSize = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 1828730163:
					{
						this._lineWidth = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 1178843300:
					{
						this._color = ((global::System.Drawing.Color) (@value) );
						return @value;
					}
					
					
					case 1059101146:
					{
						this._pen = ((global::System.Drawing.Pen) (@value) );
						return @value;
					}
					
					
					case 887070651:
					{
						this._brush = ((global::System.Drawing.SolidBrush) (@value) );
						return @value;
					}
					
					
					case 1658522975:
					{
						this._currentY = ((float) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1658522974:
					{
						this._currentX = ((float) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1760390271:
					{
						this._currentPath = ((global::System.Drawing.Drawing2D.GraphicsPath) (@value) );
						return @value;
					}
					
					
					case 1509814314:
					{
						this._graphics = ((global::System.Drawing.Graphics) (@value) );
						return @value;
					}
					
					
					case 1891834246:
					{
						this._height = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1179254087:
					{
						this._width = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 961570460:
					{
						this._image = ((global::System.Drawing.Bitmap) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
Example #4
0
		public virtual   void recreatePen()
		{
			unchecked 
			{
				global::System.Drawing.Pen newPen = new global::System.Drawing.Pen(((global::System.Drawing.Color) (this._color) ), ((float) (this._lineWidth) ));
				if (( this._pen != default(global::System.Drawing.Pen) )) 
				{
					this._pen.Dispose();
				}
				
				this._pen = newPen;
			}
		}