diff --git a/docs/get-started/quick-overview.md b/docs/get-started/quick-overview.md index 3d066b54e..409dd36f0 100644 --- a/docs/get-started/quick-overview.md +++ b/docs/get-started/quick-overview.md @@ -170,13 +170,13 @@ The objects can be in a combination of the following states: - `LV_STATE_FOCUS_KEY` Focused via keypad or encoder but not via touchpad/mouse - `LV_STATE_EDITED` Edit by an encoder - `LV_STATE_HOVERED` Hovered by mouse (not supported now) -- `LV_STATE_PRESSED` eing pressed +- `LV_STATE_PRESSED` Being pressed - `LV_STATE_SCROLLED` Being scrolled - `LV_STATE_DISABLED` Disabled For example, if you press an object it will automatically goes to `LV_STATE_FOCUSED` and `LV_STATE_PRESSED` state and when you release it, the `LV_STATE_PRESSED` state will be removed. -To check if an object is in a geven state use `lv_obj_has_state(obj, LV_STATE_...)`. It will return `true` if the object "has" the given state at that moment. +To check if an object is in a given state use `lv_obj_has_state(obj, LV_STATE_...)`. It will return `true` if the object "has" the given state at that moment. To manually add remove the states use ```c diff --git a/docs/overview/coords.md b/docs/overview/coords.md index 2a17c6fde..077f93c2c 100644 --- a/docs/overview/coords.md +++ b/docs/overview/coords.md @@ -148,7 +148,7 @@ For example to align a label above a button and center the label is horizontally lv_obj_align_to(label, btn, LV_ALIGN_OUT_TOP_MID, 0, -10); ``` -Not that - unlike with `lv_obj_align()` - `lv_obj_align_to()` can not realign the object if its coordinates or the reference object's coordinates changes. +Note that - unlike with `lv_obj_align()` - `lv_obj_align_to()` can not realign the object if its coordinates or the reference object's coordinates changes. ## Size diff --git a/examples/get_started/lv_example_get_started_3.c b/examples/get_started/lv_example_get_started_3.c index 853b879c7..3f0e1098f 100644 --- a/examples/get_started/lv_example_get_started_3.c +++ b/examples/get_started/lv_example_get_started_3.c @@ -9,7 +9,7 @@ static void slider_event_cb(lv_event_t * e) /*Refresh the text*/ lv_label_set_text_fmt(label, "%d", lv_slider_get_value(slider)); - lv_obj_align_to(label, slider, LV_ALIGN_OUT_TOP_MID, 0, -15); /*Align below the slider*/ + lv_obj_align_to(label, slider, LV_ALIGN_OUT_TOP_MID, 0, -15); /*Align top of the slider*/ } /** @@ -26,7 +26,7 @@ void lv_example_get_started_3(void) /*Create a label below the slider*/ label = lv_label_create(lv_scr_act()); lv_label_set_text(label, "0"); - lv_obj_align_to(label, slider, LV_ALIGN_OUT_TOP_MID, 0, -15); /*Align below the slider*/ + lv_obj_align_to(label, slider, LV_ALIGN_OUT_TOP_MID, 0, -15); /*Align top of the slider*/ } #endif