public static void FinishDrawing(this MolDraw2D view) { switch (view) { case MolDraw2DSVG d2d: d2d.finishDrawing(); break; case MolDraw2DCairo d2d: d2d.finishDrawing(); break; default: throw new NotImplementedException(); } }
public static void SetLineWidth(this MolDraw2D view, int size) => view.setLineWidth(size);
public static int GetLineWidth(this MolDraw2D view) => view.lineWidth();
public static double GetWidth(this MolDraw2D view) => view.width();
public static double GetHeight(this MolDraw2D view) => view.height();
public static void SetScale(this MolDraw2D view, int width, int height, Point2D minv, Point2D maxv) => view.setScale(width, height, minv, maxv);
// // MolDraw2D // public static void ClearDrawing(this MolDraw2D view) => view.clearDrawing();
public static void DrawMolecule(this MolDraw2D view, ROMol mol, string legend = "", Int_Vect highlight_atoms = null, Int_Vect highlight_bonds = null) => view.drawMolecule(mol, legend, highlight_atoms, highlight_bonds);
public static double GetFontSize(this MolDraw2D view) => view.fontSize();
public static void SetDash(this MolDraw2D view, UInt_Vect dash) => view.setDash(dash);
public static UInt_Vect GetDash(this MolDraw2D view) => view.dash();
public static void SetColor(this MolDraw2D view, DrawColour color) => view.setColour(color);
public static DrawColour GetColor(this MolDraw2D view) => view.colour();
public static MolDrawOptions DrawOptions(this MolDraw2D view) => view.drawOptions();
public static double GetPanelHeight(this MolDraw2D view) => view.panelHeight();
public static double GetPanelWidth(this MolDraw2D view) => view.panelWidth();
public static void SetFontSize(this MolDraw2D view, double size) => view.setFontSize(size);
public static double Scale(this MolDraw2D view) => view.scale();
public static void PrepareAndDrawMolecule(MolDraw2D drawer, ROMol mol, string legend = "", Int_Vect highlight_atoms = null, Int_Vect highlight_bonds = null) { RDKFuncs.prepareAndDrawMolecule(drawer, mol, legend, highlight_atoms, highlight_bonds); }