stamen

Static Menu Generator
git clone git://git.dimitrijedobrota.com/stamen.git
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING

stamen.h (717B)


0 #pragma once 1 2 #include "stddef.h" // NOLINT 3 4 #ifdef __cplusplus 5 extern "C" 6 { 7 namespace stamen { 8 #endif 9 10 typedef int (*stamen_callback_f)(size_t); // NOLINT 11 12 typedef struct stamen_item_t stamen_item_t; // NOLINT 13 struct stamen_item_t 14 { 15 stamen_callback_f callback; 16 const char* prompt; 17 }; 18 19 typedef int (*stamen_display_f)(const char*, // NOLINT 20 const stamen_item_t[], 21 size_t); 22 23 #if !defined __cplusplus || defined WITH_C_BINDINGS 24 25 int stamen_builtin_display(const char* title, 26 const stamen_item_t itemv[], 27 size_t size); 28 29 #endif 30 31 #ifdef __cplusplus 32 } // namespace stamen 33 } // extern "C" 34 #endif