Package-level declarations

Types

Link copied to clipboard
expect class Color : Closable

Represents an RGB color.

actual class Color : Closable
actual class Color : Closable
Link copied to clipboard
expect class Font : Closable

Collections of bitmaps and other information required to render the images of the letters (glyph).

actual class Font : Closable
actual class Font : Closable
Link copied to clipboard

Represents opacity as a percentage.

Link copied to clipboard

Contains all colors that are part of the color palette.

Link copied to clipboard
expect class Style : Closable

Provides a style that can be applied to multiple LVGL objects.

actual class Style : Closable
actual class Style : Closable
Link copied to clipboard

The text alignment policy.

Functions

Link copied to clipboard
expect fun blackColor(): Color

Convenience function for obtaining the black color.

actual fun blackColor(): Color
actual fun blackColor(): Color
Link copied to clipboard
expect fun colorFromRgb(red: UByte, green: UByte, blue: UByte): Color

Creates a color from RGB (Red, Green, Blue) values.

actual fun colorFromRgb(red: UByte, green: UByte, blue: UByte): Color
actual fun colorFromRgb(red: UByte, green: UByte, blue: UByte): Color
copy
Link copied to clipboard
fun lv_font_t?.copy(dest: lv_font_t)
fun lv_font_t?.copy(dest: lv_font_t)
Link copied to clipboard
expect fun darkerPaletteColor(paletteValue: Palette, level: UByte): Color
expect fun darkerPaletteColor(paletteValue: UInt, level: UByte): Color

Gets a darker color from the palette.

actual fun darkerPaletteColor(paletteValue: Palette, level: UByte): Color
actual fun darkerPaletteColor(paletteValue: UInt, level: UByte): Color
actual fun darkerPaletteColor(paletteValue: Palette, level: UByte): Color
actual fun darkerPaletteColor(paletteValue: UInt, level: UByte): Color
Link copied to clipboard

Get the alignment which determines from which point of the parent the X and Y coordinates should be interpreted.

Link copied to clipboard

Gets the arc color filter.

Link copied to clipboard

Get the color of the arc.

Link copied to clipboard

Get the opacity of the arcs.

Link copied to clipboard

Get whether the end points of the arcs are rounded or not.

Link copied to clipboard

Get the width (thickness) of the arcs in pixels.

Link copied to clipboard

Get the background color of the object.

Link copied to clipboard

Get the gradient color of the background. Used only if grad_dir isn't LV_GRAD_DIR_NONE.

Link copied to clipboard

Get the direction of the gradient of the background.

Link copied to clipboard

Get the point from which the background's gradient color should start.

Link copied to clipboard

Get the opacity of the background image.

Link copied to clipboard

Get the intensity of background image recoloring.

Link copied to clipboard

Set a color to mix to the background image.

Link copied to clipboard

Whether the background image will be tiled.

Link copied to clipboard

Get the point from which the background color should start for gradients.

Link copied to clipboard

Get the opacity of the background.

Link copied to clipboard

Get the border color filter.

Link copied to clipboard

Get the color of the border.

Link copied to clipboard

Get the opacity of the border.

Link copied to clipboard

Get whether the border should be drawn before or after the children are drawn.

Link copied to clipboard

Get which side(s) the border should be drawn.

Link copied to clipboard

Get the width of the border.

Link copied to clipboard

Get the intensity of mixing of color filter.

Link copied to clipboard

Get the Flexbox cross place.

Link copied to clipboard

Get the Flexbox layout setup style on the object.

Link copied to clipboard

Get the Flexbox grow on the object.

Link copied to clipboard

Get the Flexbox main place.

Link copied to clipboard

Get the Flexbox track place.

Link copied to clipboard

Sets the height of the LVGL object.

Link copied to clipboard

Get the opacity of an image.

Link copied to clipboard

Get the intensity of the color mixing.

Link copied to clipboard

Get color to mix to the image.

Link copied to clipboard

Get the layout used as part of the object styling.

Link copied to clipboard

Get the color of the lines.

Link copied to clipboard

Get the gap between dashes in pixels.

Link copied to clipboard

Get the width of dashes in pixels.

Link copied to clipboard

Get the opacity of the lines.

Link copied to clipboard

Whether end points of the lines are rounded.

Link copied to clipboard

Get the width of the lines in pixels.

Link copied to clipboard

Get the maximum height.

Link copied to clipboard

Get the maximum width.

Link copied to clipboard

Get the minimum height.

Link copied to clipboard

Gets the minimum width.

