mirror of
https://github.com/lvgl/lvgl.git
synced 2024-12-03 22:53:52 +08:00
feat(sdl): add lv_sdl_window_set_title() (#4113)
This commit is contained in:
parent
12b9e8809e
commit
401f2dba27
@ -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
|
||||
**********************/
|
||||
|
@ -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
|
||||
**********************/
|
||||
|
Loading…
Reference in New Issue
Block a user