lv_draw_nema_gfx_utils.h¶
MIT License
Copyright (c) 2008-24 Think Silicon Single Member PC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Functions
-
bool lv_nemagfx_is_cf_supported(lv_color_format_t cf)¶
Check if
lv_color_format_t
is supported.- Parameters:
cf – The LVGL color format
- Returns:
True/false
-
uint32_t lv_nemagfx_cf_to_nema(lv_color_format_t cf)¶
Convert a
lv_color_format_t
to a Nema color format.- Parameters:
cf – The LVGL color format
- Returns:
The Nema color format
-
uint32_t lv_nemagfx_blending_mode(lv_blend_mode_t lv_blend_mode)¶
Get NemaGFX blending mode
- Parameters:
lv_blend_mode – [in] The LVGL blend mode
- Returns:
NemaGFX blending mode
-
void lv_nemagfx_grad_set(NEMA_VG_GRAD_HANDLE gradient, lv_grad_dsc_t lv_grad, lv_opa_t opa)¶
Get NemaGFX blending mode
- Parameters:
gradient – [in] NemaGFX Gradient Buffer
lv_grad – [in] Gradient descriptor
opa – [in] Descriptor's opacity