Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
cadran::PillMode Struct Reference

#include <aurore/cadran/ui/cadran_frame.hpp>

Public Attributes

std::string text
 
std::string icon = "check"
 
Tone tone = Tone::WARN
 
std::function< void()> on_tap
 

Detailed Description

A mode of the app the main screen's pill says over what every screen says, as long as it lasts (ui::hooks' pill fills it in; read-only is Aurore's own): its text, icon and tone, and what a tap on the pill opens (nullptr: nothing). PlayGuard's: parental controls paused or unlocked.

Member Data Documentation

◆ icon

std::string cadran::PillMode::icon = "check"

◆ on_tap

std::function<void()> cadran::PillMode::on_tap

◆ text

std::string cadran::PillMode::text

◆ tone

Tone cadran::PillMode::tone = Tone::WARN

The documentation for this struct was generated from the following file: