Backlog/lib/sdl3/parser/output/SDL_rect.h.json

34 lines
2.9 KiB
JSON

{
"header": "SDL_rect.h",
"opaque_types": [
],
"typedefs": [
],
"function_pointers": [
],
"enums": [
],
"structs": [
{"name": "SDL_Point", "fields": [{"name": "x", "type": "int"}, {"name": "y", "type": "int"}]},
{"name": "SDL_FPoint", "fields": [{"name": "x", "type": "float"}, {"name": "y", "type": "float"}]},
{"name": "SDL_Rect", "fields": [{"name": "x", "type": "int"}, {"name": "y", "type": "int"}, {"name": "w", "type": "int"}, {"name": "h", "type": "int"}]},
{"name": "SDL_FRect", "fields": [{"name": "x", "type": "float"}, {"name": "y", "type": "float"}, {"name": "w", "type": "float"}, {"name": "h", "type": "float"}]}
],
"unions": [
],
"flags": [
],
"functions": [
{"name": "SDL_HasRectIntersection", "return_type": "bool", "parameters": [{"name": "A", "type": "const SDL_Rect *"}, {"name": "B", "type": "const SDL_Rect *"}]},
{"name": "SDL_GetRectIntersection", "return_type": "bool", "parameters": [{"name": "A", "type": "const SDL_Rect *"}, {"name": "B", "type": "const SDL_Rect *"}, {"name": "result", "type": "SDL_Rect *"}]},
{"name": "SDL_GetRectUnion", "return_type": "bool", "parameters": [{"name": "A", "type": "const SDL_Rect *"}, {"name": "B", "type": "const SDL_Rect *"}, {"name": "result", "type": "SDL_Rect *"}]},
{"name": "SDL_GetRectEnclosingPoints", "return_type": "bool", "parameters": [{"name": "points", "type": "const SDL_Point *"}, {"name": "count", "type": "int"}, {"name": "clip", "type": "const SDL_Rect *"}, {"name": "result", "type": "SDL_Rect *"}]},
{"name": "SDL_GetRectAndLineIntersection", "return_type": "bool", "parameters": [{"name": "rect", "type": "const SDL_Rect *"}, {"name": "X1", "type": "int *"}, {"name": "Y1", "type": "int *"}, {"name": "X2", "type": "int *"}, {"name": "Y2", "type": "int *"}]},
{"name": "SDL_HasRectIntersectionFloat", "return_type": "bool", "parameters": [{"name": "A", "type": "const SDL_FRect *"}, {"name": "B", "type": "const SDL_FRect *"}]},
{"name": "SDL_GetRectIntersectionFloat", "return_type": "bool", "parameters": [{"name": "A", "type": "const SDL_FRect *"}, {"name": "B", "type": "const SDL_FRect *"}, {"name": "result", "type": "SDL_FRect *"}]},
{"name": "SDL_GetRectUnionFloat", "return_type": "bool", "parameters": [{"name": "A", "type": "const SDL_FRect *"}, {"name": "B", "type": "const SDL_FRect *"}, {"name": "result", "type": "SDL_FRect *"}]},
{"name": "SDL_GetRectEnclosingPointsFloat", "return_type": "bool", "parameters": [{"name": "points", "type": "const SDL_FPoint *"}, {"name": "count", "type": "int"}, {"name": "clip", "type": "const SDL_FRect *"}, {"name": "result", "type": "SDL_FRect *"}]},
{"name": "SDL_GetRectAndLineIntersectionFloat", "return_type": "bool", "parameters": [{"name": "rect", "type": "const SDL_FRect *"}, {"name": "X1", "type": "float *"}, {"name": "Y1", "type": "float *"}, {"name": "X2", "type": "float *"}, {"name": "Y2", "type": "float *"}]}
]
}