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 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);
     }
 }
示例#3
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 792673520:
                {
                    this.octave = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1751303026:
                {
                    this.dynamicValue = ((global::alphatab.model.DynamicValue)(@value));
                    return(@value);
                }


                case 1091821942:
                {
                    this.beat = ((global::alphatab.model.Beat)(@value));
                    return(@value);
                }


                case 2132043430:
                {
                    this.swapAccidentals = ((bool)(@value));
                    return(@value);
                }


                case 949687761:
                {
                    this.durationPercent = ((double)(global::haxe.lang.Runtime.toDouble(@value)));
                    return(@value);
                }


                case 1428159260:
                {
                    this.trillSpeed = ((global::alphatab.model.Duration)(@value));
                    return(@value);
                }


                case 91153158:
                {
                    this.trillValue = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1618969487:
                {
                    this.isFingering = ((bool)(@value));
                    return(@value);
                }


                case 1806698356:
                {
                    this.rightHandFinger = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1286276959:
                {
                    this.leftHandFinger = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 55629992:
                {
                    this.isTieDestination = ((bool)(@value));
                    return(@value);
                }


                case 1361216012:
                {
                    this.isTieOrigin = ((bool)(@value));
                    return(@value);
                }


                case 1923205974:
                {
                    this.tieOrigin = ((global::alphatab.model.Note)(@value));
                    return(@value);
                }


                case 253080294:
                {
                    this.isStaccato = ((bool)(@value));
                    return(@value);
                }


                case 1598475321:
                {
                    this.vibrato = ((global::alphatab.model.VibratoType)(@value));
                    return(@value);
                }


                case 59156322:
                {
                    this.slideTarget = ((global::alphatab.model.Note)(@value));
                    return(@value);
                }


                case 1293078667:
                {
                    this.slideType = ((global::alphatab.model.SlideType)(@value));
                    return(@value);
                }


                case 1607275438:
                {
                    this.isDead = ((bool)(@value));
                    return(@value);
                }


                case 1725549749:
                {
                    this.isPalmMute = ((bool)(@value));
                    return(@value);
                }


                case 1914101345:
                {
                    this.isLetRing = ((bool)(@value));
                    return(@value);
                }


                case 1528640775:
                {
                    this.harmonicType = ((global::alphatab.model.HarmonicType)(@value));
                    return(@value);
                }


                case 1969111172:
                {
                    this.harmonicValue = ((double)(global::haxe.lang.Runtime.toDouble(@value)));
                    return(@value);
                }


                case 1833015931:
                {
                    this.isHammerPullOrigin = ((bool)(@value));
                    return(@value);
                }


                case 152554969:
                {
                    this.isHammerPullDestination = ((bool)(@value));
                    return(@value);
                }


                case 1958899313:
                {
                    this.hammerPullOrigin = ((global::alphatab.model.Note)(@value));
                    return(@value);
                }


                case 288368849:
                {
                    this.@string = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 803091205:
                {
                    this.isGhost = ((bool)(@value));
                    return(@value);
                }


                case 1136827579:
                {
                    this.fret = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1402094524:
                {
                    this.bendPoints = ((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(@value)))));
                    return(@value);
                }


                case 860647805:
                {
                    this.accentuated = ((global::alphatab.model.AccentuationType)(@value));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
示例#4
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 792673520:
					{
						this.octave = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1751303026:
					{
						this.dynamicValue = ((global::alphatab.model.DynamicValue) (@value) );
						return @value;
					}
					
					
					case 1091821942:
					{
						this.beat = ((global::alphatab.model.Beat) (@value) );
						return @value;
					}
					
					
					case 2132043430:
					{
						this.swapAccidentals = ((bool) (@value) );
						return @value;
					}
					
					
					case 949687761:
					{
						this.durationPercent = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 1428159260:
					{
						this.trillSpeed = ((global::alphatab.model.Duration) (@value) );
						return @value;
					}
					
					
					case 91153158:
					{
						this.trillValue = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1618969487:
					{
						this.isFingering = ((bool) (@value) );
						return @value;
					}
					
					
					case 1806698356:
					{
						this.rightHandFinger = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1286276959:
					{
						this.leftHandFinger = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 55629992:
					{
						this.isTieDestination = ((bool) (@value) );
						return @value;
					}
					
					
					case 1361216012:
					{
						this.isTieOrigin = ((bool) (@value) );
						return @value;
					}
					
					
					case 1923205974:
					{
						this.tieOrigin = ((global::alphatab.model.Note) (@value) );
						return @value;
					}
					
					
					case 253080294:
					{
						this.isStaccato = ((bool) (@value) );
						return @value;
					}
					
					
					case 1598475321:
					{
						this.vibrato = ((global::alphatab.model.VibratoType) (@value) );
						return @value;
					}
					
					
					case 59156322:
					{
						this.slideTarget = ((global::alphatab.model.Note) (@value) );
						return @value;
					}
					
					
					case 1293078667:
					{
						this.slideType = ((global::alphatab.model.SlideType) (@value) );
						return @value;
					}
					
					
					case 1607275438:
					{
						this.isDead = ((bool) (@value) );
						return @value;
					}
					
					
					case 1725549749:
					{
						this.isPalmMute = ((bool) (@value) );
						return @value;
					}
					
					
					case 1914101345:
					{
						this.isLetRing = ((bool) (@value) );
						return @value;
					}
					
					
					case 1528640775:
					{
						this.harmonicType = ((global::alphatab.model.HarmonicType) (@value) );
						return @value;
					}
					
					
					case 1969111172:
					{
						this.harmonicValue = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 1833015931:
					{
						this.isHammerPullOrigin = ((bool) (@value) );
						return @value;
					}
					
					
					case 152554969:
					{
						this.isHammerPullDestination = ((bool) (@value) );
						return @value;
					}
					
					
					case 1958899313:
					{
						this.hammerPullOrigin = ((global::alphatab.model.Note) (@value) );
						return @value;
					}
					
					
					case 288368849:
					{
						this.@string = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 803091205:
					{
						this.isGhost = ((bool) (@value) );
						return @value;
					}
					
					
					case 1136827579:
					{
						this.fret = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1402094524:
					{
						this.bendPoints = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 860647805:
					{
						this.accentuated = ((global::alphatab.model.AccentuationType) (@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 r = ((global::alphatab.rendering.TabBarRenderer)(this.renderer));
                int sizeX  = ((int)((12 * this.renderer.stave.staveGroup.layout.renderer.settings.scale)));
                int sizeY  = ((int)((3 * this.renderer.stave.staveGroup.layout.renderer.settings.scale)));
                int startX = default(int);
                int startY = default(int);
                int endX   = default(int);
                int endY   = default(int);
                {
                    global::alphatab.model.SlideType _g = this._type;
                    switch (global::haxe.root.Type.enumIndex(_g))
                    {
                    case 1:
                    case 2:
                    {
                        int startOffsetY = default(int);
                        int endOffsetY   = default(int);
                        if ((this._startNote.slideTarget == default(global::alphatab.model.Note)))
                        {
                            startOffsetY = 0;
                            endOffsetY   = 0;
                        }
                        else
                        {
                            if ((this._startNote.slideTarget.fret > this._startNote.fret))
                            {
                                startOffsetY = sizeY;
                                endOffsetY   = (sizeY * -1);
                            }
                            else
                            {
                                startOffsetY = (sizeY * -1);
                                endOffsetY   = sizeY;
                            }
                        }

                        startX = (cx + r.getNoteX(this._startNote, new global::haxe.lang.Null <bool>(true, true)));
                        startY = ((cy + r.getNoteY(this._startNote)) + startOffsetY);
                        if ((this._startNote.slideTarget != default(global::alphatab.model.Note)))
                        {
                            endX = (cx + r.getNoteX(this._startNote.slideTarget, new global::haxe.lang.Null <bool>(false, true)));
                            endY = ((cy + r.getNoteY(this._startNote.slideTarget)) + endOffsetY);
                        }
                        else
                        {
                            endX = (((cx + this._parent.x) + this._parent.postNotes.x) + this._parent.postNotes.width);
                            endY = startY;
                        }

                        break;
                    }


                    case 3:
                    {
                        endX   = (cx + r.getNoteX(this._startNote, new global::haxe.lang.Null <bool>(false, true)));
                        endY   = (cy + r.getNoteY(this._startNote));
                        startX = (endX - sizeX);
                        startY = ((cy + r.getNoteY(this._startNote)) + sizeY);
                        break;
                    }


                    case 4:
                    {
                        endX   = (cx + r.getNoteX(this._startNote, new global::haxe.lang.Null <bool>(false, true)));
                        endY   = (cy + r.getNoteY(this._startNote));
                        startX = (endX - sizeX);
                        startY = ((cy + r.getNoteY(this._startNote)) - sizeY);
                        break;
                    }


                    case 5:
                    {
                        startX = (cx + r.getNoteX(this._startNote, new global::haxe.lang.Null <bool>(true, true)));
                        startY = (cy + r.getNoteY(this._startNote));
                        endX   = (startX + sizeX);
                        endY   = ((cy + r.getNoteY(this._startNote)) - sizeY);
                        break;
                    }


                    case 6:
                    {
                        startX = (cx + r.getNoteX(this._startNote, new global::haxe.lang.Null <bool>(true, true)));
                        startY = (cy + r.getNoteY(this._startNote));
                        endX   = (startX + sizeX);
                        endY   = ((cy + r.getNoteY(this._startNote)) + sizeY);
                        break;
                    }


                    default:
                    {
                        return;
                    }
                    }
                }

                canvas.setColor(this.renderer.stave.staveGroup.layout.renderer.renderingResources.mainGlyphColor);
                canvas.beginPath();
                canvas.moveTo(((double)(startX)), ((double)(startY)));
                canvas.lineTo(((double)(endX)), ((double)(endY)));
                canvas.stroke();
            }
        }
 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 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);
					}
					
				}
				
			}
		}