mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 05:48:43 +00:00
MarlinUI percent methods for all
This commit is contained in:
parent
217bae9ff1
commit
56ed55ddba
@ -328,28 +328,6 @@ public:
|
||||
static inline void init_lcd() {}
|
||||
#endif
|
||||
|
||||
#if HAS_DISPLAY
|
||||
|
||||
static void init();
|
||||
static void update();
|
||||
static void set_alert_status_P(PGM_P const message);
|
||||
|
||||
static char status_message[];
|
||||
static bool has_status();
|
||||
|
||||
static uint8_t alert_level; // Higher levels block lower levels
|
||||
static inline void reset_alert_level() { alert_level = 0; }
|
||||
|
||||
#if ENABLED(STATUS_MESSAGE_SCROLLING)
|
||||
static uint8_t status_scroll_offset;
|
||||
static void advance_status_scroll();
|
||||
static char* status_and_len(uint8_t &len);
|
||||
#endif
|
||||
|
||||
static void abort_print();
|
||||
static void pause_print();
|
||||
static void resume_print();
|
||||
|
||||
#if HAS_PRINT_PROGRESS
|
||||
#if HAS_PRINT_PROGRESS_PERMYRIAD
|
||||
typedef uint16_t progress_t;
|
||||
@ -381,6 +359,28 @@ public:
|
||||
static constexpr uint8_t get_progress_percent() { return 0; }
|
||||
#endif
|
||||
|
||||
#if HAS_DISPLAY
|
||||
|
||||
static void init();
|
||||
static void update();
|
||||
static void set_alert_status_P(PGM_P const message);
|
||||
|
||||
static char status_message[];
|
||||
static bool has_status();
|
||||
|
||||
static uint8_t alert_level; // Higher levels block lower levels
|
||||
static inline void reset_alert_level() { alert_level = 0; }
|
||||
|
||||
#if ENABLED(STATUS_MESSAGE_SCROLLING)
|
||||
static uint8_t status_scroll_offset;
|
||||
static void advance_status_scroll();
|
||||
static char* status_and_len(uint8_t &len);
|
||||
#endif
|
||||
|
||||
static void abort_print();
|
||||
static void pause_print();
|
||||
static void resume_print();
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
|
||||
static millis_t next_button_update_ms;
|
||||
|
Loading…
Reference in New Issue
Block a user