Refactor app loading and window management (#609)
This commit is contained in:
committed by
GitHub
parent
dc3f6104b8
commit
37c507544b
@@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "tt_app.h"
|
||||
#include "tt_bundle.h"
|
||||
#include <app/manager.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -9,23 +8,25 @@ extern "C" {
|
||||
|
||||
/**
|
||||
* Show a file selection dialog that allows the user to select an existing file.
|
||||
* @return the launch ID of the dialog, which can be compared in onResult to identify the source
|
||||
* @return the launch ID of the dialog
|
||||
*/
|
||||
AppLaunchId tt_app_fileselection_start_for_existing_file();
|
||||
AppInstanceId tt_app_fileselection_start_for_existing_file(AppInstanceId app_id);
|
||||
|
||||
/**
|
||||
* Show a file selection dialog that allows the user to select a new or existing file.
|
||||
* @return the launch ID of the dialog, which can be compared in onResult to identify the source
|
||||
* @return the launch ID of the dialog
|
||||
*/
|
||||
AppLaunchId tt_app_fileselection_start_for_existing_or_new_file();
|
||||
AppInstanceId tt_app_fileselection_start_for_existing_or_new_file(AppInstanceId app_id);
|
||||
|
||||
/**
|
||||
* @param[in] handle the result bundle passed to onResult
|
||||
* @return the path picked by the last FileSelection dialog that closed with result == Ok (see
|
||||
* tt::app::fileselection::getLastPath()). Only one dialog is expected to be open at a time.
|
||||
* @param[out] buffer the buffer to store the selected path in
|
||||
* @param[in] bufferSize the size of the buffer (must include room for the null terminator)
|
||||
* @return true if a path was selected and written to buffer, false otherwise
|
||||
* @retval false @a bufferSize was too small - @a buffer is left untouched
|
||||
* @retval true @a buffer was filled
|
||||
*/
|
||||
bool tt_app_fileselection_get_result_path(BundleHandle handle, char* buffer, uint32_t bufferSize);
|
||||
bool tt_app_fileselection_get_result_path(char* buffer, uint32_t bufferSize);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user