Changeset 2303 for libcaca/trunk/cxx/cucul++.cpp
- Timestamp:
- 04/19/08 21:25:41 (5 years ago)
- File:
-
- 1 edited
-
libcaca/trunk/cxx/cucul++.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/cxx/cucul++.cpp
r2074 r2303 26 26 27 27 28 u nsigned long int Charset::utf8ToUtf32(char const *s, unsigned int *read)28 uint32_t Charset::utf8ToUtf32(char const *s, unsigned int *read) 29 29 { 30 30 return cucul_utf8_to_utf32(s, read); 31 31 } 32 unsigned int Charset::utf32ToUtf8(char *buf, u nsigned long int ch)32 unsigned int Charset::utf32ToUtf8(char *buf, uint32_t ch) 33 33 { 34 34 return cucul_utf32_to_utf8(buf, ch); 35 35 } 36 u nsigned char Charset::utf32ToCp437(unsigned long int ch)36 uint8_t Charset::utf32ToCp437(uint32_t ch) 37 37 { 38 38 return cucul_utf32_to_cp437(ch); 39 39 } 40 u nsigned long int Charset::cp437ToUtf32(unsigned charch)40 uint32_t Charset::cp437ToUtf32(uint8_t ch) 41 41 { 42 42 return cucul_cp437_to_utf32(ch); … … 83 83 } 84 84 85 int Cucul::setColorANSI(u nsigned char f, unsigned charb)85 int Cucul::setColorANSI(uint8_t f, uint8_t b) 86 86 { 87 87 return cucul_set_color_ansi(cv, f, b); … … 93 93 } 94 94 95 void Cucul::putChar(int x, int y, u nsigned long int ch)95 void Cucul::putChar(int x, int y, uint32_t ch) 96 96 { 97 97 cucul_put_char(cv, x, y, ch); 98 98 } 99 99 100 u nsigned long int Cucul::getChar(int x, int y)100 uint32_t Cucul::getChar(int x, int y) 101 101 { 102 102 return cucul_get_char(cv, x, y); … … 157 157 } 158 158 159 void Cucul::drawLine(int x1, int y1, int x2, int y2, u nsigned long int ch)159 void Cucul::drawLine(int x1, int y1, int x2, int y2, uint32_t ch) 160 160 { 161 161 cucul_draw_line(cv, x1, y1, x2, y2, ch); 162 162 } 163 163 164 void Cucul::drawPolyline(int const x[], int const y[], int f, u nsigned long int ch)164 void Cucul::drawPolyline(int const x[], int const y[], int f, uint32_t ch) 165 165 { 166 166 cucul_draw_polyline(cv, x, y, f, ch); … … 177 177 } 178 178 179 void Cucul::drawCircle(int x, int y, int d, u nsigned long int ch)179 void Cucul::drawCircle(int x, int y, int d, uint32_t ch) 180 180 { 181 181 cucul_draw_circle(cv, x, y, d, ch); 182 182 } 183 183 184 void Cucul::drawEllipse(int x, int y, int d1, int d2, u nsigned long int ch)184 void Cucul::drawEllipse(int x, int y, int d1, int d2, uint32_t ch) 185 185 { 186 186 cucul_draw_ellipse(cv, x, y, d1, d2, ch); … … 192 192 } 193 193 194 void Cucul::fillEllipse(int x, int y, int d1, int d2, u nsigned long int ch)194 void Cucul::fillEllipse(int x, int y, int d1, int d2, uint32_t ch) 195 195 { 196 196 cucul_fill_ellipse(cv, x, y, d1, d2, ch); 197 197 } 198 198 199 void Cucul::drawBox(int x, int y, int w, int h, u nsigned long int ch)199 void Cucul::drawBox(int x, int y, int w, int h, uint32_t ch) 200 200 { 201 201 cucul_draw_box(cv, x, y, w, h, ch); … … 212 212 } 213 213 214 void Cucul::fillBox(int x, int y, int w, int h, u nsigned long int ch)214 void Cucul::fillBox(int x, int y, int w, int h, uint32_t ch) 215 215 { 216 216 cucul_fill_box(cv, x, y, w, h, ch); 217 217 } 218 218 219 void Cucul::drawTriangle(int x1, int y1, int x2, int y2, int x3, int y3, u nsigned long int ch)219 void Cucul::drawTriangle(int x1, int y1, int x2, int y2, int x3, int y3, uint32_t ch) 220 220 { 221 221 cucul_draw_triangle(cv, x1, y1, x2, y2, x3, y3, ch); … … 227 227 } 228 228 229 void Cucul::fillTriangle(int x1, int y1, int x2, int y2, int x3, int y3, u nsigned long int ch)229 void Cucul::fillTriangle(int x1, int y1, int x2, int y2, int x3, int y3, uint32_t ch) 230 230 { 231 231 cucul_fill_triangle(cv, x1, y1, x2, y2, x3, y3, ch); … … 242 242 } 243 243 244 int Cucul::setAttr(u nsigned long int attr)244 int Cucul::setAttr(uint32_t attr) 245 245 { 246 246 return cucul_set_attr(cv, attr); 247 247 } 248 248 249 u nsigned long int Cucul::getAttr(int x, int y)249 uint32_t Cucul::getAttr(int x, int y) 250 250 { 251 251 return cucul_get_attr(cv, x, y); … … 395 395 } 396 396 397 void Font::renderCanvas(Cucul *cv, u nsigned char*buf, unsigned int x, unsigned int y, unsigned int w)397 void Font::renderCanvas(Cucul *cv, uint8_t *buf, unsigned int x, unsigned int y, unsigned int w) 398 398 { 399 399 cucul_render_canvas(cv->get_cucul_canvas_t(), font, buf, x, y, w); 400 400 } 401 401 402 u nsigned long int const *Font::getBlocks()402 uint32_t const *Font::getBlocks() 403 403 { 404 404 return cucul_get_font_blocks(font);
Note: See TracChangeset
for help on using the changeset viewer.
