/** * TODO file description * * Created on 2020/01/05. */ #ifndef REFLOWER_SCENE_NUMBER_H #define REFLOWER_SCENE_NUMBER_H #include /** * Options passed to the NumberScene constructor */ struct NumberSceneOpts { // Screen title char label[15]; // Unit added to the value char unit[8]; // Initial value int32_t value; // min value int32_t min; // max value int32_t max; }; /** * Create number picker. * * "opts" must be on heap and will be internally mutated. * The scene frees them on exit, returning the selected value as status. * * @param opts * @return */ struct Scene *NewScene_Number(struct NumberSceneOpts *opts); #endif //REFLOWER_SCENE_NUMBER_H