Link copied to clipboard

Get the opacity of the object.

Link copied to clipboard

Get the color of the outline.

Link copied to clipboard

Get the opacity of the outline.

Link copied to clipboard

Get the padding of the outline, i.e. the gap between object and the outline.

Link copied to clipboard

Get the width of the outline in pixels.

Link copied to clipboard

Get the padding on the bottom.

Link copied to clipboard

Get the padding between the columns. Used by the layouts.

Link copied to clipboard

Get the padding on the left.

Link copied to clipboard

Get the padding on the right.

Link copied to clipboard

Get the padding between the rows. Used by the layouts.

Link copied to clipboard

Get the padding on the top.

Link copied to clipboard

Get the radius on every corner.

Link copied to clipboard

Get the color of the shadow.

Link copied to clipboard

Get the opacity of the shadow.

Link copied to clipboard

Get the shadow calculation to use a larger or smaller rectangle as base.

Link copied to clipboard

Get the width of the shadow in pixels.

Link copied to clipboard

Get an offset on the shadow in pixels in X direction.

Link copied to clipboard

Get an offset on the shadow in pixels in Y direction.

Link copied to clipboard

Get how to align the lines of the text.

actual fun LvglObjectBase.getTextAlignStyle(part: UInt): TextAlignment
actual fun LvglObjectBase.getTextAlignStyle(part: UInt): TextAlignment
Link copied to clipboard

Get the color of the text.

Link copied to clipboard

Get decoration for the text.

Link copied to clipboard
expect fun LvglObjectBase.getTextFont(part: UInt): Font

Get the text font.

actual fun LvglObjectBase.getTextFont(part: UInt): Font
actual fun LvglObjectBase.getTextFont(part: UInt): Font
Link copied to clipboard

Get the letter space.

Link copied to clipboard

Get the line space.

Link copied to clipboard

Get the opacity of the text.

Link copied to clipboard

Get the transform angle.

Link copied to clipboard

Get the transform height.

Link copied to clipboard

Get the transform width.

Link copied to clipboard

Get the zoom transformation.

Link copied to clipboard

Get the X translation.

Link copied to clipboard

Get the Y translation.

Link copied to clipboard

Get the width of the LVGL object.

Link copied to clipboard

Get the X coordinate of the LVGL object considering the set align.

Link copied to clipboard

Get the Y coordinate of the LVGL object considering the set align.

Link copied to clipboard
expect fun lighterPaletteColor(paletteValue: Palette, level: UByte): Color
expect fun lighterPaletteColor(paletteValue: UInt, level: UByte): Color

Gets a lighter color from the palette.

actual fun lighterPaletteColor(paletteValue: Palette, level: UByte): Color
actual fun lighterPaletteColor(paletteValue: UInt, level: UByte): Color
actual fun lighterPaletteColor(paletteValue: Palette, level: UByte): Color
actual fun lighterPaletteColor(paletteValue: UInt, level: UByte): Color
Link copied to clipboard
expect fun mainPaletteColor(paletteValue: Palette): Color
expect fun mainPaletteColor(paletteValue: UInt): Color

Gets the main color from the palette.

actual fun mainPaletteColor(paletteValue: Palette): Color
actual fun mainPaletteColor(paletteValue: UInt): Color
actual fun mainPaletteColor(paletteValue: Palette): Color
actual fun mainPaletteColor(paletteValue: UInt): Color
Link copied to clipboard
expect fun rgbColorFromHsv(hue: UShort, saturation: UByte, value: UByte): Color

Creates a color from HSV (Hue, Saturation, Value) values.

actual fun rgbColorFromHsv(hue: UShort, saturation: UByte, value: UByte): Color
actual fun rgbColorFromHsv(hue: UShort, saturation: UByte, value: UByte): Color
Link copied to clipboard
expect fun LvglObjectBase.setAlignStyle(value: UByte, selector: UInt)

Set the alignment which determines from which point of the parent the X and Y coordinates should be interpreted.

actual fun LvglObjectBase.setAlignStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setAlignStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setArcColorStyle(value: Color, selector: UInt)

Set the color of the arc.

actual fun LvglObjectBase.setArcColorStyle(value: Color, selector: UInt)
actual fun LvglObjectBase.setArcColorStyle(value: Color, selector: UInt)
Link copied to clipboard

Set an image from which the arc will be masked out. It's useful to display complex effects on the arcs.

Link copied to clipboard
expect fun LvglObjectBase.setArcOpacityStyle(value: UByte, selector: UInt)

