Esempio n. 1
0
 public virtual void setColor(global::alphatab.platform.model.Color color)
 {
     unchecked
     {
         this._brush = new global::System.Windows.Media.SolidColorBrush(((global::System.Windows.Media.Color)(global::System.Windows.Media.Color.FromArgb(((byte)(color.getA())), ((byte)(color.getR())), ((byte)(color.getG())), ((byte)(color.getB()))))));
     }
 }
Esempio n. 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 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));
                }
                }
            }
        }
Esempio n. 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 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);
					}
					
				}
				
			}
		}
Esempio n. 4
0
		public virtual   void setColor(global::alphatab.platform.model.Color color)
		{
			unchecked 
			{
				this._brush = new global::System.Windows.Media.SolidColorBrush(((global::System.Windows.Media.Color) (global::System.Windows.Media.Color.FromArgb(((byte) (color.getA()) ), ((byte) (color.getR()) ), ((byte) (color.getG()) ), ((byte) (color.getB()) ))) ));
			}
		}