mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-08 08:45:33 +00:00
Removed all text-related code from the core lib.
This removes: - "Toast" messages - The help text - Statistics - Preset name and (unimplemented) song title display - Preset selection list and search menu Some of the above functionality might later be added as an optional library, in a separate repository and with proper UTF-8 support.
This commit is contained in:
@ -203,18 +203,6 @@ void projectm_reset_textures(projectm_handle instance)
|
||||
projectMInstance->ResetTextures();
|
||||
}
|
||||
|
||||
const char* projectm_get_title(projectm_handle instance)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
return projectm_alloc_string_from_std_string(projectMInstance->Title());
|
||||
}
|
||||
|
||||
void projectm_set_title(projectm_handle instance, const char* title)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
projectMInstance->SetTitle(title);
|
||||
}
|
||||
|
||||
void projectm_render_frame(projectm_handle instance)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
@ -390,28 +378,6 @@ void projectm_touch_destroy_all(projectm_handle instance)
|
||||
projectMInstance->TouchDestroyAll();
|
||||
}
|
||||
|
||||
void projectm_set_help_text(projectm_handle instance, const char* help_text)
|
||||
{
|
||||
if (!help_text)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
projectMInstance->SetHelpText(help_text);
|
||||
}
|
||||
|
||||
void projectm_set_toast_message(projectm_handle instance, const char* toast_message)
|
||||
{
|
||||
if (!toast_message)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
projectMInstance->SetToastMessage(toast_message);
|
||||
}
|
||||
|
||||
projectm_settings* projectm_get_settings(projectm_handle instance)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
@ -479,12 +445,6 @@ void projectm_select_preset(projectm_handle instance, unsigned int index, bool h
|
||||
projectMInstance->SelectPreset(index, hard_cut);
|
||||
}
|
||||
|
||||
void projectm_populate_preset_menu(projectm_handle instance)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
projectMInstance->PopulatePresetMenu();
|
||||
}
|
||||
|
||||
void projectm_remove_preset(projectm_handle instance, unsigned int index)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
@ -509,12 +469,6 @@ bool projectm_is_preset_locked(projectm_handle instance)
|
||||
return projectMInstance->PresetLocked();
|
||||
}
|
||||
|
||||
bool projectm_is_text_input_active(projectm_handle instance, bool no_minimum_length)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
return projectMInstance->TextInputActive(no_minimum_length);
|
||||
}
|
||||
|
||||
unsigned int projectm_get_preset_index(projectm_handle instance, const char* preset_name)
|
||||
{
|
||||
if (!preset_name)
|
||||
@ -537,35 +491,6 @@ void projectm_select_preset_by_name(projectm_handle instance, const char* preset
|
||||
return projectMInstance->SelectPresetByName(preset_name, hard_cut);
|
||||
}
|
||||
|
||||
const char* projectm_get_search_text(projectm_handle instance)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
return projectm_alloc_string_from_std_string(projectMInstance->SearchText());
|
||||
}
|
||||
|
||||
void projectm_set_search_text(projectm_handle instance, const char* search_text)
|
||||
{
|
||||
if (!search_text)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
return projectMInstance->SetSearchText(search_text);
|
||||
}
|
||||
|
||||
void projectm_delete_search_text(projectm_handle instance)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
return projectMInstance->DeleteSearchText();
|
||||
}
|
||||
|
||||
void projectm_reset_search_text(projectm_handle instance)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
return projectMInstance->ResetSearchText();
|
||||
}
|
||||
|
||||
bool projectm_get_selected_preset_index(projectm_handle instance, unsigned int* index)
|
||||
{
|
||||
if (!index)
|
||||
|
||||
Reference in New Issue
Block a user