mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
Plotters: Split function parameters over multiple lines for readability.
This commit is contained in:
parent
66493421e6
commit
5f4f23f11a
@ -108,7 +108,9 @@ struct plotter_table {
|
||||
* operations within.
|
||||
* \return NSERROR_OK on success else error code.
|
||||
*/
|
||||
nserror (*clip)(const struct redraw_context *ctx, const struct rect *clip);
|
||||
nserror (*clip)(
|
||||
const struct redraw_context *ctx,
|
||||
const struct rect *clip);
|
||||
|
||||
/**
|
||||
* Plots an arc
|
||||
@ -126,7 +128,14 @@ struct plotter_table {
|
||||
* \param angle2 The finish angle of the arc.
|
||||
* \return NSERROR_OK on success else error code.
|
||||
*/
|
||||
nserror (*arc)(const struct redraw_context *ctx, const plot_style_t *pstyle, int x, int y, int radius, int angle1, int angle2);
|
||||
nserror (*arc)(
|
||||
const struct redraw_context *ctx,
|
||||
const plot_style_t *pstyle,
|
||||
int x,
|
||||
int y,
|
||||
int radius,
|
||||
int angle1,
|
||||
int angle2);
|
||||
|
||||
/**
|
||||
* Plots a circle
|
||||
@ -140,7 +149,12 @@ struct plotter_table {
|
||||
* \param radius The radius of the circle.
|
||||
* \return NSERROR_OK on success else error code.
|
||||
*/
|
||||
nserror (*disc)(const struct redraw_context *ctx, const plot_style_t *pstyle, int x, int y, int radius);
|
||||
nserror (*disc)(
|
||||
const struct redraw_context *ctx,
|
||||
const plot_style_t *pstyle,
|
||||
int x,
|
||||
int y,
|
||||
int radius);
|
||||
|
||||
/**
|
||||
* Plots a line
|
||||
@ -153,7 +167,10 @@ struct plotter_table {
|
||||
* \param line A rectangle defining the line to be drawn
|
||||
* \return NSERROR_OK on success else error code.
|
||||
*/
|
||||
nserror (*line)(const struct redraw_context *ctx, const plot_style_t *pstyle, const struct rect *line);
|
||||
nserror (*line)(
|
||||
const struct redraw_context *ctx,
|
||||
const plot_style_t *pstyle,
|
||||
const struct rect *line);
|
||||
|
||||
/**
|
||||
* Plots a rectangle.
|
||||
@ -168,7 +185,10 @@ struct plotter_table {
|
||||
* \param rect A rectangle defining the line to be drawn
|
||||
* \return NSERROR_OK on success else error code.
|
||||
*/
|
||||
nserror (*rectangle)(const struct redraw_context *ctx, const plot_style_t *pstyle, const struct rect *rectangle);
|
||||
nserror (*rectangle)(
|
||||
const struct redraw_context *ctx,
|
||||
const plot_style_t *pstyle,
|
||||
const struct rect *rectangle);
|
||||
|
||||
/**
|
||||
* Plot a polygon
|
||||
@ -184,7 +204,11 @@ struct plotter_table {
|
||||
* \param n number of verticies.
|
||||
* \return NSERROR_OK on success else error code.
|
||||
*/
|
||||
nserror (*polygon)(const struct redraw_context *ctx, const plot_style_t *pstyle, const int *p, unsigned int n);
|
||||
nserror (*polygon)(
|
||||
const struct redraw_context *ctx,
|
||||
const plot_style_t *pstyle,
|
||||
const int *p,
|
||||
unsigned int n);
|
||||
|
||||
/**
|
||||
* Plots a path.
|
||||
@ -200,7 +224,13 @@ struct plotter_table {
|
||||
* \param transform A transform to apply to the path.
|
||||
* \return NSERROR_OK on success else error code.
|
||||
*/
|
||||
nserror (*path)(const struct redraw_context *ctx, const plot_style_t *pstyle, const float *p, unsigned int n, float width, const float transform[6]);
|
||||
nserror (*path)(
|
||||
const struct redraw_context *ctx,
|
||||
const plot_style_t *pstyle,
|
||||
const float *p,
|
||||
unsigned int n,
|
||||
float width,
|
||||
const float transform[6]);
|
||||
|
||||
/**
|
||||
* Plot a bitmap
|
||||
@ -226,7 +256,15 @@ struct plotter_table {
|
||||
* \param flags the flags controlling the type of plot operation
|
||||
* \return NSERROR_OK on success else error code.
|
||||
*/
|
||||
nserror (*bitmap)(const struct redraw_context *ctx, struct bitmap *bitmap, int x, int y, int width, int height, colour bg, bitmap_flags_t flags);
|
||||
nserror (*bitmap)(
|
||||
const struct redraw_context *ctx,
|
||||
struct bitmap *bitmap,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int height,
|
||||
colour bg,
|
||||
bitmap_flags_t flags);
|
||||
|
||||
/**
|
||||
* Text plotting.
|
||||
@ -239,7 +277,13 @@ struct plotter_table {
|
||||
* \param length length of string, in bytes
|
||||
* \return NSERROR_OK on success else error code.
|
||||
*/
|
||||
nserror (*text)(const struct redraw_context *ctx, const plot_font_style_t *fstyle, int x, int y, const char *text, size_t length);
|
||||
nserror (*text)(
|
||||
const struct redraw_context *ctx,
|
||||
const plot_font_style_t *fstyle,
|
||||
int x,
|
||||
int y,
|
||||
const char *text,
|
||||
size_t length);
|
||||
|
||||
/**
|
||||
* Start of a group of objects.
|
||||
@ -250,7 +294,9 @@ struct plotter_table {
|
||||
* \param ctx The current redraw context.
|
||||
* \return NSERROR_OK on success else error code.
|
||||
*/
|
||||
nserror (*group_start)(const struct redraw_context *ctx, const char *name);
|
||||
nserror (*group_start)(
|
||||
const struct redraw_context *ctx,
|
||||
const char *name);
|
||||
|
||||
/**
|
||||
* End of the most recently started group.
|
||||
@ -260,7 +306,8 @@ struct plotter_table {
|
||||
* \param ctx The current redraw context.
|
||||
* \return NSERROR_OK on success else error code.
|
||||
*/
|
||||
nserror (*group_end)(const struct redraw_context *ctx);
|
||||
nserror (*group_end)(
|
||||
const struct redraw_context *ctx);
|
||||
|
||||
/**
|
||||
* Only used internally by the knockout code. Must be NULL in
|
||||
@ -269,7 +316,8 @@ struct plotter_table {
|
||||
* \param ctx The current redraw context.
|
||||
* \return NSERROR_OK on success else error code.
|
||||
*/
|
||||
nserror (*flush)(const struct redraw_context *ctx);
|
||||
nserror (*flush)(
|
||||
const struct redraw_context *ctx);
|
||||
|
||||
/* flags */
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user