public virtual void setTextBaseline(global::alphatab.model.TextBaseline textBaseline) { unchecked { this._textBaseline = textBaseline; } }
public override void paint(int cx, int cy, global::alphatab.platform.ICanvas canvas) { unchecked { global::alphatab.rendering.RenderingResources res = this.renderer.stave.staveGroup.layout.renderer.renderingResources; global::alphatab.model.TextBaseline old = canvas.getTextBaseline(); canvas.setTextBaseline(global::alphatab.model.TextBaseline.Middle); canvas.setColor(res.mainGlyphColor); if (this._isGrace) { canvas.setFont(res.graceFont); } else { canvas.setFont(res.tablatureFont); } { int _g = 0; global::haxe.root.Array <object> _g1 = this._notes; while ((_g < _g1.length)) { global::alphatab.rendering.glyphs.NoteNumberGlyph g = ((global::alphatab.rendering.glyphs.NoteNumberGlyph)(_g1[_g])); ++_g; g.renderer = this.renderer; g.paint((cx + this.x), (cy + this.y), canvas); } } canvas.setTextBaseline(old); { object __temp_iterator450 = this.beatEffects.iterator(); while (((bool)(global::haxe.lang.Runtime.callField(__temp_iterator450, "hasNext", 407283053, default(global::haxe.root.Array))))) { global::alphatab.rendering.Glyph g1 = ((global::alphatab.rendering.Glyph)(global::haxe.lang.Runtime.callField(__temp_iterator450, "next", 1224901875, default(global::haxe.root.Array)))); g1.paint((cx + this.x), (cy + this.y), canvas); } } } }
public virtual void setTextBaseline(global::alphatab.model.TextBaseline textBaseline) { unchecked { this._textBaseline = textBaseline; switch (global::haxe.root.Type.enumIndex(textBaseline)) { case 1: { this._stringFormat.LineAlignment = global::System.Drawing.StringAlignment.Near; break; } case 2: { this._stringFormat.LineAlignment = global::System.Drawing.StringAlignment.Center; break; } case 3: { this._stringFormat.LineAlignment = global::System.Drawing.StringAlignment.Far; break; } default: { this._stringFormat.LineAlignment = global::System.Drawing.StringAlignment.Near; break; } } } }
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 2002104775: { this._stringFormat = ((global::System.Drawing.StringFormat)(@value)); return(@value); } case 371286681: { this._textAlign = ((global::alphatab.platform.model.TextAlign)(@value)); return(@value); } case 1993439662: { this._font = ((global::System.Drawing.Font)(@value)); return(@value); } case 375895439: { this._fontSize = ((double)(global::haxe.lang.Runtime.toDouble(@value))); return(@value); } case 1828730163: { this._lineWidth = ((double)(global::haxe.lang.Runtime.toDouble(@value))); return(@value); } case 1178843300: { this._color = ((global::System.Drawing.Color)(@value)); return(@value); } case 1059101146: { this._pen = ((global::System.Drawing.Pen)(@value)); return(@value); } case 887070651: { this._brush = ((global::System.Drawing.SolidBrush)(@value)); return(@value); } case 1658522975: { this._currentY = ((float)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } case 1658522974: { this._currentX = ((float)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } case 1760390271: { this._currentPath = ((global::System.Drawing.Drawing2D.GraphicsPath)(@value)); return(@value); } case 1509814314: { this._graphics = ((global::System.Drawing.Graphics)(@value)); return(@value); } case 1891834246: { this._height = ((int)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } case 1179254087: { this._width = ((int)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } case 961570460: { this._image = ((global::System.Drawing.Bitmap)(@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 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 1178843300: { this._color = ((global::alphatab.platform.model.Color) (@value) ); return @value; } case 1891834246: { this._height = ((int) (global::haxe.lang.Runtime.toInt(@value)) ); return @value; } case 1179254087: { this._width = ((int) (global::haxe.lang.Runtime.toInt(@value)) ); return @value; } case 1083160452: { this._currentPathIsEmpty = ((bool) (@value) ); return @value; } case 1760390271: { this._currentPath = global::haxe.lang.Runtime.toString(@value); return @value; } case 1057738399: { this._buffer = global::haxe.lang.Runtime.toString(@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 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)); } } } }
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 2002104775: { this._stringFormat = ((global::System.Drawing.StringFormat) (@value) ); return @value; } case 371286681: { this._textAlign = ((global::alphatab.platform.model.TextAlign) (@value) ); return @value; } case 1993439662: { this._font = ((global::System.Drawing.Font) (@value) ); return @value; } case 375895439: { this._fontSize = ((double) (global::haxe.lang.Runtime.toDouble(@value)) ); return @value; } case 1828730163: { this._lineWidth = ((double) (global::haxe.lang.Runtime.toDouble(@value)) ); return @value; } case 1178843300: { this._color = ((global::System.Drawing.Color) (@value) ); return @value; } case 1059101146: { this._pen = ((global::System.Drawing.Pen) (@value) ); return @value; } case 887070651: { this._brush = ((global::System.Drawing.SolidBrush) (@value) ); return @value; } case 1658522975: { this._currentY = ((float) (global::haxe.lang.Runtime.toInt(@value)) ); return @value; } case 1658522974: { this._currentX = ((float) (global::haxe.lang.Runtime.toInt(@value)) ); return @value; } case 1760390271: { this._currentPath = ((global::System.Drawing.Drawing2D.GraphicsPath) (@value) ); return @value; } case 1509814314: { this._graphics = ((global::System.Drawing.Graphics) (@value) ); return @value; } case 1891834246: { this._height = ((int) (global::haxe.lang.Runtime.toInt(@value)) ); return @value; } case 1179254087: { this._width = ((int) (global::haxe.lang.Runtime.toInt(@value)) ); return @value; } case 961570460: { this._image = ((global::System.Drawing.Bitmap) (@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 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); } } } }