Class

TabBadge

On this page
aurore/cadran/view/tab_badge.hpp
#include <aurore/cadran/view/tab_badge.hpp>

class TabBadge : public aurore::View

Description

The number of things to do in a tab, an amber disc by its name in the sidebar (or on its icon) and on the row where they are done.

Constructors 1

TabBadge()

Functions 3

void set_count(int count)
void dock(float open, bool floating)

The sidebar's: open 1 at the right of the name, 0 on the icon's top right corner, smaller, and in between while the rail opens or folds. floating: out of the item's row, for a rail too narrow for it.

tab_badge.hpp:24
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::View::draw

tab_badge.hpp:26

Also the functions of aurore::View (221).

Static functions 3

static TabBadge * of(aurore::SidebarItem *item)

The sidebar item's badge, added the first time it is asked for.

tab_badge.hpp:30
static TabBadge * find(aurore::SidebarItem *item)

Its badge if it has one yet, else nullptr.

tab_badge.hpp:32
static TabBadge * on_row(aurore::Box *row)

A row's (a DetailCell: its title, then its value): after the value.

tab_badge.hpp:34

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