flipperzero_sys

Function elements_button_up

Source
pub unsafe extern "C" fn elements_button_up(
    canvas: *mut Canvas,
    str_: *const c_char,
)
Expand description

This function draws a button in the top left corner of the canvas with icon and string.

The design and layout of the button is defined within this function.

ยงArguments

  • canvas (direction in) - This is a pointer to the Canvas structure where the button will be drawn.
  • str (direction in) - This is a pointer to the character string that will be drawn within the button.