Files
lvgl/docs/overview/coords.md
2021-04-19 22:10:01 +02:00

52 lines
572 B
Markdown

```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/overview/coords.md
```
# Positions, sizes, and layouts
## Overview
Inspired by CSS.
Stored in style
## Units
pixel
LV_PCT
LV_SIZE_CONTENT
## Boxing model
Border, padding, content
## Position
### Simple way
`lv_obj_set_pos/x/y`
### Align
`lv_obj_align`
`lv_obj_align_to`
`lv_obj_center`
### Translate positon
## Size
### Simple way
`lv_obj_set_size/width/height/_fit`
### Min/max size
### Transform width
## Layout
### Overview
### Built-in layout
### Adding new layouts
### Examples