X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Frender.h;h=c10f23716060924897da482dc106128fbd5cdcf3;hb=ac0b46916cf9c10ebe85bc51d83c9fb713903284;hp=5089a3bdd4e19996d4888ed6eba30a5f06e8639e;hpb=0b676d85cb983fa0e719de9300935d2c8b549b14;p=pspp diff --git a/src/output/render.h b/src/output/render.h index 5089a3bdd4..c10f237160 100644 --- a/src/output/render.h +++ b/src/output/render.h @@ -93,14 +93,17 @@ struct render_params STYLES[TABLE_VERT][0]: style of line from left of BB to its center. STYLES[TABLE_VERT][1]: style of line from right of BB to its center. */ void (*draw_line) (void *aux, int bb[TABLE_N_AXES][2], - enum render_line_style styles[TABLE_N_AXES][2]); + enum render_line_style styles[TABLE_N_AXES][2], + struct cell_color colors[TABLE_N_AXES][2]); /* Draws CELL within bounding box BB. CLIP is the same as BB (the common case) or a subregion enclosed by BB. In the latter case only the part of the cell that lies within CLIP should actually be drawn, although BB should used to determine the layout of the cell. */ - void (*draw_cell) (void *aux, const struct table_cell *cell, - int bb[TABLE_N_AXES][2], int clip[TABLE_N_AXES][2]); + void (*draw_cell) (void *aux, const struct table_cell *cell, int color_idx, + int bb[TABLE_N_AXES][2], + int spill[TABLE_N_AXES][2], + int clip[TABLE_N_AXES][2]); /* Auxiliary data passed to each of the above functions. */ void *aux; @@ -122,7 +125,14 @@ struct render_params points.) */ int min_break[TABLE_N_AXES]; + /* True if the driver supports cell margins. (If false, the rendering + engine will insert a small space betweeen adjacent cells that don't have + an intervening rule.) */ bool supports_margins; + + /* True if the local language has a right-to-left direction, otherwise + false. (Use render_direction_rtl() to find out.) */ + bool rtl; }; /* An iterator for breaking render_pages into smaller chunks. */