public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1542788809: { this._parent = ((global::alphatab.rendering.glyphs.BeatContainerGlyph)(@value)); return(@value); } case 1948581205: { this._beat = ((global::alphatab.model.Beat)(@value)); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public virtual void addBeatGlyph(global::alphatab.rendering.glyphs.BeatContainerGlyph g) { unchecked { this.getOrCreateVoiceContainer(g.beat.voice.index).addGlyph(g); } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1542788809: { this._parent = ((global::alphatab.rendering.glyphs.BeatContainerGlyph)(@value)); return(@value); } case 1707673: { this._type = ((global::alphatab.model.SlideType)(@value)); return(@value); } case 1570770229: { this._startNote = ((global::alphatab.model.Note)(@value)); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public WhammyBarGlyph(global::alphatab.model.Beat beat, global::alphatab.rendering.glyphs.BeatContainerGlyph parent) : base(global::haxe.lang.EmptyObject.EMPTY) { unchecked { global::alphatab.rendering.glyphs.WhammyBarGlyph.__hx_ctor_alphatab_rendering_glyphs_WhammyBarGlyph(this, beat, parent); } }
public static void __hx_ctor_alphatab_rendering_glyphs_BeatContainerGlyph(global::alphatab.rendering.glyphs.BeatContainerGlyph __temp_me130, global::alphatab.model.Beat beat) { unchecked { global::alphatab.rendering.Glyph.__hx_ctor_alphatab_rendering_Glyph(__temp_me130, new global::haxe.lang.Null <int>(0, true), new global::haxe.lang.Null <int>(0, true)); __temp_me130.beat = beat; __temp_me130.ties = new global::haxe.root.Array <object>(); } }
public virtual void registerMaxSizes(global::alphatab.rendering.staves.BarSizeInfo sizes) { unchecked { int _g = 0; global::haxe.root.Array <object> _g1 = this.beatGlyphs; while ((_g < _g1.length)) { global::alphatab.rendering.glyphs.BeatContainerGlyph b = ((global::alphatab.rendering.glyphs.BeatContainerGlyph)(_g1[_g])); ++_g; b.registerMaxSizes(sizes); } } }
public override void paint(int cx, int cy, global::alphatab.platform.ICanvas canvas) { unchecked { int _g = 0; global::haxe.root.Array <object> _g1 = this.beatGlyphs; while ((_g < _g1.length)) { global::alphatab.rendering.glyphs.BeatContainerGlyph g = ((global::alphatab.rendering.glyphs.BeatContainerGlyph)(_g1[_g])); ++_g; g.paint((cx + this.x), (cy + this.y), canvas); } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1064531265: { this.container = ((global::alphatab.rendering.glyphs.BeatContainerGlyph)(@value)); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public override void applyGlyphSpacing(int spacing) { unchecked { double glyphSpacing = (((double)(spacing)) / this.beatGlyphs.length); double gx = 0.0; { int _g1 = 0; int _g = this.beatGlyphs.length; while ((_g1 < _g)) { int i = _g1++; global::alphatab.rendering.glyphs.BeatContainerGlyph g = ((global::alphatab.rendering.glyphs.BeatContainerGlyph)(this.beatGlyphs[i])); g.x = ((int)(gx)); gx += (g.width + glyphSpacing); g.applyGlyphSpacing(((int)(glyphSpacing))); } } this.width = ((int)(gx)); } }
public override void paint(int cx, int cy, global::alphatab.platform.ICanvas canvas) { unchecked { if (((this._endNote == default(global::alphatab.model.Note)) || (this._startNote.beat.index != this._endNote.beat.index))) { return; } global::alphatab.rendering.ScoreBarRenderer r = ((global::alphatab.rendering.ScoreBarRenderer)(this.renderer)); global::alphatab.rendering.glyphs.BeatContainerGlyph parent = ((global::alphatab.rendering.glyphs.BeatContainerGlyph)(this._parent)); int startX = (cx + r.getNoteX(this._startNote, default(global::haxe.lang.Null <bool>))); int endX = default(int); if ((this._endNote == default(global::alphatab.model.Note))) { endX = (((cx + parent.x) + parent.postNotes.x) + parent.postNotes.width); } else { endX = (cx + r.getNoteX(this._endNote, new global::haxe.lang.Null <bool>(false, true))); } double startY = ((cy + r.getNoteY(this._startNote)) + 4.5); double endY = default(double); if ((this._endNote == default(global::alphatab.model.Note))) { endY = startY; } else { endY = ((cy + r.getNoteY(this._endNote)) + 4.5); } global::alphatab.rendering.glyphs.TieGlyph.paintTie(canvas, this.renderer.stave.staveGroup.layout.renderer.settings.scale, ((double)(startX)), startY, ((double)(endX)), endY, new global::haxe.lang.Null <bool>((r.getBeatDirection(this._startNote.beat) == global::alphatab.rendering.utils.BeamDirection.Down), true)); canvas.setColor(this.renderer.stave.staveGroup.layout.renderer.renderingResources.mainGlyphColor); canvas.fill(); } }
public virtual void createVoiceGlyphs(global::alphatab.model.Voice v) { unchecked { int _g = 0; global::haxe.root.Array <object> _g1 = v.beats; while ((_g < _g1.length)) { global::alphatab.model.Beat b = ((global::alphatab.model.Beat)(_g1[_g])); ++_g; global::alphatab.rendering.glyphs.BeatContainerGlyph container = new global::alphatab.rendering.glyphs.BeatContainerGlyph(((global::alphatab.model.Beat)(b))); container.preNotes = new global::alphatab.rendering.glyphs.BeatGlyphBase(); container.onNotes = new global::alphatab.rendering.glyphs.BeatGlyphBase(); container.postNotes = new global::alphatab.rendering.glyphs.BeatGlyphBase(); this.addBeatGlyph(container); if (this._info.shouldCreateGlyph(this, b)) { this.createOrResizeGlyph(this._info.getSizingMode(), b); } this._lastBeat = b; } } }
public static void __hx_ctor_alphatab_rendering_glyphs_TabSlideLineGlyph(global::alphatab.rendering.glyphs.TabSlideLineGlyph __temp_me221, global::alphatab.model.SlideType type, global::alphatab.model.Note startNote, global::alphatab.rendering.glyphs.BeatContainerGlyph parent) { unchecked { global::alphatab.rendering.Glyph.__hx_ctor_alphatab_rendering_Glyph(__temp_me221, new global::haxe.lang.Null <int>(0, true), new global::haxe.lang.Null <int>(0, true)); __temp_me221._type = type; __temp_me221._startNote = startNote; __temp_me221._parent = parent; } }
public static void __hx_ctor_alphatab_rendering_glyphs_WhammyBarGlyph(global::alphatab.rendering.glyphs.WhammyBarGlyph __temp_me230, global::alphatab.model.Beat beat, global::alphatab.rendering.glyphs.BeatContainerGlyph parent) { unchecked { global::alphatab.rendering.Glyph.__hx_ctor_alphatab_rendering_Glyph(__temp_me230, default(global::haxe.lang.Null <int>), default(global::haxe.lang.Null <int>)); __temp_me230._beat = beat; __temp_me230._parent = parent; } }
public TabSlideLineGlyph(global::alphatab.model.SlideType type, global::alphatab.model.Note startNote, global::alphatab.rendering.glyphs.BeatContainerGlyph parent) : base(global::haxe.lang.EmptyObject.EMPTY) { unchecked { global::alphatab.rendering.glyphs.TabSlideLineGlyph.__hx_ctor_alphatab_rendering_glyphs_TabSlideLineGlyph(this, type, startNote, parent); } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1542788809: { this._parent = ((global::alphatab.rendering.glyphs.BeatContainerGlyph) (@value) ); return @value; } case 1948581205: { this._beat = ((global::alphatab.model.Beat) (@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 1542788809: { this._parent = ((global::alphatab.rendering.glyphs.BeatContainerGlyph) (@value) ); return @value; } case 1707673: { this._type = ((global::alphatab.model.SlideType) (@value) ); return @value; } case 1570770229: { this._startNote = ((global::alphatab.model.Note) (@value) ); return @value; } default: { return base.__hx_setField(field, hash, @value, handleProperties); } } } }
public virtual void alignGlyph(global::alphatab.rendering.EffectBarGlyphSizing sizing, int beatIndex, int voiceIndex, global::alphatab.rendering.Glyph prevGlyph) { unchecked { global::alphatab.rendering.Glyph g = ((global::alphatab.rendering.Glyph)(((global::haxe.ds.IntMap <object>)(global::haxe.ds.IntMap <object> .__hx_cast <object>(((global::haxe.ds.IntMap)(this._effectGlyphs[voiceIndex]))))).@get(beatIndex).@value)); global::alphatab.rendering.Glyph pos = default(global::alphatab.rendering.Glyph); global::alphatab.rendering.glyphs.BeatContainerGlyph container = ((global::alphatab.rendering.glyphs.BeatContainerGlyph)(this.getOrCreateVoiceContainer(voiceIndex).beatGlyphs[beatIndex])); switch (global::haxe.root.Type.enumIndex(sizing)) { case 0: { pos = container.preNotes; g.x = (pos.x + container.x); g.width = pos.width; break; } case 1: { pos = container.preNotes; g.x = (pos.x + container.x); pos = container.onNotes; g.width = (((pos.x + container.x) + pos.width) - g.x); break; } case 2: { pos = container.preNotes; g.x = (pos.x + container.x); pos = container.postNotes; g.width = (((pos.x + container.x) + pos.width) - g.x); break; } case 3: { pos = container.onNotes; g.x = (pos.x + container.x); g.width = pos.width; break; } case 4: { pos = container.onNotes; g.x = (pos.x + container.x); pos = container.postNotes; g.width = (((pos.x + container.x) + pos.width) - g.x); break; } case 5: { pos = container.postNotes; g.x = (pos.x + container.x); g.width = pos.width; break; } case 6: { if ((g != prevGlyph)) { this.alignGlyph(global::alphatab.rendering.EffectBarGlyphSizing.SinglePreBeatOnly, beatIndex, voiceIndex, prevGlyph); } else { pos = container.preNotes; global::alphatab.rendering.EffectBarRenderer posR = default(global::alphatab.rendering.EffectBarRenderer); posR = ((global::alphatab.rendering.EffectBarRenderer)(pos.renderer)); global::alphatab.rendering.EffectBarRenderer gR = default(global::alphatab.rendering.EffectBarRenderer); gR = ((global::alphatab.rendering.EffectBarRenderer)(g.renderer)); g.width = (((((posR.x + posR.getBeatGlyphsStart()) + container.x) + pos.x) + pos.width) - (((gR.x + gR.getBeatGlyphsStart()) + g.x))); if ((g is global::alphatab.rendering.glyphs.IMultiBeatEffectGlyph)) { (((global::alphatab.rendering.glyphs.IMultiBeatEffectGlyph)(((object)(g))))).expandedTo(container.beat); } } break; } case 7: { if ((g != prevGlyph)) { this.alignGlyph(global::alphatab.rendering.EffectBarGlyphSizing.SinglePreBeatToOnBeat, beatIndex, voiceIndex, prevGlyph); } else { pos = container.onNotes; global::alphatab.rendering.EffectBarRenderer posR1 = default(global::alphatab.rendering.EffectBarRenderer); posR1 = ((global::alphatab.rendering.EffectBarRenderer)(pos.renderer)); global::alphatab.rendering.EffectBarRenderer gR1 = default(global::alphatab.rendering.EffectBarRenderer); gR1 = ((global::alphatab.rendering.EffectBarRenderer)(g.renderer)); g.width = (((((posR1.x + posR1.getBeatGlyphsStart()) + container.x) + pos.x) + pos.width) - (((gR1.x + gR1.getBeatGlyphsStart()) + g.x))); if ((g is global::alphatab.rendering.glyphs.IMultiBeatEffectGlyph)) { (((global::alphatab.rendering.glyphs.IMultiBeatEffectGlyph)(((object)(g))))).expandedTo(container.beat); } } break; } case 8: { if ((g != prevGlyph)) { this.alignGlyph(global::alphatab.rendering.EffectBarGlyphSizing.SinglePreBeatToPostBeat, beatIndex, voiceIndex, prevGlyph); } else { pos = container.postNotes; global::alphatab.rendering.EffectBarRenderer posR2 = default(global::alphatab.rendering.EffectBarRenderer); posR2 = ((global::alphatab.rendering.EffectBarRenderer)(pos.renderer)); global::alphatab.rendering.EffectBarRenderer gR2 = default(global::alphatab.rendering.EffectBarRenderer); gR2 = ((global::alphatab.rendering.EffectBarRenderer)(g.renderer)); g.width = (((((posR2.x + posR2.getBeatGlyphsStart()) + container.x) + pos.x) + pos.width) - (((gR2.x + gR2.getBeatGlyphsStart()) + g.x))); if ((g is global::alphatab.rendering.glyphs.IMultiBeatEffectGlyph)) { (((global::alphatab.rendering.glyphs.IMultiBeatEffectGlyph)(((object)(g))))).expandedTo(container.beat); } } break; } case 9: { if ((g != prevGlyph)) { this.alignGlyph(global::alphatab.rendering.EffectBarGlyphSizing.SingleOnBeatOnly, beatIndex, voiceIndex, prevGlyph); } else { pos = container.onNotes; global::alphatab.rendering.EffectBarRenderer posR3 = default(global::alphatab.rendering.EffectBarRenderer); posR3 = ((global::alphatab.rendering.EffectBarRenderer)(pos.renderer)); global::alphatab.rendering.EffectBarRenderer gR3 = default(global::alphatab.rendering.EffectBarRenderer); gR3 = ((global::alphatab.rendering.EffectBarRenderer)(g.renderer)); g.width = (((((posR3.x + posR3.getBeatGlyphsStart()) + container.x) + pos.x) + pos.width) - (((gR3.x + gR3.getBeatGlyphsStart()) + g.x))); if ((g is global::alphatab.rendering.glyphs.IMultiBeatEffectGlyph)) { (((global::alphatab.rendering.glyphs.IMultiBeatEffectGlyph)(((object)(g))))).expandedTo(container.beat); } } break; } case 10: { if ((g != prevGlyph)) { this.alignGlyph(global::alphatab.rendering.EffectBarGlyphSizing.SingleOnBeatToPostBeat, beatIndex, voiceIndex, prevGlyph); } else { pos = container.postNotes; global::alphatab.rendering.EffectBarRenderer posR4 = default(global::alphatab.rendering.EffectBarRenderer); posR4 = ((global::alphatab.rendering.EffectBarRenderer)(pos.renderer)); global::alphatab.rendering.EffectBarRenderer gR4 = default(global::alphatab.rendering.EffectBarRenderer); gR4 = ((global::alphatab.rendering.EffectBarRenderer)(g.renderer)); g.width = (((((posR4.x + posR4.getBeatGlyphsStart()) + container.x) + pos.x) + pos.width) - (((gR4.x + gR4.getBeatGlyphsStart()) + g.x))); if ((g is global::alphatab.rendering.glyphs.IMultiBeatEffectGlyph)) { (((global::alphatab.rendering.glyphs.IMultiBeatEffectGlyph)(((object)(g))))).expandedTo(container.beat); } } break; } case 11: { if ((g != prevGlyph)) { this.alignGlyph(global::alphatab.rendering.EffectBarGlyphSizing.GroupedPostBeatOnly, beatIndex, voiceIndex, prevGlyph); } else { pos = container.postNotes; global::alphatab.rendering.EffectBarRenderer posR5 = default(global::alphatab.rendering.EffectBarRenderer); posR5 = ((global::alphatab.rendering.EffectBarRenderer)(pos.renderer)); global::alphatab.rendering.EffectBarRenderer gR5 = default(global::alphatab.rendering.EffectBarRenderer); gR5 = ((global::alphatab.rendering.EffectBarRenderer)(g.renderer)); g.width = (((((posR5.x + posR5.getBeatGlyphsStart()) + container.x) + pos.x) + pos.width) - (((gR5.x + gR5.getBeatGlyphsStart()) + g.x))); if ((g is global::alphatab.rendering.glyphs.IMultiBeatEffectGlyph)) { (((global::alphatab.rendering.glyphs.IMultiBeatEffectGlyph)(((object)(g))))).expandedTo(container.beat); } } break; } } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1064531265: { this.container = ((global::alphatab.rendering.glyphs.BeatContainerGlyph) (@value) ); return @value; } default: { return base.__hx_setField(field, hash, @value, handleProperties); } } } }
public virtual void createVoiceGlyphs(global::alphatab.model.Voice v) { unchecked { int _g = 0; global::haxe.root.Array<object> _g1 = v.beats; while (( _g < _g1.length )) { global::alphatab.model.Beat b = ((global::alphatab.model.Beat) (_g1[_g]) ); ++ _g; global::alphatab.rendering.glyphs.BeatContainerGlyph container = new global::alphatab.rendering.glyphs.BeatContainerGlyph(((global::alphatab.model.Beat) (b) )); container.preNotes = new global::alphatab.rendering.glyphs.BeatGlyphBase(); container.onNotes = new global::alphatab.rendering.glyphs.BeatGlyphBase(); container.postNotes = new global::alphatab.rendering.glyphs.BeatGlyphBase(); this.addBeatGlyph(container); if (this._info.shouldCreateGlyph(this, b)) { this.createOrResizeGlyph(this._info.getSizingMode(), b); } this._lastBeat = b; } } }