/usr/share/vala-0.14/vapi/sdl-gfx.vapi is in valac-0.14 0.14.2-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 | namespace SDLGraphics {
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
[Compact]
public class Pixel {
[CCode (cname="pixelColor")]
public static int color(SDL.Surface dst, int16 x, int16 y, uint32 color);
[CCode (cname="pixelRGBA")]
public static int rgba(SDL.Surface dst, int16 x, int16 y,
uchar r, uchar g, uchar b, uchar a);
}// Pixel
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
[Compact]
public class Line {
[CCode (cname="hlineColor")]
public static int color_h(SDL.Surface dst, int16 x1, int16 x2,
int16 y, uint32 color);
[CCode (cname="hlineRGBA")]
public static int rgba_h(SDL.Surface dst, int16 x1, int16 x2,
int16 y, uchar r, uchar g, uchar b, uchar a);
[CCode (cname="vlineColor")]
public static int color_v(SDL.Surface dst, int16 x, int16 y1,
int16 y2, uint32 color);
[CCode (cname="vlineRGBA")]
public static int rgba_v(SDL.Surface dst, int16 x, int16 y1,
int16 y2, uchar r, uchar g, uchar b, uchar a);
[CCode (cname="lineColor")]
public static int color(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, uint32 color);
[CCode (cname="lineRGBA")]
public static int rgba(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, uchar r, uchar g, uchar b, uchar a);
[CCode (cname="aalineColor")]
public static int color_aa(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, uint32 color);
[CCode (cname="aalineRGBA")]
public static int rgba_aa(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, uchar r, uchar g, uchar b, uchar a);
}// Line
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
[Compact]
public class Rectangle {
[CCode (cname="rectangleColor")]
public static int outline_color(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, uint32 color);
[CCode (cname="rectangleRGBA")]
public static int outline_rgba(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, uchar r, uchar g, uchar b, uchar a);
[CCode (cname="boxColor")]
public static int fill_color(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, uint32 color);
[CCode (cname="boxRGBA")]
public static int fill_rgba(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, uchar r, uchar g, uchar b, uchar a);
}// Rectangle
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
[Compact]
public class Circle {
[CCode (cname="circleColor")]
public static int outline_color(SDL.Surface dst, int16 x, int16 y,
int16 radius, uint32 color);
[CCode (cname="circleRGBA")]
public static int outline_rgba(SDL.Surface dst, int16 x, int16 y, int16 radius,
uchar r, uchar g, uchar b, uchar a);
[CCode (cname="aacircleColor")]
public static int outline_color_aa(SDL.Surface dst, int16 x, int16 y,
int16 radius, uint32 color);
[CCode (cname="aacircleRGBA")]
public static int outline_rgba_aa(SDL.Surface dst, int16 x, int16 y, int16 radius,
uchar r, uchar g, uchar b, uchar a);
[CCode (cname="filledCircleColor")]
public static int fill_color(SDL.Surface dst, int16 x, int16 y,
int16 radius, uint32 color);
[CCode (cname="filledCircleRGBA")]
public static int fill_rgba(SDL.Surface dst, int16 x, int16 y, int16 radius,
uchar r, uchar g, uchar b, uchar a);
}// Circle
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
[Compact]
public class Ellipse {
[CCode (cname="ellipseColor")]
public static int outline_color(SDL.Surface dst, int16 xc, int16 yc,
int16 rx, int16 ry, uint32 color);
[CCode (cname="ellipseRGBA")]
public static int outline_rgba(SDL.Surface dst, int16 xc, int16 yc,
int16 rx, int16 ry, uchar r, uchar g, uchar b, uchar a);
[CCode (cname="aaellipseColor")]
public static int outline_color_aa(SDL.Surface dst, int16 xc, int16 yc,
int16 rx, int16 ry, uint32 color);
[CCode (cname="aaellipseRGBA")]
public static int outline_rgba_aa(SDL.Surface dst, int16 xc, int16 yc,
int16 rx, int16 ry, uchar r, uchar g, uchar b, uchar a);
[CCode (cname="filledEllipseColor")]
public static int fill_color(SDL.Surface dst, int16 xc, int16 yc,
int16 rx, int16 ry, uint32 color);
[CCode (cname="filledEllipseRGBA")]
public static int fill_rgba(SDL.Surface dst, int16 xc, int16 yc,
int16 rx, int16 ry, uchar r, uchar g, uchar b, uchar a);
}// Ellipse
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
[Compact]
public class Arc {
[CCode (cname="pieColor")]
public static int outline_color(SDL.Surface dst, int16 x, int16 y, int16 radius,
int16 start, int16 end, uint32 color);
[CCode (cname="pieRGBA")]
public static int outline_rgba(SDL.Surface dst, int16 x, int16 y, int16 radius,
int16 start, int16 end, uchar r, uchar g, uchar b, uchar a);
[CCode (cname="filledPieColor")]
public static int fill_color(SDL.Surface dst, int16 x, int16 y, int16 radius,
int16 start, int16 end, uint32 color);
[CCode (cname="filledPieRGBA")]
public static int fill_rgba(SDL.Surface dst, int16 x, int16 y, int16 radius,
int16 start, int16 end, uchar r, uchar g, uchar b, uchar a);
}// Arc
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
[Compact]
public class Trigon {
[CCode (cname="trigonColor")]
public static int outline_color(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, int16 x3, int16 y3, uint32 color);
[CCode (cname="trigonRGBA")]
public static int outline_rgba(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, int16 x3, int16 y3,
uchar r, uchar g, uchar b, uchar a);
[CCode (cname="aatrigonColor")]
public static int outline_color_aa(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, int16 x3, int16 y3, uint32 color);
[CCode (cname="aatrigonRGBA")]
public static int outline_rgba_aa(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, int16 x3, int16 y3,
uchar r, uchar g, uchar b, uchar a);
[CCode (cname="filledTrigonColor")]
public static int fill_color(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, int16 x3, int16 y3, uint32 color);
[CCode (cname="filledTrigonRGBA")]
public static int fill_rgba(SDL.Surface dst, int16 x1, int16 y1,
int16 x2, int16 y2, int16 x3, int16 y3,
uchar r, uchar g, uchar b, uchar a);
}// Trigon
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
[Compact]
public class Polygon {
[CCode (cname="polygonColor")]
public static int outline_color(SDL.Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int n, uint32 color);
[CCode (cname="polygonRGBA")]
public static int outline_rgba(SDL.Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int n, uchar r, uchar g, uchar b, uchar a);
[CCode (cname="aapolygonColor")]
public static int outline_color_aa(SDL.Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int n, uint32 color);
[CCode (cname="aapolygonRGBA")]
public static int outline_rgba_aa(SDL.Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int n, uchar r, uchar g, uchar b, uchar a);
[CCode (cname="filledPolygonColor")]
public static int fill_color(SDL.Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int n, uint32 color);
[CCode (cname="filledPolygonRGBA")]
public static int fill_rgba(SDL.Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int n, uchar r, uchar g, uchar b, uchar a);
}// Polygon
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
[Compact]
public class BezierCurve {
[CCode (cname="bezierColor")]
public static int color(SDL.Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int vertices, int steps, uint32 color);
[CCode (cname="bezierRGBA")]
public static int rgba(SDL.Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int vertices, int steps, uchar r, uchar g, uchar b, uchar a);
}// BezierCurve
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
[Compact]
public class Text {
[CCode (cname="stringColor")]
public static int color(SDL.Surface dst, int16 x, int16 y, string s, uint32 color);
[CCode (cname="stringRGBA")]
public static int rgba(SDL.Surface dst, int16 x, int16 y, string s,
uchar r, uchar g, uchar b, uchar a);
[CCode (cname="gfxPrimitivesSetFont")]
public static int set_font(void* fontdata, int cw, int ch);
}// Text
[CCode (cheader_filename="SDL_rotozoom.h")]
[Compact]
public class RotoZoom {
[CCode (cname="rotozoomSurface")]
public static SDL.Surface rotozoom(SDL.Surface src, double degrees,
double zoom, int smooth);
[CCode (cname="rotozoomSurfaceXY")]
public static SDL.Surface rotozoom_xy(SDL.Surface src, double degrees,
double zoomx, double zoomy, int smooth);
[CCode (cname="rotozoomSurfaceSize")]
public static void rotozoom_size(int width, int height, double degrees,
double zoom, ref int dstwidth, ref int dstheight);
[CCode (cname="rotozoomSurfaceSizeXY")]
public static void rotozoom_size_xy(int width, int height, double degrees,
double zoomx, double zoomy, ref int dstwidth, ref int dstheight);
[CCode (cname="zoomSurface")]
public static SDL.Surface zoom(SDL.Surface src, double zoomx,
double zoomy, int smooth);
[CCode (cname="zoomSurfaceSize")]
public static void zoom_size(int width, int height, double zoomx,
double zoomy, ref int dstwidth, ref int dstheight);
}// RotoZoom
[CCode (cheader_filename="SDL_framerate.h", cname="FPSmanager", free_function="g_free")]
public struct FramerateManager {
[CCode (cname="SDL_initFramerate")]
public void init();
[CCode (cname="SDL_setFramerate")]
public int set_rate(int rate);
[CCode (cname="SDL_getFramerate")]
public int get_rate();
[CCode (cname="SDL_framerateDelay")]
public void run();
}// FramerateManager
[CCode (cheader_filename="SDL_imageFilter.h")]
[Compact]
public class Filter {
[CCode (cname="SDL_imageFilterMMXdetect")]
public static int have_mmx();
[CCode (cname="SDL_imageFilterMMXon")]
public static void enable_mmx();
[CCode (cname="SDL_imageFilterMMXoff")]
public static void disable_mmx();
[CCode (cname="SDL_imageFilterAdd")]
public static int add([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterMean")]
public static int mean([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterSub")]
public static int subtract([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterAbsDiff")]
public static int absolute_difference([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterMult")]
public static int multiply([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterMultNor")]
public static int multiply_normalized([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterMultDivby2")]
public static int multiply_half([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterMultDivby4")]
public static int multiply_quarter([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterBitAnd")]
public static int and([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterBitOr")]
public static int or([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterDiv")]
public static int divide([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterBitNegation")]
public static int negate([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterAddByte")]
public static int add_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar addend);
[CCode (cname="SDL_imageFilterAddUint")]
public static int add_uint([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uint addend);
[CCode (cname="SDL_imageFilterAddByteToHalf")]
public static int halve_add_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar addend);
[CCode (cname="SDL_imageFilterSubByte")]
public static int subtract_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar subtrahend);
[CCode (cname="SDL_imageFilterSubUint")]
public static int subtract_uint([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uint subtrahend);
[CCode (cname="SDL_imageFilterShiftRight")]
public static int shift_right_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar shiftcount);
[CCode (cname="SDL_imageFilterShiftRightUint")]
public static int shift_right_uint([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uint shiftcount);
[CCode (cname="SDL_imageFilterMultByByte")]
public static int multiply_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar multiplicand);
[CCode (cname="SDL_imageFilterShiftRightAndMultByByte")]
public static int shift_right_multiply_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar shiftcount, uchar multiplicand);
[CCode (cname="SDL_imageFilterShiftLeftByte")]
public static int shift_left_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar shiftcount);
[CCode (cname="SDL_imageFilterShiftLeftUint")]
public static int shift_left_uint([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uint shiftcount);
[CCode (cname="SDL_imageFilterBinarizeUsingThreshold")]
public static int binarize([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar threshold);
[CCode (cname="SDL_imageFilterClipToRange")]
public static int clip([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar min, uchar max);
[CCode (cname="SDL_imageFilterNormalize")]
public static int normalize([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, int cmin, int cmax, int nmin, int nmax);
[CCode (cname="SDL_imageFilterConvolveKernel3x3Divide")]
public static int convolve_3x3_divide([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar divisor);
[CCode (cname="SDL_imageFilterConvolveKernel5x5Divide")]
public static int convolve_5x5_divide([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar divisor);
[CCode (cname="SDL_imageFilterConvolveKernel7x7Divide")]
public static int convolve_7x7_divide([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar divisor);
[CCode (cname="SDL_imageFilterConvolveKernel9x9Divide")]
public static int convolve_9x9_divide([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar divisor);
[CCode (cname="SDL_imageFilterConvolveKernel3x3ShiftRight")]
public static int convolve_3x3_shift([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar shiftcount);
[CCode (cname="SDL_imageFilterConvolveKernel5x5ShiftRight")]
public static int convolve_5x5_shift([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar shiftcount);
[CCode (cname="SDL_imageFilterConvolveKernel7x7ShiftRight")]
public static int convolve_7x7_shift([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar shiftcount);
[CCode (cname="SDL_imageFilterConvolveKernel9x9ShiftRight")]
public static int convolve_9x9_shift([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar shiftcount);
[CCode (cname="SDL_imageFilterSobelX")]
public static int sobel([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns);
[CCode (cname="SDL_imageFilterSobelXShiftRight")]
public static int sobel_shift([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, uchar shiftcount);
}// Filter
}// SDLGraphics
|