Comments (4)
I'd find useful a lvgl.widget.delete
action (lv_obj_del_async(obj)
or lv_obj_del
).
Use case is a bootlogo, which could be fullscreen obj
with a centered image, however just hiding it just keeps it uselessly in memory. We could free that resource...
from esphome.
The problem with consolidating all the actions under one is that some things, like text:
are only applicable to certain types of widgets. By having a different action for label
the schema for that action can include text:
as an option, whereas the schema for line:
would not points
but not text
. At the time the schema is parsed the type of the object referenced by id
may not be known, so checking that only the appropriate options are used gets complicated, whereas right now it will throw a clear error message if an inappropriate option is used.
from esphome.
I'd find useful a
lvgl.widget.delete
action (lv_obj_del_async(obj)
orlv_obj_del
). Use case is a bootlogo, which could be fullscreenobj
with a centered image, however just hiding it just keeps it uselessly in memory. We could free that resource...
The image data is stored in flash memory, so deleting the img
object won't free much memory. If and when run-time loading of images e.g from urls is supported then memory management can be implemented as part of it, but right now there's very little to be gained.
from esphome.
I see thanks.
from esphome.
Related Issues (20)
- `number` component
- `img` options and transparency tests HOT 4
- `label` options HOT 5
- Click area extension option (for all obj)
- `line` invert Y option
- `anim_time` style option
- `roller` visible rows
- `arc` Place another object to the knob
- `led` light component enhancement
- Antiburn function HOT 2
- Event triggers HOT 5
- Possible new issue with handling **bineary_sensors** HOT 2
- suggestion to rename 'obj' to 'widget' HOT 2
- options for `btnmatrix` HOT 17
- `lvgl.widget.update` for btnmatrix buttons HOT 1
- Escape characters in texts, eg. `label`
- `meter` needle/line styling HOT 2
- `binary_sensor` should reflect `checked` state + `publish_initial_state` config
- `state` options templatable HOT 3
- `msgboxes` options HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome.