public static void __hx_ctor_alphatab_rendering_glyphs_TabBeatContainerGlyph(global::alphatab.rendering.glyphs.TabBeatContainerGlyph __temp_me211, global::alphatab.model.Beat beat) { unchecked { global::alphatab.rendering.glyphs.BeatContainerGlyph.__hx_ctor_alphatab_rendering_glyphs_BeatContainerGlyph(__temp_me211, beat); } }
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.TabBarRenderer r = ((global::alphatab.rendering.TabBarRenderer)(this.renderer)); global::alphatab.rendering.glyphs.TabBeatContainerGlyph parent = ((global::alphatab.rendering.glyphs.TabBeatContainerGlyph)(this._parent)); global::alphatab.rendering.RenderingResources res = r.stave.staveGroup.layout.renderer.renderingResources; 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))); } bool down = (this._startNote.@string > 3); double offset = (res.tablatureFont.getSize() / 2); if (down) { offset *= ((double)(-1)); } double startY = ((cy + r.getNoteY(this._startNote)) + offset); double endY = default(double); if ((this._endNote == default(global::alphatab.model.Note))) { endY = startY; } else { endY = ((cy + r.getNoteY(this._endNote)) + offset); } 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>((this._startNote.@string > 3), 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.TabBeatContainerGlyph container = new global::alphatab.rendering.glyphs.TabBeatContainerGlyph(((global::alphatab.model.Beat)(b))); container.preNotes = new global::alphatab.rendering.glyphs.TabBeatPreNotesGlyph(); container.onNotes = new global::alphatab.rendering.glyphs.TabBeatGlyph(); container.postNotes = new global::alphatab.rendering.glyphs.TabBeatPostNotesGlyph(); this.addBeatGlyph(container); } } }
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.TabBeatContainerGlyph container = new global::alphatab.rendering.glyphs.TabBeatContainerGlyph(((global::alphatab.model.Beat) (b) )); container.preNotes = new global::alphatab.rendering.glyphs.TabBeatPreNotesGlyph(); container.onNotes = new global::alphatab.rendering.glyphs.TabBeatGlyph(); container.postNotes = new global::alphatab.rendering.glyphs.TabBeatPostNotesGlyph(); this.addBeatGlyph(container); } } }