Struct · ui::hooks
ui::hooks::Hooks
On this page
#include <aurore/cadran/ui/hooks.hpp>
struct ui::hooks::HooksDescription
What Cadran asks of the app, filled in once at start-up (get()). Each hook left empty does nothing.
Attributes 25
std::function< bool(aurore::Activity *activity)> is_mainA new main screen, pushed, on tab position, the focus on row.
The tabs: re-read the one shown, the name of the screen shown and of the main screen's tab ("tab/about"), and whether a view is a tab.
hooks.hpp:32The sidebar position of the tab whose screen name is screen, -1 when there is none; and the position to fall back on.
The rail's icons (cadran/view/cadran_icon), one per sidebar position, "" for a separator.
hooks.hpp:43The app: its version and commit (the header's badge), whether it is a release, and whether it writes nothing for now (a read-only mode: the header's pill says so).
hooks.hpp:48The app's logo, drawn in a w × h box at (0, 0) (CadranIcon "mark": the header's, the about screen's). Unset: Aurore's.
std::function< bool(cadran::PillMode &mode)> pillA mode of the app the main screen's pill says over every screen: fills mode in and returns true while it lasts (parental controls paused, unlocked…). Unset or false: the screen's own words, or read-only.
The icons of the lines of the app's own screens that Cadran dresses (a DetailCell's id, a CadranIcon's name), besides Aurore's.
hooks.hpp:61The title of the main screen's tab screen ("tab/about"), for the crumb of a screen opened from it. Unset: none.
std::function< bool(aurore::View *frame)> standalone_screenWhether frame (a screen's root view) is a screen of its own, not a step from the one under it: a child's screen, a lock screen. It gets no crumb and no version badge (cadran::is_standalone_screen). Unset: the screens holding a view with the id "cadran/standalone".
Today, "2026-10-08", by the app's own clock (the console's user clock). Unset: the system's local date.
hooks.hpp:72The folder of the user's own theme files (*.theme, docs/themes.md), listed by the theme picker after Aurore's presets: the app's, such as "sdmc:/config/<app>/themes". Unset: the presets only.
hooks.hpp:77Saves ui::prefs() (the language, theme, text size and effects chosen): false when it cannot be saved at all. Unset: the choice lasts until the app quits.
hooks.hpp:82Send a report, offered by a failure's dialog. Unset: not offered.
hooks.hpp:84A flag of the app's environment, for its tests (name: "STILL_FOCUS", "CADRAN_NOGLOW", "FOCUS_LOG", "CUT_TEXT", "DOCKED", "BATTERY"). Unset: the process environment's AURORE_<name> ("1", "true" or "yes"), in a build with AURORE_DEV_TOOLS (not a release one, by default), never on the console.
Read from Aurore's headers by Doxygen at each build · library/include