/** * TODO file description * * Created on 2020/01/05. */ #ifndef REFLOWER_SCENE_STR_H #define REFLOWER_SCENE_STR_H #include #define STR_EDIT_VALUE_MAXLEN 17 /** * Options passed to the StringScene constructor */ struct StringSceneOpts { // Screen title char label[15]; // Value char value[STR_EDIT_VALUE_MAXLEN]; }; /** * Create string picker. * * "opts" must be on heap and will be internally mutated. * The scene frees them on exit, returning the selected value as data (heap string), or NULL on cancel. * * @param opts * @return */ struct Scene *NewScene_String(struct StringSceneOpts *opts); #endif //REFLOWER_SCENE_STR_H