public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1993439662: { this._font = ((global::alphatab.platform.model.Font) (@value) ); return @value; } case 714892: { this._text = global::haxe.lang.Runtime.toString(@value); return @value; } default: { return base.__hx_setField(field, hash, @value, handleProperties); } } } }
public virtual void setFont(global::alphatab.platform.model.Font font) { unchecked { this._font = font; } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1993439662: { this._font = ((global::alphatab.platform.model.Font)(@value)); return(@value); } case 714892: { this._text = global::haxe.lang.Runtime.toString(@value); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public virtual void drawCentered(string text, global::alphatab.platform.model.Font font, int y) { unchecked { this.renderer.canvas.setFont(font); this.renderer.canvas.fillText(text, (((double)(this.width)) / 2), ((double)(y))); } }
public static void __hx_ctor_alphatab_platform_model_Font(global::alphatab.platform.model.Font __temp_me22, string family, double size, global::haxe.lang.Null <int> style) { unchecked { int __temp_style21 = ((global::haxe.lang.Runtime.eq((style).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (style.@value)); __temp_me22._family = family; __temp_me22._size = size; __temp_me22._style = __temp_style21; } }
public virtual void setFont(global::alphatab.platform.model.Font font) { unchecked { global::System.Drawing.FontStyle fontStyle = global::System.Drawing.FontStyle.Regular; if ((((font.getStyle() & 1)) != 0)) { fontStyle |= System.Drawing.FontStyle.Bold; } if ((((font.getStyle() & 2)) != 0)) { fontStyle |= System.Drawing.FontStyle.Italic; } this._fontSize = font.getSize(); this._font = new global::System.Drawing.Font(global::haxe.lang.Runtime.toString(font.getFamily()), ((float)(font.getSize())), ((global::System.Drawing.FontStyle)(fontStyle)), ((global::System.Drawing.GraphicsUnit)(global::System.Drawing.GraphicsUnit.Pixel))); } }
public virtual void init(double scale) { unchecked { this.scale = scale; string sansFont = "Arial"; string serifFont = "Georgia"; this.effectFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(serifFont), ((double)((12 * scale))), new global::haxe.lang.Null <int>(2, true)); this.copyrightFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(sansFont), ((double)((12 * scale))), new global::haxe.lang.Null <int>(1, true)); this.titleFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(serifFont), ((double)((32 * scale))), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>)))); this.subTitleFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(serifFont), ((double)((20 * scale))), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>)))); this.wordsFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(serifFont), ((double)((15 * scale))), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>)))); this.tablatureFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(sansFont), ((double)((13 * scale))), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>)))); this.graceFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(sansFont), ((double)((11 * scale))), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>)))); this.staveLineColor = new global::alphatab.platform.model.Color(((int)(165)), ((int)(165)), ((int)(165)), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>)))); this.barSeperatorColor = new global::alphatab.platform.model.Color(((int)(34)), ((int)(34)), ((int)(17)), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>)))); this.barNumberFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(sansFont), ((double)((11 * scale))), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>)))); this.barNumberColor = new global::alphatab.platform.model.Color(((int)(200)), ((int)(0)), ((int)(0)), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>)))); this.markerFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(serifFont), ((double)((14 * scale))), new global::haxe.lang.Null <int>(1, true)); this.tabClefFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(sansFont), ((double)((18 * scale))), new global::haxe.lang.Null <int>(1, true)); this.mainGlyphColor = new global::alphatab.platform.model.Color(((int)(0)), ((int)(0)), ((int)(0)), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>)))); } }
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 static void __hx_ctor_alphatab_rendering_glyphs_effects_TextGlyph(global::alphatab.rendering.glyphs.effects.TextGlyph __temp_me254, global::haxe.lang.Null <int> x, global::haxe.lang.Null <int> y, string text, global::alphatab.platform.model.Font font) { unchecked { int __temp_y253 = ((global::haxe.lang.Runtime.eq((y).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (y.@value)); int __temp_x252 = ((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_me254, new global::haxe.lang.Null <int>(__temp_x252, true), new global::haxe.lang.Null <int>(__temp_y253, true)); __temp_me254._text = text; __temp_me254._font = font; } }
public TextGlyph(global::haxe.lang.Null <int> x, global::haxe.lang.Null <int> y, string text, global::alphatab.platform.model.Font font) : base(global::haxe.lang.EmptyObject.EMPTY) { unchecked { global::alphatab.rendering.glyphs.effects.TextGlyph.__hx_ctor_alphatab_rendering_glyphs_effects_TextGlyph(this, x, y, text, font); } }
public virtual void init(double scale) { unchecked { this.scale = scale; string sansFont = "Arial"; string serifFont = "Georgia"; this.effectFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(serifFont), ((double) (( 12 * scale )) ), new global::haxe.lang.Null<int>(2, true)); this.copyrightFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(sansFont), ((double) (( 12 * scale )) ), new global::haxe.lang.Null<int>(1, true)); this.titleFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(serifFont), ((double) (( 32 * scale )) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )); this.subTitleFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(serifFont), ((double) (( 20 * scale )) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )); this.wordsFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(serifFont), ((double) (( 15 * scale )) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )); this.tablatureFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(sansFont), ((double) (( 13 * scale )) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )); this.graceFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(sansFont), ((double) (( 11 * scale )) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )); this.staveLineColor = new global::alphatab.platform.model.Color(((int) (165) ), ((int) (165) ), ((int) (165) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )); this.barSeperatorColor = new global::alphatab.platform.model.Color(((int) (34) ), ((int) (34) ), ((int) (17) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )); this.barNumberFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(sansFont), ((double) (( 11 * scale )) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )); this.barNumberColor = new global::alphatab.platform.model.Color(((int) (200) ), ((int) (0) ), ((int) (0) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )); this.markerFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(serifFont), ((double) (( 14 * scale )) ), new global::haxe.lang.Null<int>(1, true)); this.tabClefFont = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString(sansFont), ((double) (( 18 * scale )) ), new global::haxe.lang.Null<int>(1, true)); this.mainGlyphColor = new global::alphatab.platform.model.Color(((int) (0) ), ((int) (0) ), ((int) (0) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )); } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 2026819210: { this.scale = ((double) (global::haxe.lang.Runtime.toDouble(@value)) ); return @value; } case 674558384: { this.mainGlyphColor = ((global::alphatab.platform.model.Color) (@value) ); return @value; } case 1345344942: { this.tabClefFont = ((global::alphatab.platform.model.Font) (@value) ); return @value; } case 1534092457: { this.markerFont = ((global::alphatab.platform.model.Font) (@value) ); return @value; } case 1906311879: { this.barNumberColor = ((global::alphatab.platform.model.Color) (@value) ); return @value; } case 2035221739: { this.barNumberFont = ((global::alphatab.platform.model.Font) (@value) ); return @value; } case 617369845: { this.barSeperatorColor = ((global::alphatab.platform.model.Color) (@value) ); return @value; } case 1873734400: { this.staveLineColor = ((global::alphatab.platform.model.Color) (@value) ); return @value; } case 77654503: { this.graceFont = ((global::alphatab.platform.model.Font) (@value) ); return @value; } case 1035342189: { this.tablatureFont = ((global::alphatab.platform.model.Font) (@value) ); return @value; } case 705429760: { this.effectFont = ((global::alphatab.platform.model.Font) (@value) ); return @value; } case 1090814424: { this.wordsFont = ((global::alphatab.platform.model.Font) (@value) ); return @value; } case 342184423: { this.subTitleFont = ((global::alphatab.platform.model.Font) (@value) ); return @value; } case 1735084935: { this.titleFont = ((global::alphatab.platform.model.Font) (@value) ); return @value; } case 1853446518: { this.copyrightFont = ((global::alphatab.platform.model.Font) (@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 void paint(int cx, int cy, global::alphatab.platform.ICanvas canvas) { unchecked { global::alphatab.rendering.TabBarRenderer tabBarRenderer = ((global::alphatab.rendering.TabBarRenderer)(this.renderer)); global::alphatab.model.Track track = this.renderer.stave.staveGroup.layout.renderer.track; global::alphatab.rendering.RenderingResources res = this.renderer.stave.staveGroup.layout.renderer.renderingResources; double startY = ((cy + this.y) + ((10 * this.renderer.stave.staveGroup.layout.renderer.settings.scale) * 0.6)); int endY = ((cy + this.y) + tabBarRenderer.getTabY(track.tuning.length, new global::haxe.lang.Null <int>(-2, true))); double fontScale = ((double)(1)); double correction = ((double)(0)); { int _g = track.tuning.length; switch (_g) { case 4: { fontScale = 0.6; break; } case 5: { fontScale = 0.8; break; } case 6: { fontScale = 1.1; correction = ((double)(1)); break; } case 7: { fontScale = 1.15; break; } case 8: { fontScale = 1.35; break; } } } global::alphatab.platform.model.Font font = res.tabClefFont.clone(); font.setSize((font.getSize() * fontScale)); canvas.setColor(res.mainGlyphColor); canvas.setFont(font); canvas.setTextAlign(global::alphatab.platform.model.TextAlign.Center); canvas.fillText("T", ((double)(((cx + this.x) + (this.width / 2)))), startY); canvas.fillText("A", ((double)(((cx + this.x) + (this.width / 2)))), ((startY + font.getSize()) - ((int)((correction * this.renderer.stave.staveGroup.layout.renderer.settings.scale))))); canvas.fillText("B", ((double)(((cx + this.x) + (this.width / 2)))), (startY + (((font.getSize() - ((int)((correction * this.renderer.stave.staveGroup.layout.renderer.settings.scale))))) * 2))); } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 2026819210: { this.scale = ((double)(global::haxe.lang.Runtime.toDouble(@value))); return(@value); } case 674558384: { this.mainGlyphColor = ((global::alphatab.platform.model.Color)(@value)); return(@value); } case 1345344942: { this.tabClefFont = ((global::alphatab.platform.model.Font)(@value)); return(@value); } case 1534092457: { this.markerFont = ((global::alphatab.platform.model.Font)(@value)); return(@value); } case 1906311879: { this.barNumberColor = ((global::alphatab.platform.model.Color)(@value)); return(@value); } case 2035221739: { this.barNumberFont = ((global::alphatab.platform.model.Font)(@value)); return(@value); } case 617369845: { this.barSeperatorColor = ((global::alphatab.platform.model.Color)(@value)); return(@value); } case 1873734400: { this.staveLineColor = ((global::alphatab.platform.model.Color)(@value)); return(@value); } case 77654503: { this.graceFont = ((global::alphatab.platform.model.Font)(@value)); return(@value); } case 1035342189: { this.tablatureFont = ((global::alphatab.platform.model.Font)(@value)); return(@value); } case 705429760: { this.effectFont = ((global::alphatab.platform.model.Font)(@value)); return(@value); } case 1090814424: { this.wordsFont = ((global::alphatab.platform.model.Font)(@value)); return(@value); } case 342184423: { this.subTitleFont = ((global::alphatab.platform.model.Font)(@value)); return(@value); } case 1735084935: { this.titleFont = ((global::alphatab.platform.model.Font)(@value)); return(@value); } case 1853446518: { this.copyrightFont = ((global::alphatab.platform.model.Font)(@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); } } } }