Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
cadran_modal.hpp File Reference
#include <cstdint>
#include <functional>
#include <string>
#include <vector>
#include <aurore.hpp>
#include <aurore/views/edit_text_dialog.hpp>
#include <aurore/cadran/ui/cadran_kit.hpp>

Go to the source code of this file.

Classes

struct  cadran::Progress
 
struct  cadran::TimeButton
 

Namespaces

namespace  cadran
 

Enumerations

enum class  cadran::Emphasis { cadran::NONE , cadran::PRIMARY , cadran::DANGER , cadran::FAILURE }
 

Functions

void cadran::add_note (const std::string &key, const char *icon, bool warn=false)
 
aurore::Box * cadran::dialog_body (const std::string &text)
 
aurore::Label * cadran::dialog_title (const std::string &text)
 A dialog's title as dialog_body sets it (the display face, 23 px).
 
aurore::Box * cadran::dialog_badge (const char *icon, const char *color_key, const char *soft_key)
 A round badge before a title: icon in color_key on soft_key.
 
void cadran::style_dialog (aurore::Dialog *dialog, Emphasis emphasis=Emphasis::NONE)
 
void cadran::style_edit_text_dialog (aurore::EditTextDialog *dialog)
 
void cadran::style_button (aurore::Button *button, Emphasis emphasis=Emphasis::NONE)
 
aurore::Box * cadran::wait_body (const std::string &text)
 
Progress cadran::progress_body (const std::string &heading, const std::string &title, const std::string &note="")
 
void cadran::prompt_time (const std::string &header, std::vector< int > times, int initial, TimeButton off, TimeButton other, std::function< void(int)> on_value)
 
aurore::View * cadran::toast_icon (bool done)
 

Variables

constexpr float cadran::DIALOG_BUTTONS = 80
 
constexpr float cadran::DIALOG_MARGIN = 24
 
constexpr float cadran::PICKER_CORNER = 24
 A picker's card: the radius of its corners.