lv_sdl_window.h

API reference for lv_sdl_window.h

Report on GitHub

Functions

lv_sdl_window_set_resizeable

Allow or forbid resizing the window

 
void lv_sdl_window_set_resizeable(lv_display_t *disp, bool value)
Parameters
NameTypeDescription
displv_display_t *pointer to an SDL display
valuebooltrue: resizeable, false: fixed size

lv_sdl_window_set_size

Set the size of the window

 
void lv_sdl_window_set_size(lv_display_t *disp, int32_t hor_res, int32_t ver_res)
Parameters
NameTypeDescription
displv_display_t *pointer to an SDL display
hor_resint32_tthe new width in pixels
ver_resint32_tthe new height in pixels

lv_sdl_window_set_zoom

Set the zoom factor of the window

 
void lv_sdl_window_set_zoom(lv_display_t *disp, float zoom)
Parameters
NameTypeDescription
displv_display_t *pointer to an SDL display
zoomfloatthe new zoom factor

lv_sdl_window_set_title

Set the title of the window

 
void lv_sdl_window_set_title(lv_display_t *disp, const char *title)
Parameters
NameTypeDescription
displv_display_t *pointer to an SDL display
titleconst char *the new title

lv_sdl_window_set_icon

Set the icon of the window

 
void lv_sdl_window_set_icon(lv_display_t *disp, void *icon, int32_t width, int32_t height)
Parameters
NameTypeDescription
displv_display_t *pointer to an SDL display
iconvoid *pointer to the ARGB8888 pixels of the icon
widthint32_tthe icon width in pixels
heightint32_tthe icon height in pixels

Dependencies

Last updated on

On this page