feat(sdl): add lv_sdl_window_set_title() (#4113)

This commit is contained in:
hanhsuan 2023-04-06 14:45:54 +08:00 committed by GitHub
parent 12b9e8809e
commit 401f2dba27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -135,6 +135,12 @@ lv_disp_t * _lv_sdl_get_disp_from_win_id(uint32_t win_id)
return NULL;
}
void lv_sdl_window_set_title(lv_disp_t * disp, const char * title)
{
lv_sdl_window_t * dsc = lv_disp_get_driver_data(disp);
SDL_SetWindowTitle(dsc->window, title);
}
/**********************
* STATIC FUNCTIONS
**********************/

View File

@ -39,6 +39,8 @@ uint8_t lv_sdl_window_get_zoom(lv_disp_t * disp);
lv_disp_t * _lv_sdl_get_disp_from_win_id(uint32_t win_id);
void lv_sdl_window_set_title(lv_disp_t * disp, const char * title);
/**********************
* MACROS
**********************/