4coder/docs/4ed_doc_custom_api.cpp

37 lines
908 B
C++
Raw Normal View History

2019-12-08 02:53:01 +00:00
/*
* Mr. 4th Dimention - Allen Webster
*
* 04.12.2019
*
* Documentation of the custom layer's primary api.
*
*/
// TOP
function void
doc_custom_app_ptr(Arena *arena, Doc_Function *func){
doc_function_param(arena, func, "app");
doc_text(arena, func->params, "the standard custom layer context pointer");
}
#include "4ed_doc_custom_api_global.cpp"
#include "4ed_doc_custom_api_buffer.cpp"
#include "4ed_doc_custom_api_view.cpp"
#include "4ed_doc_custom_api_draw.cpp"
2019-12-08 02:53:01 +00:00
function Doc_Cluster*
doc_custom_api(Arena *arena, API_Definition *api_def){
2019-12-13 05:02:40 +00:00
Doc_Cluster *cluster = new_doc_cluster(arena, "Custom Layer Boundary API", "custom_api");
2019-12-08 02:53:01 +00:00
doc_custom_api__global(arena, api_def, cluster);
doc_custom_api__buffer(arena, api_def, cluster);
doc_custom_api__view(arena, api_def, cluster);
doc_custom_api__draw(arena, api_def, cluster);
2019-12-08 02:53:01 +00:00
return(cluster);
}
// BOTTOM