public override   void doLayout()
		{
			unchecked 
			{
				int i = this._number;
				while (( i > 0 ))
				{
					int num = ( i % 10 );
					global::alphatab.rendering.glyphs.DigitGlyph gl = new global::alphatab.rendering.glyphs.DigitGlyph(new global::haxe.lang.Null<int>(0, true), new global::haxe.lang.Null<int>(0, true), ((int) (num) ));
					this._glyphs.push(gl);
					i = ( i / 10 );
				}
				
				this._glyphs.reverse();
				int cx = 0;
				{
					int _g = 0;
					global::haxe.root.Array<object> _g1 = this._glyphs;
					while (( _g < _g1.length ))
					{
						global::alphatab.rendering.Glyph g = ((global::alphatab.rendering.Glyph) (_g1[_g]) );
						 ++ _g;
						g.x = cx;
						g.y = 0;
						g.renderer = this.renderer;
						g.doLayout();
						cx += g.width;
					}
					
				}
				
				this.width = cx;
			}
		}
Exemple #2
0
        public override void doLayout()
        {
            unchecked
            {
                int i = this._number;
                while ((i > 0))
                {
                    int num = (i % 10);
                    global::alphatab.rendering.glyphs.DigitGlyph gl = new global::alphatab.rendering.glyphs.DigitGlyph(new global::haxe.lang.Null <int>(0, true), new global::haxe.lang.Null <int>(0, true), ((int)(num)));
                    this._glyphs.push(gl);
                    i = (i / 10);
                }

                this._glyphs.reverse();
                int cx = 0;
                {
                    int _g = 0;
                    global::haxe.root.Array <object> _g1 = this._glyphs;
                    while ((_g < _g1.length))
                    {
                        global::alphatab.rendering.Glyph g = ((global::alphatab.rendering.Glyph)(_g1[_g]));
                        ++_g;
                        g.x        = cx;
                        g.y        = 0;
                        g.renderer = this.renderer;
                        g.doLayout();
                        cx += g.width;
                    }
                }

                this.width = cx;
            }
        }
Exemple #3
0
 public static void __hx_ctor_alphatab_rendering_glyphs_DigitGlyph(global::alphatab.rendering.glyphs.DigitGlyph __temp_me150, global::haxe.lang.Null <int> x, global::haxe.lang.Null <int> y, int digit)
 {
     unchecked
     {
         int __temp_y149 = ((global::haxe.lang.Runtime.eq((y).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (y.@value));
         int __temp_x148 = ((global::haxe.lang.Runtime.eq((x).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (x.@value));
         global::alphatab.rendering.glyphs.SvgGlyph.__hx_ctor_alphatab_rendering_glyphs_SvgGlyph(__temp_me150, new global::haxe.lang.Null <int>(__temp_x148, true), new global::haxe.lang.Null <int>(__temp_y149, true), __temp_me150.getDigit(digit), ((double)(1)), ((double)(1)));
         __temp_me150._digit = digit;
     }
 }