43 void draw(NVGcontext* vg,
float x,
float y,
float width,
float height,
47 std::string fill =
"cadran/surf", border =
"cadran/line";
56 void draw(NVGcontext* vg,
float x,
float y,
float width,
float height,
85 aurore::Box*
tiles(
const std::vector<std::pair<const char*, const char*>>& cells,
bool status);
90 void state(
const char*
id,
const char* color_key);
97 void tag(
const char*
id,
const std::string&
text,
bool warn,
const std::string& note =
"");
109 void apply(
const std::vector<std::pair<const char*, const char*>>& icons);
132 const char* square_key =
nullptr);
140 std::vector<aurore::Header*> headers;
141 std::vector<aurore::DetailCell*> readings;
142 std::vector<std::pair<aurore::DetailCell*, aurore::Box*>> heads;
143 std::vector<std::pair<aurore::DetailCell*, aurore::View*>> marks;
144 std::vector<std::pair<aurore::DetailCell*, aurore::Box*>> tags;
Definition cell_bool.hpp:29
Generic FlexBox layout.
Definition box.hpp:74
Definition cell_detail.hpp:28
Definition frame_context.hpp:30
Simple wrapper around StyleValues for the array operator.
Definition style.hpp:115
Definition cadran_list.hpp:35
void setFill(const std::string &key)
void draw(NVGcontext *vg, float x, float y, float width, float height, aurore::Style style, aurore::FrameContext *ctx) override
void setAccent(const std::string &key)
Definition cadran_list.hpp:66
aurore::Box * head(const char *id) const
static void row_image(aurore::DetailCell *cell, const std::string &image)
static void section(aurore::Header *header)
void tag(const char *id, const std::string &text, bool warn, const std::string ¬e="")
static aurore::Box * rows_in(aurore::Box *list)
void state(const char *id, const char *color_key)
List(aurore::View *screen, aurore::Box *column)
aurore::Box * content() const
The column of lines (nullptr when the tab has none).
Definition cadran_list.hpp:78
static void row(aurore::DetailCell *cell, const char *icon=nullptr, bool alone=false)
void apply(const std::vector< std::pair< const char *, const char * > > &icons)
aurore::Box * tiles(const std::vector< std::pair< const char *, const char * > > &cells, bool status)
Card * card_of(const char *id) const
The card holding this cell (after apply()).
List(aurore::View *tab, bool sub_screen=false)
static void row_swatch(aurore::DetailCell *cell, const CadranSwatch::Colors &colors)
The same with a swatch of colours in its icon's place (CadranSwatch).
Card * wrap(const char *id)
Puts this line (not a cell: a box of text) in a card of its own.
static void recolor_icon(aurore::DetailCell *cell, const char *icon, const char *color_key, const char *square_key=nullptr)
Definition cadran_list.hpp:53
void draw(NVGcontext *vg, float x, float y, float width, float height, aurore::Style style, aurore::FrameContext *ctx) override
Switch(aurore::BooleanCell *cell)
std::string upper(const std::string &text)
Definition cadran_icon.hpp:76