| [Insert name here] Reference Manual |
|---|
graphf-number-format —
struct GraphfNumberFormat;
void graphf_number_format_get_from_range
(GraphfNumberFormat *format_out,
double start,
double end,
double count);
void graphf_number_format_render_by_val
(const GraphfNumberFormat *format,
double value,
char *buf,
unsigned len);
void graphf_number_format_render_by_index
(const GraphfNumberFormat *format,
unsigned index,
char *buf,
unsigned len);
void graphf_number_render_by_val_and_step
(double value,
double step,
char *buf,
unsigned len);
double graphf_number_format_nth (const GraphfNumberFormat *format,
unsigned index);
struct GraphfNumberFormat {
int least_digit; /* 0 means that the 1s digit is the least to display */
int istep; /* 1,2,5 */
double first;
double step;
double last;
unsigned count;
};
void graphf_number_format_get_from_range
(GraphfNumberFormat *format_out,
double start,
double end,
double count);
| format_out: | |
| start: | |
| end: | |
| count: |
void graphf_number_format_render_by_val
(const GraphfNumberFormat *format,
double value,
char *buf,
unsigned len);
| format: | |
| value: | |
| buf: | |
| Param4: |
void graphf_number_format_render_by_index
(const GraphfNumberFormat *format,
unsigned index,
char *buf,
unsigned len);
| format: | |
| Param2: | |
| buf: | |
| Param4: |
void graphf_number_render_by_val_and_step
(double value,
double step,
char *buf,
unsigned len);
| value: | |
| step: | |
| buf: | |
| Param4: |
| << graphf-graph-3d-to-scene | graphf-painter-quadtree >> |