Exemplo n.º 1
0
        public VectorRedactorRepository(Graphics canvas, Redactor redactor, VectorRedactorConfig config)
        {
            Canvas = canvas;
            _redactor = redactor;
            canvas.SmoothingMode = SmoothingMode.HighQuality;

            Layout = new Layout(canvas);

            WordConfig = new GlyphConfig(config.WordBrush, config.WordPen);
            LineConfig = new GlyphConfig(config.LineBrush, config.LinePen);

            RedactorState = RedactorStates.Default;

            MainGlyph = new CanvasGlyph(WordConfig) { Redactor = _redactor, ParentVectorRedactor = this };
            MainGlyph.MainGlyph = MainGlyph;

            ActiveGlyph = MainGlyph;
        }
Exemplo n.º 2
0
 public PathGlyph(GlyphConfig config)
 {
     Config = config;
     Figure = new UnclosedPathFigure();
 }
Exemplo n.º 3
0
 public CanvasGlyph(GlyphConfig config)
 {
     Config = config;
     Childs = new List <Glyph>();
 }
Exemplo n.º 4
0
Arquivo: Glyphs.cs Projeto: ernado/Owl
 public CanvasGlyph(GlyphConfig config)
 {
     Config = config;
     Childs = new List<Glyph>();
 }
Exemplo n.º 5
0
Arquivo: Glyphs.cs Projeto: ernado/Owl
 public PathGlyph(GlyphConfig config)
 {
     Config = config;
     Figure = new UnclosedPathFigure();
 }