Mono.TextEditor.TextViewMargin.DrawScrollShadow C# (CSharp) Method

DrawScrollShadow() private method

private DrawScrollShadow ( Cairo cr, double x, double y, double _lineHeight ) : void
cr Cairo
x double
y double
_lineHeight double
return void
		void DrawScrollShadow (Cairo.Context cr, double x, double y, double _lineHeight)
		{
			if (textEditor.HAdjustment.Value > 0) {
				cr.LineWidth = textEditor.Options.Zoom;
				for (int i = 0; i < verticalShadowAlphaTable.Length; i++) {
					cr.SetSourceRGBA (0, 0, 0, 1 - verticalShadowAlphaTable [i]);
					cr.MoveTo (x + i * cr.LineWidth + 0.5, y);
					cr.LineTo (x + i * cr.LineWidth + 0.5, y + 1 + _lineHeight);
					cr.Stroke ();
				}
			}
		}