Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
aurore::HotReload Class Reference

#include <aurore/core/hot_reload.hpp>

Static Public Member Functions

static void setEnabled (bool enabled, const std::string &resourcesDir="")
 
static bool isEnabled ()
 
static std::string diskResource (const std::string &value)
 
static void noteXMLFile (const std::string &path)
 
static void setThemeFiles (const std::vector< std::string > &paths)
 
static void forgetActivity (Activity *activity)
 
static void poll ()
 

Static Public Attributes

static Activity * building = nullptr
 

Detailed Description

What Application::setHotReload() turns on (docs/hot_reload.md); the core calls the rest.

Member Function Documentation

◆ diskResource()

static std::string aurore::HotReload::diskResource ( const std::string &  value)
static

The file on disk to read for an "@res/…" value, when hot reload reads the resources from a folder of its own and the file is there; empty otherwise.

◆ forgetActivity()

static void aurore::HotReload::forgetActivity ( Activity *  activity)
static

◆ isEnabled()

static bool aurore::HotReload::isEnabled ( )
inlinestatic

◆ noteXMLFile()

static void aurore::HotReload::noteXMLFile ( const std::string &  path)
static

◆ poll()

static void aurore::HotReload::poll ( )
static

◆ setEnabled()

static void aurore::HotReload::setEnabled ( bool  enabled,
const std::string &  resourcesDir = "" 
)
static

◆ setThemeFiles()

static void aurore::HotReload::setThemeFiles ( const std::vector< std::string > &  paths)
static

Member Data Documentation

◆ building

Activity* aurore::HotReload::building = nullptr
inlinestatic

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