API reference

Macros

The macros an app writes: to bind a view of its XML, to load an activity's content, to log, to write a test.

Macros 25

#define AURORE_ASSET(_str)
#define AURORE_BIND(type, name, id)
#define AURORE_CHECK(condition)
#define AURORE_CHECK_EQ(actual, expected)
#define AURORE_DEBUG_COLOR
#define AURORE_ERROR_COLOR
#define AURORE_INFO_COLOR
#define AURORE_LOG_DEBUG(format, ...)
#define AURORE_LOG_ERROR(format, ...)
#define AURORE_LOG_INFO(format, ...)
#define AURORE_LOG_VERBOSE(format, ...)
#define AURORE_LOG_WARNING(format, ...)
#define AURORE_REGISTER_CLICK_BY_ID(id, method)

Shortcut to register an A key action (generic click) on a view given its id, that calls any function or method To be used in activities or derivates of Box (internally uses the getView() method) The function or method must return a boolean (true if the action was consumed, false otherwise) and take a single aurore::View* parameter (useful to know what was clicked if you use the same listener for multiple views)

view.hpp:57
#define AURORE_REGISTER_ENUM_XML_ATTRIBUTE(name, enumType, method, ...)

Registers an "enum" XML attribute, which is just a string attribute with a map string -> enum inside When using this macro please use the same (wonky) formatting as what you see in Box.cpp or View.cpp otherwise clang-format will screw it up

view.hpp:45
#define AURORE_TEST(name)
#define AURORE_VERBOSE_COLOR
#define AURORE_VERSION
#define AURORE_VERSION_AT_LEAST(major, minor, patch)
#define AURORE_VERSION_MAJOR
#define AURORE_VERSION_MINOR
#define AURORE_VERSION_PATCH
#define AURORE_WARNING_COLOR
#define CONTENT_FROM_XML_FILE(x)

The same from the XML file at the path x.

activity.hpp:32
#define CONTENT_FROM_XML_RES(x)

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

activity.hpp:29
#define CONTENT_FROM_XML_STR(x)

The same from the XML text x.

activity.hpp:35

Read from Aurore's headers by Doxygen at each build · library/include