semilimes mcu sdk 1.0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
fc_slider.h
1#ifndef _fc_slider_
2#define _fc_slider_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 106
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14// Function: ~FcSlider
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~FcSlider()
20
21// Parameters:
22
23// Returns:
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: FcSlider.set
32
33// A slider to let the user select a value by dragging its handle
34
35// Prototype:
36// void FcSlider::set(char* refname,char* title,bool reqSel,int value,int min,int max,int step);
37
38// Parameters:
46
47// Returns:
49 void set(char* refname,char* title,bool reqSel,int value,int min,int max,int step);
50
51// Function: FcSlider.get
52
53// return the json script
54
55// Prototype:
56// void FcSlider::get();
57
58// Parameters:
59
60// Returns:
62 char* get();
63};
64
65#endif
Definition fc_slider.h:7
~FcSlider()
Definition fc_slider.h:25
void set(char *refname, char *title, bool reqSel, int value, int min, int max, int step)
Definition fc_slider.cpp:22
char * get()
Definition fc_slider.cpp:50