forked from paulh002/sdrberry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui_vfo.h
35 lines (29 loc) · 789 Bytes
/
gui_vfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include "lvgl/lvgl.h"
extern const int screenWidth;
extern const int screenHeight;
extern const int bottomHeight;
extern const int topHeight;
extern const int tunerHeight;
class gui_vfo
{
public:
void gui_vfo_init(lv_obj_t* scr);
void set_vfo_gui(int vfo, long long freq);
private:
lv_style_t text_style, label_style;
lv_style_t tuner_style;
lv_obj_t* vfo1_frequency;
lv_obj_t* vfo2_frequency;
lv_obj_t* bg_tuner1;
lv_obj_t* bg_tuner2;
lv_obj_t* bg_smeter;
lv_obj_t* band_label, *band_label2;
lv_obj_t* mode_label, *mode_label2;
lv_obj_t* rxtx_label, *rxtx_label2;
bool rxtx {true};
int mode[2];
};
extern gui_vfo gui_vfo_inst;
void set_smeter_img(lv_obj_t* box, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h);
void set_s_meter(double value);