Set the opacity of the arcs.

actual fun LvglObjectBase.setArcOpacityStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setArcOpacityStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setArcRoundedStyle(value: Boolean, selector: UInt)

Set if the points of the arcs rounded or not.

actual fun LvglObjectBase.setArcRoundedStyle(value: Boolean, selector: UInt)
actual fun LvglObjectBase.setArcRoundedStyle(value: Boolean, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setArcWidthStyle(value: Short, selector: UInt)

Set the width (thickness) of the arcs in pixels.

actual fun LvglObjectBase.setArcWidthStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setArcWidthStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setBackgroundColorStyle(value: Color, selector: UInt)

Set the background color of the object.

actual fun LvglObjectBase.setBackgroundColorStyle(value: Color, selector: UInt)
actual fun LvglObjectBase.setBackgroundColorStyle(value: Color, selector: UInt)
Link copied to clipboard

Set the gradient color of the background. Used only if grad_dir isn't LV_GRAD_DIR_NONE.

Link copied to clipboard

Set the direction of the gradient of the background. The possible values are LV_GRAD_DIR_NONE/HOR/VER.

Link copied to clipboard

Set the point from which the background's gradient color should start.

Link copied to clipboard

Set the opacity of the background image. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 256, LV_OPA_100 or LV_OPA_COVER means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency.

Link copied to clipboard

Set the intensity of background image recoloring. Value 0, LV_OPA_0 or LV_OPA_TRANSP means no mixing, 256, LV_OPA_100 or LV_OPA_COVER means full recoloring, other values or LV_OPA_10, LV_OPA_20, etc are interpreted proportionally.

Link copied to clipboard

Set a color to mix to the background image.

Link copied to clipboard

Set a background image from a StringReference.

Set a background image from a String.

Link copied to clipboard

If enabled the background image will be tiled.

Link copied to clipboard
expect fun LvglObjectBase.setBackgroundMainStopStyle(value: Short, selector: UInt)

Set the point from which the background color should start for gradients.

actual fun LvglObjectBase.setBackgroundMainStopStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setBackgroundMainStopStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setBackgroundOpacityStyle(value: UByte, selector: UInt)

Set the opacity of the background. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 256, LV_OPA_100 or LV_OPA_COVER means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency.

actual fun LvglObjectBase.setBackgroundOpacityStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setBackgroundOpacityStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setBorderColorStyle(value: Color, selector: UInt)

Set the color of the border.

actual fun LvglObjectBase.setBorderColorStyle(value: Color, selector: UInt)
actual fun LvglObjectBase.setBorderColorStyle(value: Color, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setBorderOpacityStyle(value: UByte, selector: UInt)

Set the opacity of the border. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 256, LV_OPA_100 or LV_OPA_COVER means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency.

actual fun LvglObjectBase.setBorderOpacityStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setBorderOpacityStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setBorderPostStyle(value: Boolean, selector: UInt)

Sets whether the border should be drawn before or after the children are drawn.

actual fun LvglObjectBase.setBorderPostStyle(value: Boolean, selector: UInt)
actual fun LvglObjectBase.setBorderPostStyle(value: Boolean, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setBorderSideStyle(value: UByte, selector: UInt)

Set which side(s) the border should be drawn. The possible values are LV_BORDER_SIDE_NONE/TOP/BOTTOM/LEFT/RIGHT/INTERNAL. Note that OR-ed values can be used as well, e.g. LV_BORDER_SIDE_TOP | LV_BORDER_SIDE_LEFT.

actual fun LvglObjectBase.setBorderSideStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setBorderSideStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setBorderWidthStyle(value: Short, selector: UInt)

Set the width of the border.

actual fun LvglObjectBase.setBorderWidthStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setBorderWidthStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setColorFilterOpacityStyle(value: UByte, selector: UInt)

Set the intensity of mixing of color filter.

actual fun LvglObjectBase.setColorFilterOpacityStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setColorFilterOpacityStyle(value: UByte, selector: UInt)
Link copied to clipboard

Set the Flexbox cross place.

Link copied to clipboard
expect fun LvglObjectBase.setFlexFlowStyle(value: UInt, selector: UInt)

Sets up the Flexbox layout style on the object. All possible values for this function include the following:

actual fun LvglObjectBase.setFlexFlowStyle(value: UInt, selector: UInt)
actual fun LvglObjectBase.setFlexFlowStyle(value: UInt, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setFlexGrowStyle(value: UByte, selector: UInt)

Used to make one or more children fill the available space on the track. If more children has grow the available space will be distributed proportionally to the grow values. For example, let's say there is 400 pixels remaining space and 4 objects with grow:

actual fun LvglObjectBase.setFlexGrowStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setFlexGrowStyle(value: UByte, selector: UInt)
Link copied to clipboard

Set the Flexbox main place.

Link copied to clipboard

Set the Flexbox track place.

Link copied to clipboard
expect fun LvglObjectBase.setHeightStyle(value: Short, selector: UInt)

Sets the height of the LVGL object. Pixel, percentage and LV_SIZE_CONTENT can be used. Percentage values are relative to the height of the parent's content area.

actual fun LvglObjectBase.setHeightStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setHeightStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setImageOpacityStyle(value: UByte, selector: UInt)

Set the opacity of an image. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 256, LV_OPA_100 or LV_OPA_COVER means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency.

actual fun LvglObjectBase.setImageOpacityStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setImageOpacityStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setImageRecolorOpaStyle(value: UByte, selector: UInt)

Set the intensity of the color mixing. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 256, LV_OPA_100 or LV_OPA_COVER means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency.

actual fun LvglObjectBase.setImageRecolorOpaStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setImageRecolorOpaStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setImageRecolorStyle(value: Color, selector: UInt)

Set color to mix to the image.

actual fun LvglObjectBase.setImageRecolorStyle(value: Color, selector: UInt)
actual fun LvglObjectBase.setImageRecolorStyle(value: Color, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setLayoutStyle(value: UShort, selector: UInt)

Set the layout used as part of the object styling.

actual fun LvglObjectBase.setLayoutStyle(value: UShort, selector: UInt)
actual fun LvglObjectBase.setLayoutStyle(value: UShort, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setLineColorStyle(value: Color, selector: UInt)

Set the color of the lines.

actual fun LvglObjectBase.setLineColorStyle(value: Color, selector: UInt)
actual fun LvglObjectBase.setLineColorStyle(value: Color, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setLineDashGapStyle(value: Short, selector: UInt)

Set the gap between dashes in pixels. Note that dash works only on horizontal and vertical lines.

actual fun LvglObjectBase.setLineDashGapStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setLineDashGapStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setLineDashWidthStyle(value: Short, selector: UInt)

Set the width of dashes in pixels. Note that dash works only on horizontal and vertical lines.

actual fun LvglObjectBase.setLineDashWidthStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setLineDashWidthStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setLineOpacityStyle(value: UByte, selector: UInt)

Set the opacity of the lines.

actual fun LvglObjectBase.setLineOpacityStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setLineOpacityStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setLineRoundedStyle(value: Boolean, selector: UInt)

Make the end points of the lines rounded.

actual fun LvglObjectBase.setLineRoundedStyle(value: Boolean, selector: UInt)
actual fun LvglObjectBase.setLineRoundedStyle(value: Boolean, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setLineWidthStyle(value: Short, selector: UInt)

Set the width of the lines in pixels.

actual fun LvglObjectBase.setLineWidthStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setLineWidthStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setMaxHeightStyle(value: Short, selector: UInt)

Sets the maximum height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area.

actual fun LvglObjectBase.setMaxHeightStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setMaxHeightStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setMaxWidthStyle(value: Short, selector: UInt)

Sets the maximum width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area.

actual fun LvglObjectBase.setMaxWidthStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setMaxWidthStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setMinHeightStyle(value: Short, selector: UInt)

Sets the minimum height. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area.

actual fun LvglObjectBase.setMinHeightStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setMinHeightStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setMinWidthStyle(value: Short, selector: UInt)

Sets the minimum width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area.

actual fun LvglObjectBase.setMinWidthStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setMinWidthStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setOpacityStyle(value: UByte, selector: UInt)

Scale down all opacity values of the object by this factor. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 256, LV_OPA_100 or LV_OPA_COVER means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency.

actual fun LvglObjectBase.setOpacityStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setOpacityStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setOutlineColorStyle(value: Color, selector: UInt)

Set the color of the outline.

actual fun LvglObjectBase.setOutlineColorStyle(value: Color, selector: UInt)
actual fun LvglObjectBase.setOutlineColorStyle(value: Color, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setOutlineOpacityStyle(value: UByte, selector: UInt)

Set the opacity of the outline. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 256, LV_OPA_100 or LV_OPA_COVER means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency.

actual fun LvglObjectBase.setOutlineOpacityStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setOutlineOpacityStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setOutlinePadStyle(value: Short, selector: UInt)

Set the padding of the outline, i.e. the gap between object and the outline.

actual fun LvglObjectBase.setOutlinePadStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setOutlinePadStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setOutlineWidthStyle(value: Short, selector: UInt)

Set the width of the outline in pixels.

actual fun LvglObjectBase.setOutlineWidthStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setOutlineWidthStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setPadAllStyle(value: Short, selector: UInt)

Sets the padding on all sides.

actual fun LvglObjectBase.setPadAllStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setPadAllStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setPadBottomStyle(value: Short, selector: UInt)

Sets the padding on the bottom. It makes the content area smaller in this direction.

actual fun LvglObjectBase.setPadBottomStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setPadBottomStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setPadColumnStyle(value: Short, selector: UInt)

Sets the padding between the columns. Used by the layouts.

actual fun LvglObjectBase.setPadColumnStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setPadColumnStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setPadLeftStyle(value: Short, selector: UInt)

Sets the padding on the left. It makes the content area smaller in this direction.

actual fun LvglObjectBase.setPadLeftStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setPadLeftStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setPadRightStyle(value: Short, selector: UInt)

Sets the padding on the right. It makes the content area smaller in this direction.

actual fun LvglObjectBase.setPadRightStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setPadRightStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setPadRowStyle(value: Short, selector: UInt)

Sets the padding between the rows. Used by the layouts.

actual fun LvglObjectBase.setPadRowStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setPadRowStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setPadTopStyle(value: Short, selector: UInt)

Sets the padding on the top. It makes the content area smaller in this direction.

actual fun LvglObjectBase.setPadTopStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setPadTopStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setRadiusStyle(value: Short, selector: UInt)

Set the radius on every corner.

actual fun LvglObjectBase.setRadiusStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setRadiusStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setShadowColorStyle(value: Color, selector: UInt)

Set the color of the shadow.

actual fun LvglObjectBase.setShadowColorStyle(value: Color, selector: UInt)
actual fun LvglObjectBase.setShadowColorStyle(value: Color, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setShadowOpacityStyle(value: UByte, selector: UInt)

Set the opacity of the shadow. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 256, LV_OPA_100 or LV_OPA_COVER means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency.

actual fun LvglObjectBase.setShadowOpacityStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setShadowOpacityStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setShadowSpreadStyle(value: Short, selector: UInt)

Make the shadow calculation to use a larger or smaller rectangle as base. The value can be in pixel to make the area larger/smaller.

actual fun LvglObjectBase.setShadowSpreadStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setShadowSpreadStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setShadowWidthStyle(value: Short, selector: UInt)

Set the width of the shadow in pixels. The value should be >= 0.

actual fun LvglObjectBase.setShadowWidthStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setShadowWidthStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setShadowXOffsetStyle(value: Short, selector: UInt)

Set an offset on the shadow in pixels in X direction.

actual fun LvglObjectBase.setShadowXOffsetStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setShadowXOffsetStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setShadowYOffsetStyle(value: Short, selector: UInt)

Set an offset on the shadow in pixels in Y direction.

actual fun LvglObjectBase.setShadowYOffsetStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setShadowYOffsetStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTextAlignStyle(value: TextAlignment, selector: UInt)

Set how to align the lines of the text. Note that it doesn't align the object itself, only the lines inside the object. The possible values are LEFT/CENTER/RIGHT/AUTO. Use TextAlignment.AUTO to detect the text base direction and use left or right alignment accordingly.

actual fun LvglObjectBase.setTextAlignStyle(value: TextAlignment, selector: UInt)
actual fun LvglObjectBase.setTextAlignStyle(value: TextAlignment, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTextColorStyle(value: Color, selector: UInt)

Set the color of the text.

actual fun LvglObjectBase.setTextColorStyle(value: Color, selector: UInt)
actual fun LvglObjectBase.setTextColorStyle(value: Color, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTextDecorStyle(value: UByte, selector: UInt)

Set decoration for the text. The possible values are LV_TEXT_DECOR_NONE/UNDERLINE/STRIKETHROUGH. Note that OR-ed values can be used as well.

actual fun LvglObjectBase.setTextDecorStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setTextDecorStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTextFont(value: Font, selector: UInt)

Set the text font.

actual fun LvglObjectBase.setTextFont(value: Font, selector: UInt)
actual fun LvglObjectBase.setTextFont(value: Font, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTextLetterSpaceStyle(value: Short, selector: UInt)

Set the letter space.

actual fun LvglObjectBase.setTextLetterSpaceStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setTextLetterSpaceStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTextLineSpaceStyle(value: Short, selector: UInt)

Set the line space.

actual fun LvglObjectBase.setTextLineSpaceStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setTextLineSpaceStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTextOpacityStyle(value: UByte, selector: UInt)

Set the opacity of the text. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 256, LV_OPA_100 or LV_OPA_COVER means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency.

actual fun LvglObjectBase.setTextOpacityStyle(value: UByte, selector: UInt)
actual fun LvglObjectBase.setTextOpacityStyle(value: UByte, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTransformAngleStyle(value: Short, selector: UInt)

Rotate image-like objects. Added to the rotation set on the object. The value is interpreted in 0.1 degree unit. E.g. 45 deg. = 450

actual fun LvglObjectBase.setTransformAngleStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setTransformAngleStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTransformHeightStyle(value: Short, selector: UInt)

Make the object higher on both sides with this value. Pixel and percentage (with lv_pct(x)) values can be used. Percentage values are relative to the object's height.

actual fun LvglObjectBase.setTransformHeightStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setTransformHeightStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTransformWidthStyle(value: Short, selector: UInt)

Make the object wider on both sides with this value. Pixel and percentage (with lv_pct(x)) values can be used. Percentage values are relative to the object's width.

actual fun LvglObjectBase.setTransformWidthStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setTransformWidthStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTransformZoomStyle(value: Short, selector: UInt)

Zoom image-like objects. Multiplied with the zoom set on the object. The value 256 (or LV_IMG_ZOOM_NONE) means normal size, 128 half size, 512 double size, and so on.

actual fun LvglObjectBase.setTransformZoomStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setTransformZoomStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTranslateXStyle(value: Short, selector: UInt)

Move the object with this value in X direction. Applied after layouts, aligns and other positioning. Pixel and percentage (with lv_pct(x)) values can be used. Percentage values are relative to the object's width.

actual fun LvglObjectBase.setTranslateXStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setTranslateXStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setTranslateYStyle(value: Short, selector: UInt)

Move the object with this value in Y direction. Applied after layouts, aligns and other positioning. Pixel and percentage (with lv_pct(x)) values can be used. Percentage values are relative to the object's height.

actual fun LvglObjectBase.setTranslateYStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setTranslateYStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setWidthStyle(value: Short, selector: UInt)

Sets the width of the LVGL object. Pixel, percentage and LV_SIZE_CONTENT values can be used.

actual fun LvglObjectBase.setWidthStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setWidthStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setXPosStyle(value: Short, selector: UInt)

Set the X coordinate of the LVGL object considering the set align. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area.

actual fun LvglObjectBase.setXPosStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setXPosStyle(value: Short, selector: UInt)
Link copied to clipboard
expect fun LvglObjectBase.setYPosStyle(value: Short, selector: UInt)

Set the Y coordinate of the LVGL object considering the set align. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area.

actual fun LvglObjectBase.setYPosStyle(value: Short, selector: UInt)
actual fun LvglObjectBase.setYPosStyle(value: Short, selector: UInt)
Link copied to clipboard
fun style(init: Style.() -> Unit = {}): Style
toColor
Link copied to clipboard
fun lvglkt_color_t.toColor(): Color
fun CPointer<lv_color_t>?.toColor(): Color
fun CValue<lvglkt_color_t>.toColor(): Color
fun lvglkt_color_t.toColor(): Color
fun CPointer<lv_color_t>?.toColor(): Color
fun CValue<lvglkt_color_t>.toColor(): Color
toCValue
Link copied to clipboard
fun Color.toCValue(): CValue<lvglkt_color_t>
fun Color.toCValue(): CValue<lvglkt_color_t>
toFont
Link copied to clipboard
fun CPointer<lv_font_t>?.toFont(): Font
fun CPointer<lv_font_t>?.toFont(): Font
Link copied to clipboard
toStyle
Link copied to clipboard
fun CPointer<lv_style_t>?.toStyle(): Style
fun CPointer<lv_style_t>?.toStyle(): Style
Link copied to clipboard
Link copied to clipboard
expect fun whiteColor(): Color

Convenience function for obtaining the white color.

actual fun whiteColor(): Color
actual fun whiteColor(): Color