Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
activity.hpp File Reference
#include <aurore/core/observable.hpp>
#include <aurore/core/view.hpp>
#include <unordered_map>

Go to the source code of this file.

Classes

class  aurore::Activity
 

Namespaces

namespace  aurore
 

Macros

#define CONTENT_FROM_XML_RES(x)    aurore::View* createContentView() override { return aurore::View::createFromXMLResource(x); }
 
#define CONTENT_FROM_XML_FILE(x)    aurore::View* createContentView() override { return aurore::View::createFromXMLFile(x); }
 The same from the XML file at the path x.
 
#define CONTENT_FROM_XML_STR(x)    aurore::View* createContentView() override { return aurore::View::createFromXMLString(x); }
 The same from the XML text x.
 

Macro Definition Documentation

◆ CONTENT_FROM_XML_FILE

#define CONTENT_FROM_XML_FILE (   x)     aurore::View* createContentView() override { return aurore::View::createFromXMLFile(x); }

The same from the XML file at the path x.

◆ CONTENT_FROM_XML_RES

#define CONTENT_FROM_XML_RES (   x)     aurore::View* createContentView() override { return aurore::View::createFromXMLResource(x); }

In an Activity's class: its content is the XML file of the resources x ("activity/main.xml", under resources/xml/).

◆ CONTENT_FROM_XML_STR

#define CONTENT_FROM_XML_STR (   x)     aurore::View* createContentView() override { return aurore::View::createFromXMLString(x); }

The same from the XML text x.