lv_opengles_window.h
API reference for lv_opengles_window.h
Summary
Functions
lv_opengles_window_texture_set_x
Set the x position of a texture within its OpenGL window
void lv_opengles_window_texture_set_x(lv_opengles_window_texture_t *texture, int32_t x)| Name | Type | Description |
|---|---|---|
texture | lv_opengles_window_texture_t * | handle of an OpenGL window texture |
x | int32_t | new x position of the texture |
lv_opengles_window_texture_set_y
Set the y position of a texture within its OpenGL window
void lv_opengles_window_texture_set_y(lv_opengles_window_texture_t *texture, int32_t y)| Name | Type | Description |
|---|---|---|
texture | lv_opengles_window_texture_t * | handle of an OpenGL window texture |
y | int32_t | new y position of the texture |
lv_opengles_window_texture_set_opa
Set the opacity of a texture in an OpenGL window
void lv_opengles_window_texture_set_opa(lv_opengles_window_texture_t *texture, lv_opa_t opa)| Name | Type | Description |
|---|---|---|
texture | lv_opengles_window_texture_t * | handle of an OpenGL window texture |
opa | lv_opa_t | new opacity of the texture |
lv_opengles_window_display_get_window_texture
lv_opengles_window_texture_t * lv_opengles_window_display_get_window_texture(lv_display_t *window_display)| Name | Type |
|---|---|
window_display | lv_display_t * |
lv_opengles_window_texture_get_mouse_indev
Get the mouse indev associated with a texture in an OpenGL window, if it exists
lv_indev_t * lv_opengles_window_texture_get_mouse_indev(lv_opengles_window_texture_t *texture)| Name | Type | Description |
|---|---|---|
texture | lv_opengles_window_texture_t * | handle of an OpenGL window texture |
Returns: lv_indev_t * — the indev or NULL
there will only be an indev if the texture is based on an LVGL display texture and the window was created with use_mouse_indev as true
lv_opengles_window_delete
Delete an OpenGL window. If it is the last one, the process will exit
void lv_opengles_window_delete(lv_opengles_window_t *window)| Name | Type | Description |
|---|---|---|
window | lv_opengles_window_t * | OpenGL window to delete May be NULL. |
lv_opengles_window_add_texture
Add a texture to the OpenGL window. It can be an LVGL display texture, or any OpenGL texture
lv_opengles_window_texture_t * lv_opengles_window_add_texture(lv_opengles_window_t *window, unsigned int texture_id, int32_t w, int32_t h)| Name | Type | Description |
|---|---|---|
window | lv_opengles_window_t * | OpenGL window |
texture_id | unsigned int | OpenGL texture ID |
w | int32_t | width in pixels of the texture |
h | int32_t | height in pixels of the texture |
Returns: lv_opengles_window_texture_t * — the new texture handle
lv_opengles_window_display_create
lv_display_t * lv_opengles_window_display_create(lv_opengles_window_t *window, int32_t w, int32_t h)| Name | Type |
|---|---|
window | lv_opengles_window_t * |
w | int32_t |
h | int32_t |
lv_opengles_window_texture_remove
Remove a texture from its OpenGL window and delete it
void lv_opengles_window_texture_remove(lv_opengles_window_texture_t *texture)| Name | Type | Description |
|---|---|---|
texture | lv_opengles_window_texture_t * | handle of an OpenGL window texture |
Dependencies
Last updated on