Skip to content

Commit ccf2ddf

Browse files
Update raylib_api.* by CI
1 parent 90cb37e commit ccf2ddf

File tree

4 files changed

+809
-424
lines changed

4 files changed

+809
-424
lines changed

parser/output/raylib_api.json

+173-4
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,12 @@
335335
"type": "UNKNOWN",
336336
"value": "SHADER_LOC_MAP_METALNESS",
337337
"description": ""
338+
},
339+
{
340+
"name": "GetMouseRay",
341+
"type": "UNKNOWN",
342+
"value": "GetScreenToWorldRay",
343+
"description": "Compatibility hack for previous raylib versions"
338344
}
339345
],
340346
"structs": [
@@ -1410,6 +1416,11 @@
14101416
"value": 2,
14111417
"description": "Set to run program in fullscreen"
14121418
},
1419+
{
1420+
"name": "FLAG_MANAGE_PREEDIT_CANDIDATE",
1421+
"value": 131072,
1422+
"description": "Set to manage the drawing of preedit candidates by the application side"
1423+
},
14131424
{
14141425
"name": "FLAG_WINDOW_RESIZABLE",
14151426
"value": 4,
@@ -3093,6 +3104,60 @@
30933104
}
30943105
]
30953106
},
3107+
{
3108+
"name": "PreeditCallback",
3109+
"description": "",
3110+
"returnType": "void",
3111+
"params": [
3112+
{
3113+
"type": "int",
3114+
"name": "preeditLength"
3115+
},
3116+
{
3117+
"type": "int *",
3118+
"name": "preeditString"
3119+
},
3120+
{
3121+
"type": "int",
3122+
"name": "blockCount"
3123+
},
3124+
{
3125+
"type": "int *",
3126+
"name": "blockSizes"
3127+
},
3128+
{
3129+
"type": "int",
3130+
"name": "focusedBlock"
3131+
},
3132+
{
3133+
"type": "int",
3134+
"name": "caret"
3135+
}
3136+
]
3137+
},
3138+
{
3139+
"name": "PreeditCandidateCallback",
3140+
"description": "",
3141+
"returnType": "void",
3142+
"params": [
3143+
{
3144+
"type": "int",
3145+
"name": "candidatesCount"
3146+
},
3147+
{
3148+
"type": "int",
3149+
"name": "selectedIndex"
3150+
},
3151+
{
3152+
"type": "int",
3153+
"name": "pageStart"
3154+
},
3155+
{
3156+
"type": "int",
3157+
"name": "pageSize"
3158+
}
3159+
]
3160+
},
30963161
{
30973162
"name": "AudioCallback",
30983163
"description": "",
@@ -3873,12 +3938,12 @@
38733938
},
38743939
{
38753940
"name": "GetScreenToWorldRay",
3876-
"description": "Get a ray trace from mouse position",
3941+
"description": "Get a ray trace from screen position (i.e mouse)",
38773942
"returnType": "Ray",
38783943
"params": [
38793944
{
38803945
"type": "Vector2",
3881-
"name": "mousePosition"
3946+
"name": "position"
38823947
},
38833948
{
38843949
"type": "Camera",
@@ -3888,12 +3953,12 @@
38883953
},
38893954
{
38903955
"name": "GetScreenToWorldRayEx",
3891-
"description": "Get a ray trace from mouse position in a viewport",
3956+
"description": "Get a ray trace from screen position (i.e mouse) in a viewport",
38923957
"returnType": "Ray",
38933958
"params": [
38943959
{
38953960
"type": "Vector2",
3896-
"name": "mousePosition"
3961+
"name": "position"
38973962
},
38983963
{
38993964
"type": "Camera",
@@ -4794,6 +4859,110 @@
47944859
}
47954860
]
47964861
},
4862+
{
4863+
"name": "SetPreeditCallback",
4864+
"description": "Set a callback for preedit",
4865+
"returnType": "void",
4866+
"params": [
4867+
{
4868+
"type": "PreeditCallback",
4869+
"name": "callback"
4870+
}
4871+
]
4872+
},
4873+
{
4874+
"name": "SetPreeditCursorRectangle",
4875+
"description": "Set the preedit cursor area that is used to decide the position of the candidate window",
4876+
"returnType": "void",
4877+
"params": [
4878+
{
4879+
"type": "int",
4880+
"name": "x"
4881+
},
4882+
{
4883+
"type": "int",
4884+
"name": "y"
4885+
},
4886+
{
4887+
"type": "int",
4888+
"name": "w"
4889+
},
4890+
{
4891+
"type": "int",
4892+
"name": "h"
4893+
}
4894+
]
4895+
},
4896+
{
4897+
"name": "GetPreeditCursorRectangle",
4898+
"description": "Get the preedit cursor area",
4899+
"returnType": "void",
4900+
"params": [
4901+
{
4902+
"type": "int *",
4903+
"name": "x"
4904+
},
4905+
{
4906+
"type": "int *",
4907+
"name": "y"
4908+
},
4909+
{
4910+
"type": "int *",
4911+
"name": "w"
4912+
},
4913+
{
4914+
"type": "int *",
4915+
"name": "h"
4916+
}
4917+
]
4918+
},
4919+
{
4920+
"name": "IsImeOn",
4921+
"description": "Check if IME is ON",
4922+
"returnType": "bool"
4923+
},
4924+
{
4925+
"name": "SetImeStatus",
4926+
"description": "Set IME status",
4927+
"returnType": "void",
4928+
"params": [
4929+
{
4930+
"type": "bool",
4931+
"name": "on"
4932+
}
4933+
]
4934+
},
4935+
{
4936+
"name": "ResetPreedit",
4937+
"description": "Reset preedit text",
4938+
"returnType": "void"
4939+
},
4940+
{
4941+
"name": "SetPreeditCandidateCallback",
4942+
"description": "Set a callback for preedit candidates",
4943+
"returnType": "void",
4944+
"params": [
4945+
{
4946+
"type": "PreeditCandidateCallback",
4947+
"name": "callback"
4948+
}
4949+
]
4950+
},
4951+
{
4952+
"name": "GetPreeditCandidate",
4953+
"description": "Get the text of the preedie candidate. This can be used only when `FLAG_MANAGE_PREEDIT_CANDIDATE` ConfigFlag is enabled on Win32int *",
4954+
"returnType": "int *",
4955+
"params": [
4956+
{
4957+
"type": "int",
4958+
"name": "index"
4959+
},
4960+
{
4961+
"type": "int *",
4962+
"name": "textCount"
4963+
}
4964+
]
4965+
},
47974966
{
47984967
"name": "IsGamepadAvailable",
47994968
"description": "Check if a gamepad is available",

parser/output/raylib_api.lua

+104-4
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,12 @@ return {
335335
type = "UNKNOWN",
336336
value = "SHADER_LOC_MAP_METALNESS",
337337
description = ""
338+
},
339+
{
340+
name = "GetMouseRay",
341+
type = "UNKNOWN",
342+
value = "GetScreenToWorldRay",
343+
description = "Compatibility hack for previous raylib versions"
338344
}
339345
},
340346
structs = {
@@ -1410,6 +1416,11 @@ return {
14101416
value = 2,
14111417
description = "Set to run program in fullscreen"
14121418
},
1419+
{
1420+
name = "FLAG_MANAGE_PREEDIT_CANDIDATE",
1421+
value = 131072,
1422+
description = "Set to manage the drawing of preedit candidates by the application side"
1423+
},
14131424
{
14141425
name = "FLAG_WINDOW_RESIZABLE",
14151426
value = 4,
@@ -3060,6 +3071,30 @@ return {
30603071
{type = "char *", name = "text"}
30613072
}
30623073
},
3074+
{
3075+
name = "PreeditCallback",
3076+
description = "",
3077+
returnType = "void",
3078+
params = {
3079+
{type = "int", name = "preeditLength"},
3080+
{type = "int *", name = "preeditString"},
3081+
{type = "int", name = "blockCount"},
3082+
{type = "int *", name = "blockSizes"},
3083+
{type = "int", name = "focusedBlock"},
3084+
{type = "int", name = "caret"}
3085+
}
3086+
},
3087+
{
3088+
name = "PreeditCandidateCallback",
3089+
description = "",
3090+
returnType = "void",
3091+
params = {
3092+
{type = "int", name = "candidatesCount"},
3093+
{type = "int", name = "selectedIndex"},
3094+
{type = "int", name = "pageStart"},
3095+
{type = "int", name = "pageSize"}
3096+
}
3097+
},
30633098
{
30643099
name = "AudioCallback",
30653100
description = "",
@@ -3636,19 +3671,19 @@ return {
36363671
},
36373672
{
36383673
name = "GetScreenToWorldRay",
3639-
description = "Get a ray trace from mouse position",
3674+
description = "Get a ray trace from screen position (i.e mouse)",
36403675
returnType = "Ray",
36413676
params = {
3642-
{type = "Vector2", name = "mousePosition"},
3677+
{type = "Vector2", name = "position"},
36433678
{type = "Camera", name = "camera"}
36443679
}
36453680
},
36463681
{
36473682
name = "GetScreenToWorldRayEx",
3648-
description = "Get a ray trace from mouse position in a viewport",
3683+
description = "Get a ray trace from screen position (i.e mouse) in a viewport",
36493684
returnType = "Ray",
36503685
params = {
3651-
{type = "Vector2", name = "mousePosition"},
3686+
{type = "Vector2", name = "position"},
36523687
{type = "Camera", name = "camera"},
36533688
{type = "float", name = "width"},
36543689
{type = "float", name = "height"}
@@ -4260,6 +4295,71 @@ return {
42604295
{type = "int", name = "key"}
42614296
}
42624297
},
4298+
{
4299+
name = "SetPreeditCallback",
4300+
description = "Set a callback for preedit",
4301+
returnType = "void",
4302+
params = {
4303+
{type = "PreeditCallback", name = "callback"}
4304+
}
4305+
},
4306+
{
4307+
name = "SetPreeditCursorRectangle",
4308+
description = "Set the preedit cursor area that is used to decide the position of the candidate window",
4309+
returnType = "void",
4310+
params = {
4311+
{type = "int", name = "x"},
4312+
{type = "int", name = "y"},
4313+
{type = "int", name = "w"},
4314+
{type = "int", name = "h"}
4315+
}
4316+
},
4317+
{
4318+
name = "GetPreeditCursorRectangle",
4319+
description = "Get the preedit cursor area",
4320+
returnType = "void",
4321+
params = {
4322+
{type = "int *", name = "x"},
4323+
{type = "int *", name = "y"},
4324+
{type = "int *", name = "w"},
4325+
{type = "int *", name = "h"}
4326+
}
4327+
},
4328+
{
4329+
name = "IsImeOn",
4330+
description = "Check if IME is ON",
4331+
returnType = "bool"
4332+
},
4333+
{
4334+
name = "SetImeStatus",
4335+
description = "Set IME status",
4336+
returnType = "void",
4337+
params = {
4338+
{type = "bool", name = "on"}
4339+
}
4340+
},
4341+
{
4342+
name = "ResetPreedit",
4343+
description = "Reset preedit text",
4344+
returnType = "void"
4345+
},
4346+
{
4347+
name = "SetPreeditCandidateCallback",
4348+
description = "Set a callback for preedit candidates",
4349+
returnType = "void",
4350+
params = {
4351+
{type = "PreeditCandidateCallback", name = "callback"}
4352+
}
4353+
},
4354+
{
4355+
name = "GetPreeditCandidate",
4356+
description = "Get the text of the preedie candidate. This can be used only when `FLAG_MANAGE_PREEDIT_CANDIDATE` ConfigFlag is enabled on Win32int *",
4357+
returnType = "int *",
4358+
params = {
4359+
{type = "int", name = "index"},
4360+
{type = "int *", name = "textCount"}
4361+
}
4362+
},
42634363
{
42644364
name = "IsGamepadAvailable",
42654365
description = "Check if a gamepad is available",

0 commit comments

Comments
 (0)