mirror of
https://github.com/esphome/esphome.git
synced 2024-12-12 08:24:55 +01:00
Additional clang-format and ci-custom fixes
This commit is contained in:
parent
93432b85b9
commit
255d851125
3 changed files with 4 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
from esphome.const import CONF_ID, CONF_TYPE
|
||||
from esphome.const import CONF_ID, CONF_TYPE, CONF_BORDER
|
||||
from esphome.components import color
|
||||
from . import horizontal_stack
|
||||
from . import vertical_stack
|
||||
|
@ -21,7 +21,6 @@ MULTI_CONF = True
|
|||
CONF_LAYOUT = "layout"
|
||||
CONF_MARGIN = "margin"
|
||||
CONF_PADDING = "padding"
|
||||
CONF_BORDER = "border"
|
||||
CONF_BORDER_COLOR = "border_color"
|
||||
|
||||
BASE_ITEM_SCHEMA = cv.Schema(
|
||||
|
|
|
@ -55,6 +55,5 @@ void LayoutItem::render(display::Display *display, display::Rect bounds) {
|
|||
display->pop_local_coordinates();
|
||||
}
|
||||
|
||||
|
||||
} // namespace graphical_layout
|
||||
} // namespace esphome
|
||||
|
|
|
@ -55,7 +55,7 @@ class LayoutItem {
|
|||
* of any padding or margins
|
||||
*
|
||||
* param[in] display: Display that will be used for rendering. May be used to help with calculations
|
||||
*/
|
||||
*/
|
||||
virtual display::Rect measure_item_internal(display::Display *display) = 0;
|
||||
|
||||
/** Perform the rendering of the item to the display accounting for the margin and padding of the
|
||||
|
@ -72,11 +72,11 @@ class LayoutItem {
|
|||
*
|
||||
* param[in] display: Display to render to
|
||||
* param[in] bounds: Size of the area drawing should be constrained to
|
||||
*/
|
||||
*/
|
||||
virtual void render_internal(display::Display *display, display::Rect bounds) = 0;
|
||||
|
||||
/** Dump the items config to aid the user
|
||||
*
|
||||
*
|
||||
* param[in] indent_depth: Depth to indent the config
|
||||
* param[in] additional_level_depth: If children require their config to be dumped you increment
|
||||
* their indent_depth before calling it
|
||||
|
|
Loading…
Reference in a new issue