Skip to content

Commit

Permalink
docs(indev, layer) update lv_obj_set_click() to lv_obj_add_flag()
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Aug 27, 2021
1 parent c514bdd commit bcd99e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/overview/indev.md
Expand Up @@ -29,7 +29,7 @@ lv_indev_set_cursor(mouse_indev, cursor_obj); /*Connect the image

```
Note that the cursor object should have `lv_obj_set_click(cursor_obj, false)`.
Note that the cursor object should have `lv_obj_clear_flag(cursor_obj, LV_OBJ_FLAG_CLICKABLE)`.
For images, *clicking* is disabled by default.
## Keypad and encoder
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/layer.md
Expand Up @@ -53,7 +53,7 @@ Both are visible and common on all screens of a display. **They are not, however
The `layer_top` can be used by the user to create some content visible everywhere. For example, a menu bar, a pop-up, etc. If the `click` attribute is enabled, then `layer_top` will absorb all user click and acts as a modal.
```c
lv_obj_set_click(lv_layer_top(), true);
lv_obj_add_flag(lv_layer_top(), LV_OBJ_FLAG_CLICKABLE);
```

The `layer_sys` is also used for similar purposes on LVGL. For example, it places the mouse cursor above all layers to be sure it's always visible.

0 comments on commit bcd99e8

Please sign in to comment.