Button (lv_button)

Buttons have no new features compared to the base widget. They are useful for semantic purposes and have slightly different default settings.

Edit on GitHub

Overview

Buttons have no new features compared to the base widget. They are useful for semantic purposes and have slightly different default settings.

Buttons, by default, differ from the Base Widget in the following ways:

  • Not scrollable
  • Added to the default group
  • Default height and width set to LV_SIZE_CONTENT

Parts and Styles

Usage

There are no new features compared to Base Widget.

Events

Further Reading

Learn more about Events emitted by all Widgets.

Learn more about events.

Keys

Note that the state of LV_KEY_ENTER is translated to LV_EVENT_PRESSED, LV_EVENT_PRESSING and LV_EVENT_RELEASED etc.

Further Reading

Learn more about Keys.

Examples

Simple Buttons

Styling buttons

Gummy button

API

How is this guide?

Last updated on

On this page