Class

HeaderSetting

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

class HeaderSetting : public aurore::View

Description

The language, theme and text size in the main screen's header: a tap opens their picker.

Types 1

enum class Kind
Value
LANGUAGE
THEME
TEXT_SIZE

header_settings.hpp:22

Constructors 1

explicit HeaderSetting(Kind kind)

Functions 2

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

header_settings.hpp:35
virtual aurore::View * hitTest(aurore::Point point) override

Touched although it is not focusable.

Overrides aurore::View::hitTest

header_settings.hpp:38

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

Static functions 1

static void install()

Puts them in the main screen's header, when it first takes the focus (after NoticeBell::install's bell). Called once, at start-up.

header_settings.hpp:33

Protected functions 2

virtual aurore::AccessibilityRole getDefaultAccessibilityRole() override

A button: "Language, Français (France)", "Theme, Dark", "Text size, Larger".

Overrides aurore::View::getDefaultAccessibilityRole

header_settings.hpp:42
virtual std::string getDefaultAccessibilityLabel() override

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