Class
CadranDigits
A line of text in Cadran's display face (Sora): big figures, card values, chips.
#include <aurore/cadran/view/cadran_digits.hpp>
class CadranDigits : public aurore::ViewConstructors 1
Functions 14
virtual bool getStyleProperty( const std::string &name,aurore::StyleValue *value) override"textColor" (setThemeColor, XML textColor="@theme/…")
Overrides aurore::View::getStyleProperty
virtual bool setStyleProperty( const std::string &name,const aurore::StyleValue &value) overrideAt most that wide: a longer text is drawn smaller to fit (0: never).
cadran_digits.hpp:26At most as wide as its parent is laid out: a longer text is drawn smaller to fit, the room beside it whatever the language (fitWidth then follows the parent).
cadran_digits.hpp:30The figures at the font size, the words between them (min, h, a unit in any language) at half of it, on the same baseline: "40 min", "1 h 20" as a dial writes them. A text with no figure keeps one size.
cadran_digits.hpp:34Drawn Preferences › Text size's times larger, as the labels are (ui/text_size); off by default, the figures sized for their place.
cadran_digits.hpp:37A new text rolls in from below while the old one leaves upwards (a counter's wheel), once a text was shown; off by default. Nothing with the motion off (ui/effects).
cadran_digits.hpp:41The size taken again after the text size changed (ui/text_size).
cadran_digits.hpp:43Called on every view of the screens when the text scale changes (Application::setTextScale): a view that measures text marks itself dirty here.
Overrides aurore::View::onTextScaleChanged
virtual void draw( NVGcontext *vg,float x,float y,float width,float height,aurore::Style style,aurore::FrameContext *ctx) overrideCalled 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
Also the functions of aurore::View (221).
Static functions 1
Protected functions 2
virtual aurore::AccessibilityRole getDefaultAccessibilityRole() override Said as a label's text (a chip, a card say it).
Overrides aurore::View::getDefaultAccessibilityRole
Read from Aurore's headers by Doxygen at each build · library/include