Exemple #1
0
        public virtual void setTextAlign(global::alphatab.platform.model.TextAlign textAlign)
        {
            unchecked
            {
                this._textAlign = textAlign;
                switch (global::haxe.root.Type.enumIndex(textAlign))
                {
                case 0:
                {
                    this._stringFormat.Alignment = global::System.Drawing.StringAlignment.Near;
                    break;
                }


                case 1:
                {
                    this._stringFormat.Alignment = global::System.Drawing.StringAlignment.Center;
                    break;
                }


                case 2:
                {
                    this._stringFormat.Alignment = global::System.Drawing.StringAlignment.Far;
                    break;
                }
                }
            }
        }
Exemple #2
0
 public virtual void setTextAlign(global::alphatab.platform.model.TextAlign textAlign)
 {
     unchecked
     {
         this._textAlign = textAlign;
     }
 }
Exemple #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));
                }
                }
            }
        }
		public virtual   void setTextAlign(global::alphatab.platform.model.TextAlign textAlign)
		{
			unchecked 
			{
				this._textAlign = textAlign;
			}
		}
		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 371286681:
					{
						this._textAlign = ((global::alphatab.platform.model.TextAlign) (@value) );
						return @value;
					}
					
					
					case 1993439662:
					{
						this._font = ((global::alphatab.platform.model.Font) (@value) );
						return @value;
					}
					
					
					case 1828730163:
					{
						this._lineWidth = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 1178843300:
					{
						this._color = ((global::alphatab.platform.model.Color) (@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 1083160452:
					{
						this._currentPathIsEmpty = ((bool) (@value) );
						return @value;
					}
					
					
					case 1760390271:
					{
						this._currentPath = global::haxe.lang.Runtime.toString(@value);
						return @value;
					}
					
					
					case 1057738399:
					{
						this._buffer = global::haxe.lang.Runtime.toString(@value);
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
Exemple #6
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 371286681:
                {
                    this._textAlign = ((global::alphatab.platform.model.TextAlign)(@value));
                    return(@value);
                }


                case 1993439662:
                {
                    this._font = ((global::alphatab.platform.model.Font)(@value));
                    return(@value);
                }


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


                case 887070651:
                {
                    this._brush = ((global::System.Windows.Media.SolidColorBrush)(@value));
                    return(@value);
                }


                case 649684599:
                {
                    this._canvas = ((global::System.Windows.Controls.Canvas)(@value));
                    return(@value);
                }


                case 1083160452:
                {
                    this._currentPathIsEmpty = ((bool)(@value));
                    return(@value);
                }


                case 1760390271:
                {
                    this._currentPath = ((global::haxe.root.StringBuf)(@value));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
		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);
					}
					
				}
				
			}
		}
		public virtual   void setTextAlign(global::alphatab.platform.model.TextAlign textAlign)
		{
			unchecked 
			{
				this._textAlign = textAlign;
				switch (global::haxe.root.Type.enumIndex(textAlign))
				{
					case 0:
					{
						this._stringFormat.Alignment = global::System.Drawing.StringAlignment.Near;
						break;
					}
					
					
					case 1:
					{
						this._stringFormat.Alignment = global::System.Drawing.StringAlignment.Center;
						break;
					}
					
					
					case 2:
					{
						this._stringFormat.Alignment = global::System.Drawing.StringAlignment.Far;
						break;
					}
					
					
				}
				
			}
		}
		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 371286681:
					{
						this._textAlign = ((global::alphatab.platform.model.TextAlign) (@value) );
						return @value;
					}
					
					
					case 1993439662:
					{
						this._font = ((global::alphatab.platform.model.Font) (@value) );
						return @value;
					}
					
					
					case 1828730163:
					{
						this._lineWidth = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 887070651:
					{
						this._brush = ((global::System.Windows.Media.SolidColorBrush) (@value) );
						return @value;
					}
					
					
					case 649684599:
					{
						this._canvas = ((global::System.Windows.Controls.Canvas) (@value) );
						return @value;
					}
					
					
					case 1083160452:
					{
						this._currentPathIsEmpty = ((bool) (@value) );
						return @value;
					}
					
					
					case 1760390271:
					{
						this._currentPath = ((global::haxe.root.StringBuf) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}