InfiniTime.git

ref: 0195ece317d15bcba7dfbd74b58bb8dbcd3bca0a

src/DisplayApp/Screens/Label.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
#pragma once

#include <vector>
#include "Screen.h"

namespace Pinetime {
  namespace Applications {
    namespace Screens {
      class Label {
        public:
          Label() = default;
          explicit Label(const char* text);
          ~Label();
          void Refresh();

          void Hide();
          void Show();
        private:
          lv_obj_t * label = nullptr;
          const char* text = nullptr;
      };
    }
  }
}