BSB Developer Docs
Loading...
Searching...
No Matches
timer_bar.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <gui/widget.h>
10
11#include <color.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
18typedef struct TimerBar TimerBar;
19
20typedef struct {
21 const char* file_path;
22 Color trough_color;
24
33
39void timer_bar_free(TimerBar* instance);
40
50
51void timer_bar_set_preset(TimerBar* instance, const TimerBarPreset* preset);
52
59void timer_bar_set_value(TimerBar* instance, float value);
60
61#ifdef __cplusplus
62}
63#endif
Color declaration and conversion API.
RGB color structure.
Definition color.h:42
Definition timer_bar.c:11
Definition timer_bar.h:20
Definition widget_i.h:35
Widget * timer_bar_get_base(TimerBar *instance)
Get a pointer to the base class instance.
Definition timer_bar.c:50
TimerBar * timer_bar_alloc(Widget *parent)
Create a new TimerBar instance.
Definition timer_bar.c:35
void timer_bar_free(TimerBar *instance)
Delete a TimerBar instance.
Definition timer_bar.c:45
void timer_bar_set_value(TimerBar *instance, float value)
Set the displayed value.
Definition timer_bar.c:65
Base widget class.