lorid

convert chordpro to pdf
git clone git://git.relim.de/lorid.git
Log | Files | Refs | README | LICENSE

chord_diagram.h (1078B)


      1 #include <pdfio.h>
      2 #include "out_pdf.h"
      3 
      4 enum TextRendering {
      5 	FILL,
      6 	STROKE,
      7 	FILL_AND_STROKE
      8 };
      9 
     10 enum Direction {
     11 	HORIZONTAL,
     12 	VERTICAL
     13 };
     14 
     15 void chord_diagram_set_base_font(bool is_base_font);
     16 struct ChordDiagram *chord_diagram_new();
     17 void chord_diagram_free(struct ChordDiagram *d);
     18 bool chord_diagram_draw(struct PDFContext *ctx, pdfio_stream_t *stream, struct ChordDiagram *diagram, double x, double y, double width);
     19 enum ChordDiagramContent chord_diagram_duplicate(struct ChordDiagram *diagram, struct ChordDiagram **custom_diagrams, int custom_diagrams_len, const char *name, const char *chord_to_copy, enum Instrument instrument);
     20 
     21 struct ChordMap *chord_map_new(void);
     22 void chord_map_free(struct ChordMap *map);
     23 struct StringDiagram *string_diagram_new(void);
     24 struct KeyboardDiagram *keyboard_diagram_new(void);
     25 
     26 void chord_diagrams_free(struct ChordDiagram **diagrams);
     27 struct ChordDiagram **chord_diagrams_create(struct Config *config, struct ChoChord ***chords, struct ChordDiagram **custom_diagram);
     28 
     29 void debug_chord_diagram_print(struct ChordDiagram *diagram);