Changeset 2079 for libcaca/trunk
 Timestamp:
 Nov 27, 2007, 1:58:19 AM (13 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

libcaca/trunk/cucul/box.c
r1462 r2079 32 32 * 33 33 * \param cv The handle to the libcucul canvas. 34 * \param x 1X coordinate of the upperleft corner of the box.35 * \param y 1Y coordinate of the upperleft corner of the box.36 * \param x2 X coordinate of the lowerright cornerof the box.37 * \param y2 Y coordinate of the lowerright cornerof the box.34 * \param x X coordinate of the upperleft corner of the box. 35 * \param y Y coordinate of the upperleft corner of the box. 36 * \param w Width of the box. 37 * \param h Height of the box. 38 38 * \param ch UTF32 character to be used to draw the box. 39 39 * \return This function always returns 0. 40 40 */ 41 int cucul_draw_box(cucul_canvas_t *cv, int x1, int y1, int x2, int y2,41 int cucul_draw_box(cucul_canvas_t *cv, int x1, int y1, int w, int h, 42 42 unsigned long int ch) 43 43 { 44 int x2 = x1 + w  1; 45 int y2 = y1 + h  1; 46 44 47 cucul_draw_line(cv, x1, y1, x1, y2, ch); 45 48 cucul_draw_line(cv, x1, y2, x2, y2, ch); … … 55 58 * 56 59 * \param cv The handle to the libcucul canvas. 57 * \param x 1X coordinate of the upperleft corner of the box.58 * \param y 1Y coordinate of the upperleft corner of the box.59 * \param x2 X coordinate of the lowerright cornerof the box.60 * \param y2 Y coordinate of the lowerright cornerof the box.61 * \return This function always returns 0. 62 */ 63 int cucul_draw_thin_box(cucul_canvas_t *cv, int x1, int y1, int x2, int y2)60 * \param x X coordinate of the upperleft corner of the box. 61 * \param y Y coordinate of the upperleft corner of the box. 62 * \param w Width of the box. 63 * \param h Height of the box. 64 * \return This function always returns 0. 65 */ 66 int cucul_draw_thin_box(cucul_canvas_t *cv, int x1, int y1, int w, int h) 64 67 { 65 68 int x, y, xmax, ymax; 69 70 int x2 = x1 + w  1; 71 int y2 = y1 + h  1; 66 72 67 73 if(x1 > x2) … … 114 120 * 115 121 * \param cv The handle to the libcucul canvas. 116 * \param x 1X coordinate of the upperleft corner of the box.117 * \param y 1Y coordinate of the upperleft corner of the box.118 * \param x2 X coordinate of the lowerright cornerof the box.119 * \param y2 Y coordinate of the lowerright cornerof the box.120 * \return This function always returns 0. 121 */ 122 int cucul_draw_cp437_box(cucul_canvas_t *cv, int x1, int y1, int x2, int y2)122 * \param x X coordinate of the upperleft corner of the box. 123 * \param y Y coordinate of the upperleft corner of the box. 124 * \param w Width of the box. 125 * \param h Height of the box. 126 * \return This function always returns 0. 127 */ 128 int cucul_draw_cp437_box(cucul_canvas_t *cv, int x1, int y1, int w, int h) 123 129 { 124 130 int x, y, xmax, ymax; 131 132 int x2 = x1 + w  1; 133 int y2 = y1 + h  1; 125 134 126 135 if(x1 > x2) … … 173 182 * 174 183 * \param cv The handle to the libcucul canvas. 175 * \param x 1X coordinate of the upperleft corner of the box.176 * \param y 1Y coordinate of the upperleft corner of the box.177 * \param x2 X coordinate of the lowerright cornerof the box.178 * \param y2 Y coordinate of the lowerright cornerof the box.184 * \param x X coordinate of the upperleft corner of the box. 185 * \param y Y coordinate of the upperleft corner of the box. 186 * \param w Width of the box. 187 * \param h Height of the box. 179 188 * \param ch UTF32 character to be used to draw the box. 180 189 * \return This function always returns 0. 181 190 */ 182 int cucul_fill_box(cucul_canvas_t *cv, int x1, int y1, int x2, int y2,191 int cucul_fill_box(cucul_canvas_t *cv, int x1, int y1, int w, int h, 183 192 unsigned long int ch) 184 193 { 185 194 int x, y, xmax, ymax; 195 196 int x2 = x1 + w  1; 197 int y2 = y1 + h  1; 186 198 187 199 if(x1 > x2)
Note: See TracChangeset
for help on using the changeset viewer.