Beispiel #1
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 1565120129:
                {
                    this.voices = ((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(@value)))));
                    return(@value);
                }


                case 371166859:
                {
                    this.track = ((global::alphatab.model.Track)(@value));
                    return(@value);
                }


                case 1103260490:
                {
                    this.clef = ((global::alphatab.model.Clef)(@value));
                    return(@value);
                }


                case 855239132:
                {
                    this.previousBar = ((global::alphatab.model.Bar)(@value));
                    return(@value);
                }


                case 624508576:
                {
                    this.nextBar = ((global::alphatab.model.Bar)(@value));
                    return(@value);
                }


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


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Beispiel #2
0
        public virtual global::alphatab.rendering.glyphs.LazySvg getClefSvg(global::alphatab.model.Clef clef)
        {
            unchecked
            {
                switch (global::haxe.root.Type.enumIndex(clef))
                {
                case 0:
                {
                    return(global::alphatab.rendering.glyphs.MusicFont.ClefNeutral);
                }


                case 1:
                {
                    return(global::alphatab.rendering.glyphs.MusicFont.ClefC);
                }


                case 2:
                {
                    return(global::alphatab.rendering.glyphs.MusicFont.ClefC);
                }


                case 3:
                {
                    return(global::alphatab.rendering.glyphs.MusicFont.ClefF);
                }


                case 4:
                {
                    return(global::alphatab.rendering.glyphs.MusicFont.ClefG);
                }
                }

                return(default(global::alphatab.rendering.glyphs.LazySvg));
            }
        }
Beispiel #3
0
        public static int getClefIndex(global::alphatab.model.Clef clef)
        {
            unchecked
            {
                switch (global::haxe.root.Type.enumIndex(clef))
                {
                case 0:
                {
                    return(0);
                }


                case 1:
                {
                    return(1);
                }


                case 2:
                {
                    return(2);
                }


                case 3:
                {
                    return(3);
                }


                case 4:
                {
                    return(4);
                }
                }

                return(default(int));
            }
        }
Beispiel #4
0
 public static void __hx_ctor_alphatab_rendering_glyphs_ClefGlyph(global::alphatab.rendering.glyphs.ClefGlyph __temp_me141, global::haxe.lang.Null <int> x, global::haxe.lang.Null <int> y, global::alphatab.model.Clef clef)
 {
     unchecked
     {
         int __temp_y140 = ((global::haxe.lang.Runtime.eq((y).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (y.@value));
         int __temp_x139 = ((global::haxe.lang.Runtime.eq((x).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (x.@value));
         global::alphatab.rendering.glyphs.SvgGlyph.__hx_ctor_alphatab_rendering_glyphs_SvgGlyph(__temp_me141, new global::haxe.lang.Null <int>(__temp_x139, true), new global::haxe.lang.Null <int>(__temp_y140, true), __temp_me141.getClefSvg(clef), ((double)(1)), ((double)(1)));
     }
 }
Beispiel #5
0
 public ClefGlyph(global::haxe.lang.Null <int> x, global::haxe.lang.Null <int> y, global::alphatab.model.Clef clef) : base(global::haxe.lang.EmptyObject.EMPTY)
 {
     unchecked
     {
         global::alphatab.rendering.glyphs.ClefGlyph.__hx_ctor_alphatab_rendering_glyphs_ClefGlyph(this, x, y, clef);
     }
 }
Beispiel #6
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 1565120129:
					{
						this.voices = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 371166859:
					{
						this.track = ((global::alphatab.model.Track) (@value) );
						return @value;
					}
					
					
					case 1103260490:
					{
						this.clef = ((global::alphatab.model.Clef) (@value) );
						return @value;
					}
					
					
					case 855239132:
					{
						this.previousBar = ((global::alphatab.model.Bar) (@value) );
						return @value;
					}
					
					
					case 624508576:
					{
						this.nextBar = ((global::alphatab.model.Bar) (@value) );
						return @value;
					}
					
					
					case 1041537810:
					{
						this.index = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}