Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
progressbar.h
Go to the documentation of this file.
1/*
2 * Copyright 2026 dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
10
11#ifndef __MUTEKI_UI_TYPES_PROGRESSBAR_H__
12#define __MUTEKI_UI_TYPES_PROGRESSBAR_H__
13
14#include "framework.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
42
47
60 void (*on_set_position)(ui_progressbar_t *self, unsigned short position);
65 unsigned short (*on_set_maximum)(ui_progressbar_t *self, unsigned short maximum);
69 unsigned short maximum;
73 unsigned short position;
77 unsigned short segment_count;
82 unsigned short progressbar_flags;
83};
84
85#ifdef __cplusplus
86} // extern "C"
87#endif
88
89#endif // __MUTEKI_UI_TYPES_PROGRESSBAR_H__
UI framework type (component, group, event) definitions.
struct ui_component_s ui_component_t
ui_component_s
Definition framework.h:71
Progress bar widget struct.
Definition progressbar.h:51
unsigned short position
Current position.
Definition progressbar.h:73
void(*) on_set_position(ui_progressbar_t *self, unsigned short position)
Set position callback.
Definition progressbar.h:60
unsigned short maximum
Maximum position.
Definition progressbar.h:69
unsigned short segment_count
Segment count if the progress bar is in segmented mode.
Definition progressbar.h:77
unsigned short progressbar_flags
Progress bar style flags.
Definition progressbar.h:82
unsigned short(*) on_set_maximum(ui_progressbar_t *self, unsigned short maximum)
Set maximum position callback.
Definition progressbar.h:65
ui_component_t component
The inherited component struct.
Definition progressbar.h:55
struct ui_progressbar_s ui_progressbar_t
Progress bar widget type.
Definition progressbar.h:46
ui_progressbar_flag_e
Progress bar style flags.
Definition progressbar.h:23
@ UI_PROGRESSBAR_FLAG_GRADIENT
Add a gradient texture (white -> widget fg color) to the progress bar.
Definition progressbar.h:40
@ UI_PROGRESSBAR_FLAG_SEGMENTED
Segmented mode.
Definition progressbar.h:35
@ UI_PROGRESSBAR_FLAG_SHOW_PERCENT
Add a percent label in the middle of the progress bar.
Definition progressbar.h:31
@ UI_PROGRESSBAR_FLAG_NONE
Default look (flat, no percent label).
Definition progressbar.h:27