Class · cadran

cadran::Card

On this page
aurore/cadran/ui/cadran_list.hpp
#include <aurore/cadran/ui/cadran_list.hpp>

class cadran::Card : public aurore::Box

Description

A card of the lists: a rounded surface with a 1 px border (accent, the line colour unless set) drawn behind its rows, the rows' separators kept on all but the last visible one. Nothing is drawn when every row is hidden. Its colours are theme keys ("cadran/coral_line", "cadran/none").

Constructors 1

Card()

Functions 4

void setAccent(const std::string &key)
void setFill(const std::string &key)
void follow_rows()

Gone with its last row (and back with its first), so that its top margin leaves no gap between the cards around it.

cadran_list.hpp:42
virtual void draw(NVGcontext *vg,float x,float y,float width,float height,aurore::Style style,aurore::FrameContext *ctx) override

Called by frame() to draw the view onscreen. Views should not draw outside of their bounds (they may be clipped if they do so).

Overrides aurore::Box::draw

cadran_list.hpp:43

Also the functions of aurore::Box (53), aurore::View (221).

Read from Aurore's headers by Doxygen at each build · library/include