2 * Copyright (C) 2013 FooProject
3 * * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
6 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
7 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
9 You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
13 using D2D = SharpDX.Direct2D1;
15 namespace FooEditEngine
17 class DrawingEffect : ComObject, IDisposable
19 public HilightType Stroke;
21 public bool isBoldLine;
22 public DrawingEffect(HilightType type, Color4 fore, bool isBoldLine)
26 this.isBoldLine = isBoldLine;
29 void IDisposable.Dispose()
34 sealed class SelectedEffect : DrawingEffect
38 public SelectedEffect(Color4 fore, Color4 back, bool isBoldLine) :
39 base(HilightType.Select, fore, isBoldLine)