protected DrawCellBase(IDrawCell <TGraphics> chain1) { if (chain1 != null) { _chain = new IDrawCell <TGraphics>[] { chain1 }; // TODO no alloc } listen(); }
public void func_end_update() { _typeget.func_end_update(); foreach (int display_type in _types.Keys) { IDrawCell <TGraphics> dec = _types[display_type]; dec.func_end_update(); } }
public void func_begin_update(CellRange viz) { _typeget.func_begin_update(viz); foreach (int display_type in _types.Keys) { IDrawCell <TGraphics> dec = _types[display_type]; dec.func_begin_update(viz); } }
public DrawCell_Chain_Cache(IDrawCell <TGraphics> cd, IDimension cbcol, IDimension cbrow) : base(cd) { _cache = new Cache <TImage> (explicit_dispose); _cbcol = cbcol; _cbrow = cbrow; _func_chain = chain_draw; cd.changed += on_chained_change; _cbcol.changed += on_columnwidth_change; _cbrow.changed += on_rowheight_change; }
public DrawVisible_Adapter_DrawCell(IDrawCell <TGraphics> cd) { _cd = cd; _cd.changed += (object sender, CellCoords e) => { if (changed != null) { changed(this, e); } }; }
public void func_cell_draw(int col, int row, double x, double y, double width, double height, TGraphics gr) { int display_type; if (_typeget.get_value(col, row, out display_type)) { IDrawCell <TGraphics> dec = _types[display_type]; dec.func_cell_draw(col, row, x, y, width, height, gr); } }
public DrawCell_Chain_Padding(IValuePerCell <Padding?> vals, IDrawCell <IGraphics> cd) : base(vals, cd) { }
public ConsoleRoute(Coordinate location, IDrawCell drawCell) { Location = location; _drawCell = drawCell; }
public DrawCell_Chain_Padding(IValuePerCell <Padding?> vals, IDrawCell <CGContext> cd) : base(vals, cd) { }
public DrawCell_Fill(IValuePerCell <CGColor> vals, IDrawCell <CGContext> chain = null) : base(vals, draw, chain) { }
public ConsoleMaze(IMazeFactory mazeFactory, IDrawCell drawCell) : base(mazeFactory) { _drawCell = drawCell; }
public void Add(int n, IDrawCell <TGraphics> dc) { _types [n] = dc; }
// TODO IEnumerable<IChanged> _listen_for_changes_on_these public DrawCell( IDrawCell <TGraphics> chain ) : base(chain) { }
public DrawCell_Chain_Cache(IDrawCell <IGraphics> cd, IDimension cbcol, IDimension cbrow) : base(cd, cbcol, cbrow) { }
public DrawCell_Chain_Padding(IValuePerCell <Padding?> vals, IDrawCell <TGraphics> cd) : base(vals, null, cd) { _func_chain = chain_draw; }
public DrawCell_Fill(IValuePerCell <Color> vals, IDrawCell <IGraphics> chain = null) : base(vals, draw, chain) { }
public ConsoleDestination(Coordinate location, IDrawCell drawCell) { Location = location; _drawCell = drawCell; }