Exemple #1
0
        public DepthNoteTag GetDepthTag(int depth, Pango.Direction direction)
        {
            string name = "depth:" + depth + ":" + direction;

            DepthNoteTag tag = Lookup(name) as DepthNoteTag;

            if (tag == null)
            {
                tag        = new DepthNoteTag(depth, direction);
                tag.Indent = -14;

                if (direction == Pango.Direction.Rtl)
                {
                    tag.RightMargin = (depth + 1) * 25;
                }
                else
                {
                    tag.LeftMargin = (depth + 1) * 25;
                }

                tag.PixelsBelowLines = 4;
                tag.Scale            = Pango.Scale.Medium;
                Add(tag);
            }

            return(tag);
        }
Exemple #2
0
		public DepthNoteTag GetDepthTag(int depth, Pango.Direction direction)
		{
			string name = "depth:" + depth + ":" + direction;

			DepthNoteTag tag = Lookup (name) as DepthNoteTag;

			if (tag == null) {
				tag = new DepthNoteTag (depth, direction);
				tag.Indent = -14;

				if (direction == Pango.Direction.Rtl)
					tag.RightMargin = (depth+1) * 25;
				else
					tag.LeftMargin = (depth+1) * 25;

				tag.PixelsBelowLines = 4;
				tag.Scale = Pango.Scale.Medium;
				Add (tag);
			}

			return tag;
		}