mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
* Guition JC3248W535C Files app fix alert dialog and selection dialog fixes symbol export * Update Axs15231bDisplay.cpp * Update Axs15231bDisplay.cpp
19 lines
527 B
C++
19 lines
527 B
C++
#include "tt_app_selectiondialog.h"
|
|
#include <Tactility/app/selectiondialog/SelectionDialog.h>
|
|
|
|
extern "C" {
|
|
|
|
AppLaunchId tt_app_selectiondialog_start(const char* title, int argc, const char* argv[]) {
|
|
std::vector<std::string> list;
|
|
for (int i = 0; i < argc; i++) {
|
|
list.emplace_back(argv[i]);
|
|
}
|
|
return tt::app::selectiondialog::start(title, list);
|
|
}
|
|
|
|
int32_t tt_app_selectiondialog_get_result_index(BundleHandle handle) {
|
|
return tt::app::selectiondialog::getResultIndex(*(tt::Bundle*)handle);
|
|
}
|
|
|
|
}
|