semilimes mcu sdk 1.1.3 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
6 class FcSlider
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13// Function: ~FcSlider
14
15// distructor of the class, frees up the memory occupied by the array/s
16
17// Prototype:
18// ~FcSlider()
19
20// Parameters:
21
22// Returns:
24 ~FcSlider()
25 {
26 delete[] json;
27 json = nullptr;
28 }
29
30// Function: FcSlider.set
31
32// A slider to let the user select a value by dragging its handle
33
34// Prototype:
35// void FcSlider::set(const char* refname,const char* title,bool reqSel,int value,int min,int max,int step);
36
37// Parameters:
45
46// Returns:
48 void set(const char* refname,const char* title,bool reqSel,int value,int min,int max,int step);
49
50// Function: FcSlider.get
51
52// return the json script
53
54// Prototype:
55// void FcSlider::get();
56
57// Parameters:
58
59// Returns:
61 char* get();
62};
63
64#endif
FcSlider
Definition fc_slider.h:7
FcSlider::~FcSlider
~FcSlider()
Definition fc_slider.h:24
FcSlider::get
char * get()
Definition fc_slider.cpp:50
FcSlider::set
void set(const char *refname, const char *title, bool reqSel, int value, int min, int max, int step)
Definition fc_slider.cpp:22