public static void __hx_ctor_alphatab_rendering_glyphs_TabNoteChordGlyph(global::alphatab.rendering.glyphs.TabNoteChordGlyph __temp_me220, global::haxe.lang.Null <int> x, global::haxe.lang.Null <int> y, bool isGrace) { unchecked { int __temp_y219 = ((global::haxe.lang.Runtime.eq((y).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (y.@value)); int __temp_x218 = ((global::haxe.lang.Runtime.eq((x).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (x.@value)); global::alphatab.rendering.Glyph.__hx_ctor_alphatab_rendering_Glyph(__temp_me220, new global::haxe.lang.Null <int>(__temp_x218, true), new global::haxe.lang.Null <int>(__temp_y219, true)); __temp_me220._notes = new global::haxe.root.Array <object>(); __temp_me220.beatEffects = new global::haxe.ds.StringMap <object>(); __temp_me220._noteLookup = new global::haxe.ds.IntMap <object>(); } }
public override void doLayout() { unchecked { global::haxe.root.Array<object> _g = new global::haxe.root.Array<object>(new object[]{this}); if ( ! (this.container.beat.isRest()) ) { this.noteNumbers = new global::alphatab.rendering.glyphs.TabNoteChordGlyph(new global::haxe.lang.Null<int>(0, true), new global::haxe.lang.Null<int>(0, true), ((bool) (( this.container.beat.graceType != global::alphatab.model.GraceType.None )) )); this.noteNumbers.beat = this.container.beat; this.noteLoop(new global::alphatab.rendering.glyphs.TabBeatGlyph_doLayout_47__Fun(((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (_g) ))) ))); this.addGlyph(this.noteNumbers); if (( ( this.container.beat.whammyBarPoints.length > 0 ) && ! (this.noteNumbers.beatEffects.exists("Whammy")) )) { this.noteNumbers.beatEffects.@set("Whammy", new global::alphatab.rendering.glyphs.WhammyBarGlyph(((global::alphatab.model.Beat) (this.container.beat) ), ((global::alphatab.rendering.glyphs.BeatContainerGlyph) (this.container) ))); } if (( ( ! (global::haxe.lang.Runtime.eq((this.container.beat.tremoloSpeed).toDynamic(), (default(global::haxe.lang.Null<global::alphatab.model.Duration>)).toDynamic())) ) && ! (this.noteNumbers.beatEffects.exists("Tremolo")) )) { this.noteNumbers.beatEffects.@set("Tremolo", new global::alphatab.rendering.glyphs.TremoloPickingGlyph(new global::haxe.lang.Null<int>(0, true), new global::haxe.lang.Null<int>(0, true), this.container.beat.tremoloSpeed.@value)); } } int w = 0; { int _g1 = 0; global::haxe.root.Array<object> _g11 = this._glyphs; while (( _g1 < _g11.length )) { global::alphatab.rendering.Glyph g = ((global::alphatab.rendering.Glyph) (_g11[_g1]) ); ++ _g1; g.x = w; g.renderer = this.renderer; g.doLayout(); w += g.width; } } this.width = w; } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1563638712: { this.noteNumbers = ((global::alphatab.rendering.glyphs.TabNoteChordGlyph)(@value)); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public override void doLayout() { unchecked { global::haxe.root.Array <object> _g = new global::haxe.root.Array <object>(new object[] { this }); if (!(this.container.beat.isRest())) { this.noteNumbers = new global::alphatab.rendering.glyphs.TabNoteChordGlyph(new global::haxe.lang.Null <int>(0, true), new global::haxe.lang.Null <int>(0, true), ((bool)((this.container.beat.graceType != global::alphatab.model.GraceType.None)))); this.noteNumbers.beat = this.container.beat; this.noteLoop(new global::alphatab.rendering.glyphs.TabBeatGlyph_doLayout_47__Fun(((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(_g))))))); this.addGlyph(this.noteNumbers); if (((this.container.beat.whammyBarPoints.length > 0) && !(this.noteNumbers.beatEffects.exists("Whammy")))) { this.noteNumbers.beatEffects.@set("Whammy", new global::alphatab.rendering.glyphs.WhammyBarGlyph(((global::alphatab.model.Beat)(this.container.beat)), ((global::alphatab.rendering.glyphs.BeatContainerGlyph)(this.container)))); } if (((!(global::haxe.lang.Runtime.eq((this.container.beat.tremoloSpeed).toDynamic(), (default(global::haxe.lang.Null <global::alphatab.model.Duration>)).toDynamic()))) && !(this.noteNumbers.beatEffects.exists("Tremolo")))) { this.noteNumbers.beatEffects.@set("Tremolo", new global::alphatab.rendering.glyphs.TremoloPickingGlyph(new global::haxe.lang.Null <int>(0, true), new global::haxe.lang.Null <int>(0, true), this.container.beat.tremoloSpeed.@value)); } } int w = 0; { int _g1 = 0; global::haxe.root.Array <object> _g11 = this._glyphs; while ((_g1 < _g11.length)) { global::alphatab.rendering.Glyph g = ((global::alphatab.rendering.Glyph)(_g11[_g1])); ++_g1; g.x = w; g.renderer = this.renderer; g.doLayout(); w += g.width; } } this.width = w; } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1563638712: { this.noteNumbers = ((global::alphatab.rendering.glyphs.TabNoteChordGlyph) (@value) ); return @value; } default: { return base.__hx_setField(field, hash, @value, handleProperties); } } } }